Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 293
Chapter
7
Move/Logical Instructions
(MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT,
BAND, BOR, BXOR, BNOT)
The move instructions modify and move its, and the logical instructions perform
operations on bits.
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.
For relay ladder instructions, 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.
The move instructions modify and move bits.
Topic Page
Move (MOV) 295
Masked Move (MVM) 297
Masked Move with Target (MVMT) 300
Bit Field Distribute (BTD) 303
Bit Field Distribute with Target (BTDT) 306
Clear (CLR) 309
Swap Byte (SWPB) 311
Bitwise AND (AND) 315
Bitwise OR (OR) 319
Bitwise Exclusive OR (XOR) 323
Bitwise NOT (NOT) 327
Boolean AND (BAND) 331
Boolean OR (BOR) 334
Boolean Exclusive OR (BXOR) 337
Boolean NOT (BNOT) 340