Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 78

6 - 42
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
(36)MVIW (Move Immediate Word Register) RR after operation: RR-
(a) Function
The instruction transfers the numeric value to the register when the ST content is ON
(RR = 1).
If the ST contact is OFF (RR = 0), the MVIW instruction is not executed.
(b) Format
(c) Explanation
•
A ST contact must be entered before the MVIW instruction.
•
The MVIW instruction is executed in intervals of “4 × n” msec while the ST contact
is ON.
(d) Example
(37)DSTW (Data Store Word Register) RR after operation: RR-
(a) Function
The instruction executes AND between the content of WR1 and the numeric value when
the ST contact is ON (RR = 1) and stores the result to WR2. The content of the register
(WR1) remains unchanged before and after the execution of the instruction.
If the ST contact is OFF (RR = 0), the DSTW instruction is not executed.
(b) Format
B C
A
Paradym31 Variable Name