Move (MOVE)

The MOVE instruction moves a copy of the Source to the Dest. The Source remains unchanged.
Available Languages
Ladder Diagram
MOVE ladder instruction
Operands
IMPORTANT: Unexpected operation may occur if:
  • Output tag operands are overwritten
  • Members of a structure operand are overwritten
  • Except when specified, structure operands are shared by multiple instructions.
There are data conversion rules for mixing numeric data types within an instruction. See Data conversions.
Ladder Diagram
Numeric
Operand
Data Type
Format
Description
Source
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
REAL
LREAL
immediate
tag
Value to move
Dest
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
REAL
LREAL
tag
Tag to store the result
String
Operand
Data Type
Format
Description
Source
String type
immediate
tag
String to move
Dest
String type
tag
Tag to store the result
Affects Math Status Flags
Conditional. See Math status flags.
Major/Minor Faults
A minor fault will occur if:
Fault type
Fault code
Overflow detection feature is enabled and the Source value is outside the range of Dest type.
4
4
Execution
Ladder Diagram
Condition/State
Action Taken
Prescan
N/A
Rung-condition-in is false
Set Rung-condition-out to Rung-condition-in.
Rung-condition-in is true
Set Rung-condition-out to Rung-condition-in.
The instruction copies the Source into the Dest.
String operands:
If Source.LEN > SIZE( Dest.DATA)
The string is truncated to what will fit
S:V is set.
Postscan
N/A
Example
Ladder Diagram
MOVE ladder instruction example
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.