beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 62

background image

6 - 26

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(c) Explanation

It is not allowed to enter a contact before the CMP instruction. If a contact must be
entered, use the CPI instruction.

The CMP instruction is executed in intervals of “4 × n” msec.

(d) Example

(13)CPI (Compare) RR after operation: RR

Ù

(a) Function

When the ST contact is ON (RR = 1), the instruction compares the numeric value to
the eight-bit data of the register or contact set and sets “1” to RR (RR = 1) if “Register
(contact)

Numeric value”.

If the ST contact is OFF (RR = 0), the instruction is not executed. RR remains unchanged.

(b) Format

(c) Explanation

A ST contact must be entered before the CPI instruction.

The CPI instruction is executed in intervals of “4 × n” msec while the ST contact is
ON.

(d) Example

B A Paradym31 Variable Name