beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 61

background image

6 - 25

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(11)COI (Coincide Immediate) 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 the result of com-
parisons is “coincide”.

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 COI instruction.

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

(d) Example

(12)CMP (Compare) RR after operation: RR

Ù

(a) Function

The instruction compares the numeric value to the eight-bit data of the register or contact
set and sets “1” or “0” depending on the result of comparison.

Register (contact)

Numeric value: RR = 1

Register (contact) < Numeric value: RR = 0

This instruction is ececuted independent of RR at the input side.

(b) Format

B A Paradym31 Variable Name

B A Paradym31 Variable Name