261
Publication 1766-RM001A-EN-P - October 2008
Chapter
14
Move Instructions
The move instructions modify and move words.
MOV - Move
Instruction Type: output
The MOV instruction is used to move data from the source to the
destination. As long as the rung remains true, the instruction moves the
data each scan.
Using the MOV Instruction
When using the MOV instruction, observe the following:
•
Source and Destination can be different data sizes. The source is
converted to the destination size when the instruction executes. If
the signed value of the Source does not fit in the Destination, the
overflow is handled as follows:
–
If the Math Overflow Selection Bit is clear, a saturated result is
stored in the Destination. If the Source is positive, the Destination
is 32767 (word). If the result is negative, the Destination is -32768
(word).
–
If the Math Overflow Selection Bit is set, the unsigned truncated
value of the Source is stored in the Destination.
•
Source can be a constant or an address.
Instruction
Used to:
Page
MOV - Move
Move the source value to the destination.
MVM - Masked Move
Move data from a source location to a selected
portion of the destination.
MOV
Move
Source
N7:0
0<
Dest
N7:1
0<
MOV
Execution Time for the MOV Instruction
Controller
Data Size
When Rung Is:
True
False
MicroLogix 1400
word
1.4231 µs
0.3542 µs
long word
1.4103 µs
0.3722 µs
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive