Move (MOVE)

This table lists the controllers and applications that support this instruction.
Architecture
Standard applications
Safety applications
CompactLogix 5370, ControlLogix 5570, Compact GuardLogix 5370, and GuardLogix 5570 controllers
Yes
No
CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers
Yes
Yes
The MOVE instruction moves a copy of the Source to the Dest. The Source remains unchanged.
TIP: In Logix Designer version 36, the mnemonic for this instruction changed from MOV to MOVE.
Available Languages
Ladder Diagram
MOVE in ladder editor
Function Block
This instruction is not available in function block.
Structured Text
This instruction is not available in structured text.
TIP:
Use an assignment ":=" with an expression to achieve the same result. Refer to Structured Text Syntax for more information on the syntax of expressions and assignments within structured text.
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
CompactLogix 5370, ControlLogix 5570, Compact GuardLogix 5370, and GuardLogix 5570 controllers
Data Type
CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers
Format
Description
Source
SINT
INT
DINT
REAL
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
REAL
LREAL
TIME
TIME32
LTIME
DT
LDT
immediate
tag
Value to move
Dest
SINT
INT
DINT
REAL
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
REAL
LREAL
TIME
TIME32
LTIME
DT
LDT
tag
Tag to store the result
TIP:
See Time and date data types for a complete description of Relative Time (LTIME, TIME, and TIME32) and Absolute Time (LDT and DT) data types.
TIP:
Keep these restrictions in mind when using Relative Time (LTIME, TIME, TIME32) and Absolute Time (LDT, DT) data types:
  • A relative time type can move only to or from another relative time type.
  • And absolute time type can move only to or from another absolute time type. Additionally, you can program an absolute time type with a LINT to accommodate some legacy timestamp practices.
String (for CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers only)
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
Controllers
Affects Math Status Flags
CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, Compact GuardLogix 5380, and GuardLogix 5580 controllers
Conditional
CompactLogix 5370, ControlLogix 5570, Compact GuardLogix 5370, and GuardLogix 5570 controllers
Yes
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
Examples
Ladder Diagram
MOVE ladder example
Structured Text
value_2 := value_1;
value_3 := 'Test PASSED';
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.