beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 53

background image

6 - 17

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

Do not use the same address for both a fixed timer and a variable timer.

If used, correct operation cannot be guaranteed.

6.3.3 Register Instructions

The register instructions are described below.

(1) INR (Increment Register) RR after operation : RR-

(a) Function

The instruction adds “+1” to the content of the register when the ST contact is ON
(RR = 1). If the ST contact is OFF (RR = 0), addition is not executed.

(b) Format

(c) Explanation

An ST contact must be entered before the INR instruction.

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

There is no function to detect overflow. If a timer counts to FFH, it returns to 0H.

(d) Example

The following examples show when the register of #1500s is used.

D

Paradym31 Variable
Name