Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 56

6 - 20
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
(4) CMR (Complement Register) RR after operation: RR-
(a) Function
The instruction reverses the content of the register when the ST contact is ON (RR = 1). If
the ST contact is OFF (RR = 0), the instruction does not reverse the content of the register.
The RR content remains unchanged before and after the execution of the CMR instruction.
(b) Format
(c) Explanation
•
An ST contact must be entered before the CMR instruction.
•
The CLR instruction is executed in intervals of “4 n” msec while the ST contact is ON.
(d) Example
(5) ADI (Add Immediate) RR after operation: RR-
(a) Function
The instruction adds the specified numeric value to the content of the register and stores
the result to the register when the ST contact is ON (RR = 1). If the ST contact is OFF
(RR = 0), the instruction is not executed.
The RR remains unchanged before and after the execution of the ADI instruction.
(b) Format
(c) Explanation
•
An ST contact must be entered before the ADI instruction.
•
The ADI instruction is executed in intervals of “4 × n” msec while the ST contact is
ON.
•
There is no function to detect overflow. Make sure that the result will not exceed FFH.
D
Paradym31 Variable Name
B A Paradym31 Variable Name