Installation manual

Publication 1747-RM001G-EN-P - November 2008
5-18 Data Handling Instructions
Masked Move (MVM)
The MVM instruction is a word instruction that moves data from a source
location to a destination, and allows portions of the destination data to be
masked by a separate word. As long as the rung remains true, the instruction
moves the data each scan.
Entering Parameters
Enter the following parameters when programming this instruction.
Source is the address of the data you want to move
Mask is the address of the mask through which the instruction moves
data; the mask can also be a hexadecimal value (constant)
Destination is the address where the instruction moves the data
Updates to Arithmetic Status Bits
The arithmetic status bits are found in Word 0, bits 0 to 3 in the controller
status file. After an instruction is executed, the arithmetic status bits in the
status file are updated.
Table 5.7 Controller Function
With this Bit The Controller
S:0/0 Carry (C) always resets.
S:0/1 Overflow (V) always resets.
S:0/2 Zero (Z) sets if result is zero; otherwise resets.
S:0/3 Sign (S) sets if result is negative (most significant bit is set); otherwise
resets.
MVM
Masked Move
Source N7:68
0<
Mask 7FFFh
32767<
Dest N7:67
0<
MVM
Output Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
•••••
Table 5.8 Controller Function
With this Bit The Controller
S:0/0 Carry (C) always resets.
S:0/1 Overflow (V) always resets.
S:0/2 Zero (Z) sets if result is zero; otherwise resets.
S:0/3 Sign (S) sets if result is negative; otherwise resets.