Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 63

6 - 27
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
(14)MVI (Move Immediate) RR after operation: RR
Ù
(a) Function
The function transfers the numeric value to the register when the ST contact is ON (RR =
1). If the ST contact is OFF (RR = 0), the instruction is not executed.
(b) Format
(c) Explanation
•
An ST contact must be entered before the MVI instruction.
•
The MVI instruction is executed in intervals of “4 × n” msec while the ST contact is
ON.
(d) Example
(15)ADD (Add Register) RR after operation: RR
Ù
(a) Function
The function executes addition between the content in the resister R2 and the content in
register R1 when the ST contact is ON (RR = 1) and stores the result to register R2.
The content in register is R1 remains unchanged and the status of RR also remains
unchanged.
If the ST contact is OFF (RR = 0), the instruction is not executed.
(b) Format
B A Paradym31 Variable Name
A B Paradym31 Variable Name