Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 295
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) Chapter 7
Move (MOV)
The MOV instruction copies the Source to the Destination. The Source remains
unchanged.
Operands:
Relay Ladder
Structured Text
Use an assignment ‘:=’ with an expression. This assignment moves the value in source to
dest.
See Structured Text Programming
for information on the syntax of expressions and
assignments within structured text.
Description: The MOV instruction copies the Source to the Destination. The Source remains
unchanged.
Arithmetic Status Flags: Arithmetic status flags are affected.
Fault Conditions: None
Execution:
Operand Type Format Description
Source SINT
INT
DINT
REAL
Immediate
Tag
Value to move (copy)
A SINT or INT tag converts to a DINT value by sign-extension.
Destination SINT
INT
DINT
REAL
Tag Tag to store the result
Condition Relay Ladder Action
Prescan The rung-condition-out is set to false.
Rung-condition-in is false The rung-condition-out is set to false.
Rung-condition-in is true The instruction copies the Source into the Destination.
The rung-condition-out is set to true.
Postscan The rung-condition-out is set to false.