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