Remote-processing RPC-210 Manuel d'utilisateur Page 22

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 60
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 21
SERIAL & SPI PORTS BASIC SECTION 4
Page 4-4
Figure 4-4 Data packet
RS-422/485 Termination network
W10 enables the network terminator. When the RPC-
210 is the last physical unit on a network (RS-485) or is
the only unit (RS-422), the receiver must be terminated
to prevent ringing and noise pick up. Insert jum pers into
W10[1-2][3-4]. See Figure 4-2 above for jumper
example.
Only one slave device on a RS-485 network should have
a terminator installed. The host transmitter should also
have a 120 ohm resistor in series with a 0.01 mfd
capacitor. T he term inator on the RPC -210 includes p ull
up and pull down resistors to prevent lines form floating
and generating er roneous char acters.
RS-485 transmitter turn-off
The RS-485 transmitter is controlled by the RPBASIC-
52 operating system. The 485 transmitter is turned off
when the last character is sent. You must specify RS-
485 mode in the CONFIG BAUD 1 comm and.
There is a small potential for having two transmitters on
at the same time. The RS-485 transmitter on the RPC-
210 stays on for approximately ½ character time after
the last byte is sent. Nor mally, this is not a problem
when baud rates are 9600 and above as receivers usually
do not respond with 1 mSec anyway. However, if you
are transmitting at 4800 baud and below, there is this
potential. When a host (or other peer) is responding,
ensure there is a character time delay before responding.
Multidrop Network
You can use the RPC-210 in a multidrop network by
using COM1's RS-422/485 port or even a radio modem.
You can connect up to 32 units (including other RPC-
210' s) over a 4 ,00 0 foot range. The num ber of r adio
modems is virtually unlimited.
A network includes a host and one or more devices. The
host transmits data packets to all of the devices, or
nodes, in the network. A data packet includes an
address, com mand, data, and a checksum. See figure 4-
2. The packet is received by all devices, and ignored by
all except the one addressed.
The relationship described below between nodes and the
host is a master-slave. The host dir ects all
communication. Nodes "do not speak unless spoken to".
Peer to peer communication, while possible with the
RPC-210, is not discussed here.
There are m any communication protocols. F or this
example, a protocol might look som ething like this:
> 22MB1
The protocol starts w ith the < cr> character. This
character synchronizes all units and alerts them that the
next few characters coming down are address and data.
In this case, "> 22" is the units address. "M " is the
comm and and " B1" is the checksum . T he comm and is
terminated with a < cr> character.
The response depends upon the nature of the command.
Suppose the command M means "return a digital I/O
port status". The RPC-210 could read the port and
respond with AA2< cr> . The first A is an
acknowledge, that is no errors were detected in the
message. The data, A2, can be broken down as follows:
Bit/line 7 6 5 4 3 2 1 0
Status 1 0 1 0 0 0 1 0 = A2
Lines 1, 5 and 7 are high while the others are low.
The following program fragment uses ON C OM$ and
STR in a network environment. ON COM$ generates an
interrupt when a < CR> is received. The interr upt
program uses a STR fun ction to deter mine if the data
packet was addressed to this card.
10 STRING 200,20
20 ON COM$ 1,0,13,1000
30 $(1) = ">05"
.
.
.
1000 $(0) = COM$(1)
1010 A = STR(8,$(0),$(1))
1020 IF A = 0 THEN RETURN
.
.
Vue de la page 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 59 60

Commentaires sur ces manuels

Pas de commentaire

LG OLED65C7T manuals

Owner’s manuals and user’s guides for Unknown LG OLED65C7T.
We providing 3 pdf manuals LG OLED65C7T for download free by document types: User Manual






More products and manuals for Unknown LG

Models Document Type
42LS53A-5B User Manual LG 42LS55A-5D,47LS55A-5B,42LS53A-5B,55LS53A-5B Användar manual, 73 pages
GC-B207GPJV User Manual   LG GC-B207GPJV Owner’s Manual, 36 pages
LPUW72D5A.ACN User Manual   LG LP-W505ADTR,LPNW725ADTR.ACN,LPUW72D5A.ACN,LPNW505ADTR.ACN,LPUW50D5A.ACN 产品说明书, 40 pages
MH6589UR User Manual    LG MH6589UR Інструкція користувача, 36 pages
GN-B352YLC User Manual   LG GN-B392YLC,GN-B352YLC,GN-B352YVCA,GN-B392YLCA Εγχειρίδιο Χρήσης, 18 pages
L1770H-BF User Manual   LG L1770H-BF Інструкція користувача, 24 pages
RZ-20LA66K User Manual   LG RZ-20LA66K Owner's manual, 36 pages
55XF3E-B User Manual LG 55XF3E-B Användar manual, 24 pages
S13-SBB6PN User Manual   LG G10-SBB6PN,IE10-SBB6PN,IE18-SCB6PN,IE13-SBB6PN,IE24-SCB6PN,S10-SBB6PN,S13-SBB6PN,X10AN คู่มือการใช้งาน, 21 pages
LGPD8380 User Manual   LG LGPD8380 מדריך למשתמש, 78 pages
VH9502DSW User Manual   LG VH9502DSW 使用手冊, 20 pages
KA80610F User Manual   LG KA80610F Εγχειρίδιο Χρήσης, 40 pages
LAP440W User Manual   LG LAP440W Інструкція користувача, 36 pages
55UV661H User Manual LG 55UV661H Εγχειρίδιο Χρήσης, 40 pages
GC-H502HEHZ User Manual   LG GC-H502HEHZ Руководство пользователя, 24 pages
V-C6366STV User Manual   LG V-C6367HEU,V-C6378CEU,V-C6366STV Руководство пользователя, 6 pages
LCF600URU User Manual   LG LCF800IR,LCF600URU Εγχειρίδιο Χρήσης, 18 pages
GR-B404ESNN User Manual   LG GR-B404ESNN Owner's manual, 20 pages
GN-HL567SV User Manual   LG GN-DL567SV,GN-HL567SV 使用手冊, 36 pages
GR-W14NGH User Manual   LG GR-W14NGH 产品说明书, 26 pages