Rockwell Automation 1779-KP3R DATA HIGHWAY II User Manual
Page 52
Programming
Chapter 3
3Ć17
The following table contains examples of using the TMOVE command to
move bit:
To move data
from:
Command line example:
Explanation:
PLC-3 to PLC-2 TMOVE FROM :66$010/1 TO $B2:3/4
or
TM F :66$010/1 T $B2:3/4
Transfers bit 1 of word 010 from
node 66 to bit 4 of word 3 of binary
file 2.
PLC-3 to PLC-2 TMOVE FROM $B2:3/011 TO
:66$010/015 or
TM F $B2:3/011 T :66$010/015
Transfers bit 11 of word 3 from
binary file 2 to bit 15 of word
address 010 at node 66.
PLC-3 to PLC-3 TMOVE FROM :76$I4:50/2 TO $B2:3/4
or
TM F :76$I4:50/2 T $B2:3/4
Transfers bit 2 of word 50 of input
file 4 from node 76 to bit 4 of word 3
of binary file 2.
PLC-3 to PLC-3 TMOVE FROM $B2:3/4 TO
:76$B40:50/2 or
TM F $B2:3/4 T :76$B40:50/2
Transfers bit 4 of word 3 of binary
file 2 to bit 2 of word 50 on binary
file 40 at node 76.
PLC-3 to PLC-2 TMOVE #1 TO :76$222/3 or
TM #1 T :76$222/3
Transfers the integer constant 1 to
bit 3 of word address 222 at node
76.
PLC-3 to PLC-3 TMOVE #0 TO :76$B2:3/4 or
TM #0 T :76$B2:3/4 or
Transfers the integer constant 0 to
bit 4 of word 3 of binary file 2 at
node 76.
More Examples
Example 1
The following is an example of specifying a variable word range length.
M F $N1:0 T :024$N1:0,($N0:0)
$N0:0 provides the variable length
Example 2
The following is an example of performing a file read.
Note, there is no colon after $N0
M F $N0 T :024$N0
Important: When you perform a file read as shown in Example 2, the
source and destination files must be the same length.