
7–40 Communication Commands
Publication
17706.5.16 - October 1996
Example:
Reading the 18th and 19th bytes shown in the example on page
7-39
These examples compare two methods for reading SLC 500 datafrom an SLC
500 (assumes S:2/8 = 0 so that word addressing is selected) and from a PLC2
processor
. When using the SLC 500 method, you do not multiply by two (as in
step 2, below) as you do with the PLC2 method.
Read N9:9 from SLC 500 processor:
1.
Convert decimal element to hex:
9 (decimal) 0009 (hex)
2.
Put low byte first in address field:
Address
09 00h
Size
xxh
3.
Put 02 (hex) in size field (2 bytes = 1 word):
Address Size
09 00h 02h
Read octal word 011 from PLC2 processor:
1.
Convert octal element to hex:
11 (octal) 0009 (hex)
2.
Multiply by 2:
0009h x 2 = 0012h
3.
Put low byte first in address field:
Address
12 00h
Size
xxh
4.
Put 02 (hex) in size field (2 bytes = 1 word):
Address
12 00h
Size
02h
Commentaires sur ces manuels