Programming examples of assignment commands – Rockwell Automation 1775-S5_SR5,D17756.5.5 User Manual PLC-3 FAMILY I/0 User Manual
Page 89

Addressing DH and DH+ Data Transfers
Chapter 5
5-15
This section gives examples of assignment commands using the four
available addressing methods. Often, the choice of addressing method and
the structure of the data table section which is being addressed, determines
what data is actually sent.
Timers, counters, high-order integers, floating point, and pointers are all
stored in the PLC-3 memory as multiple words. Each timer and counter
contained in the PLC-3 uses 3 consecutive words; one for the control bits,
one for the preset value, and one for the accumulated value. Timers and
counters are stored in the following order:
CTL PRE ACC
The PLC-3 stores high-order integers and floating point numbers as two
words. Pointers consume three words each in PLC-3 memory.
Table 5.B
PLCĆ2 Logical Data Addressing
Data Addressing
Description
#H021$040 = $B3
write data from entire binary file 3 to remote station
21 beginning at word 40 octal.
#H021$040 = $B3:5,20
write the twenty words beginning at binary file 3,
word 5 to remote station 21, beginning at word 40
octal.
#H021$40 = $B3:5
write binary file 3, word 5, to remote station 21 word
40 decimal.
#H021$040/5 = $B3:5/13
write binary file 3, word 5, bit 13, to remote station
21 word 40 octal, bit 5.
#H021$040 <= $B3:5
as a priority message, write binary file 3, word 5 to
remote station 21 word 40 octal. If the scanner is
configured for DH+, the priority modifier is ignored.
#H021$040 = $B3:5 U
send an unprotected write of binary file 3, word 5, to
remote station 21 word 40 octal.
Programming Examples of
Assignment Commands