Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 76

6 - 40
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
(33)CMRW (Complement Word Register) RR after operation: RR-
(a) Function
The instruction reverses the content of double-length register when the ST content is ON
(RR = 1)
(b) Format
(c) Explanation
•
A ST contact must be entered before the CMRW instruction.
•
The CMRW instruction is executed in intervals of “4 × n” msec while the ST contact
is ON.
•
There is no function to detect underflow. If the result of operation exceeds 0H, it
returns to FFFH.
(34)CORW (Coincide Word Register) RR after operation: RR
Ù
(a) Function
The instruction executes comparison between WR1 and WR2 when the ST content is
ON (RR = 1), and sets “0” or ”1” to Z1 according to the result of comparison.
WR1 = WR2 Z1= 1
WR
≠
WR2 Z1 = 0
If the ST contact is OFF (RR = 0), the CORW instruction is not executed.The content
of RR remains unchanged.
(b) Format
(c) Explanation
•
After the execution of CORW instruction, the contents of WR1 and WR2 remain
unchanged.
•
A ST contact must be entered before the CORW instruction.
•
The CORW instruction is executed in intervals of “4 × n” msec while the ST contact
is ON.
D
Paradym31 Variable Name
A B Paradym31 Variable Name