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