B–4
RLL Communications Programs
Data Communications Module, 2nd Edition, 2/03
Identifying the master and slave locations & addresses
Conversion Hints!
Valid Slot Range: 0–7
Valid Slave Address: 1–90
Example
Master in Slot: 2
Slave Address: 3C HEX (60 decimal)
The first Load (LD) instruction identifies the
slot location of the D2–DCM master and
the address of the slave station.
(Remember, the slot numbers start at 0.)
The constant (K) portion of the instruction
actually contains two pieces (bytes) of
information. The first two digits specify the
D2–DCM master location and the second
two digits specify the slave station address.
It is necessary to specify both the master
slot location and slave address because
you can have more than one D2–DCM
master in the base and you can have up to
90 slave stations for each master.
HEX 3C
3
x 16 = 48
C
= 12
+
= 60 decimal
Convert the HEX address to decimal
0 1 2 3 4 5 6 7 8 9 A B C D E F
10 11 12 13 14 15
HEX
DEC
0 1 2 3 4 5 6 7 8 9
NOTE:
The LD instruction K value is entered in decimal, but the D2–DCM master and slave
addresses are in HEX. The HEX addresses must be converted to their decimal equivalent for
this instruction. See the conversion hints above.
This example is showing three slaves. In this case the address conversions are simple.
Check the Conversion Hints shown above for a more complex example.
0
Slot of D2–DCM
Slave Address
LD
K260
Slave 1
Slave 2
Slave 60
Slot 0
CPU
Slot 1 Slot 2 Slot 3 Slot 4
X10 = 3
X1 = C
Содержание D2-DCM
Страница 4: ...D2 DCM Data Communications Module Manual Number D2 DCM M...
Страница 37: ...1A Cable Diagrams...
Страница 47: ...Data Communications Module 2nd Edition 2 03 B RLL Communications Programs...
Страница 58: ...Data Communications Module 2nd Edition 2 03 C Using the D2 DCM with MODBUS...
Страница 67: ...Data Communications Module 2nd Edition 2 03 D Using the D2 DCM with Modems...