- Studio 5000 Logix Designer
- Tasks, programs, and routines
- Add-On Instructions
- Controller Organizer
- Logical Organizer
- Alarms
- Tag-based alarms
- Tag Editor and Data Monitor
- Configure settings for Tag Editor and Data Monitor
- Equipment phases
- Equipment Sequences
- Equipment Sequence Diagrams
- Ladder Editor
- Structured Text Editor
- Sequential Function Chart Editor
- Define the steps of an SFC process
- PlantPAx instruction properties
- Controller Properties
- Editing Controller Properties
- Controller Security
- Source Protection
- License Source Protection for Routines and Add-On Instructions
- Module Information
- 1756 ControlLogix I/O Modules
- Instruction Set
Move/Logical Instructions
The Move instructions modify and move bits.
Available Instructions
Ladder Diagram
Function Block Diagram
FBD Block
FBD Function
Structured Text
If you want to: | Use this instruction: |
---|---|
Copy a value or move strings | MOVE |
Copy a specific part of an integer | MVM |
Copy a specific part of an integer in a function block | MVMT |
Move bits within an integer or between integers | BTD |
Move bits within an integer or between integers in a function block | BTDT |
Clear a value | CLR |
Rearrange the bytes of an INT, DINT, or REAL tag | SWPB |
The logical instructions perform logical operations on bits.
If you want to: | Use this instruction: |
---|---|
Perform a bitwise AND operation | AND |
Perform a bitwise OR operation | OR |
Perform a bitwise, exclusive OR operation | XOR |
Perform a bitwise NOT operation | NOT |
You can mix data types, but loss of accuracy and rounding error might occur and the instruction takes more time to execute. Check the S:V bit to see whether the result was truncated.
The
bold
data types indicate optimal data types. An instruction executes faster and requires less memory if all the operands of the instruction use the same optimal data type, typically DINT or REAL.A move/logic instruction executes once each time the instruction is scanned as long as the rung-condition-in is true. If you want the expression evaluated only once, use any one-shot instruction to trigger the move/logic instruction.
Provide Feedback