1 Publication 1762-RM001C-EN-P
Chapter
13
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.
– 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.
•
Valid constants are -32768 to 32767 (word) and -2,147,483,648 to
2,147,483,647 (long word).
Instruction Used to: Page
MOV - Move Move the source value to the destination. 13-1
MVM - Masked Move Move data from a source location to a selected
portion of the destination.
13-3
MOV
Move
Source N7:0
0<
Dest N7:1
0<
MOV
Table 13.1 Execution Time for the MOV Instruction
Controller Data Size When Rung Is:
True False
MicroLogix 1200 word 2.4
µ
s0.0
µ
s
long word 8.3
µ
s0.0
µ
s
MicroLogix 1500 word 2.3
µ
s0.0
µ
s
long word 6.8
µ
s0.0
µ
s