10 system function instructions, 1 counter (counter), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 294

Advertising
background image

5.10 System Function Instructions

5.10.1 Counter (COUNTER)

5-225

Instructions

5

5.10 System Function Instructions

5.10.1 Counter (COUNTER)

( 1 ) Operation

When the count up or count down command changes from OFF to ON, the current value is incremented or decre-
mented.
When the counter reset command turns ON, the current value of the counter is set to 0. The current value of the counter
is compared against the set value and the result is output.
If a counter error occurs (i.e., if the current value is greater than the set value), the current value will neither be incre-
mented nor decremented.

Three status are output as shown below.

• Count matched (current value = set value).
• Count is zero (current value = 0).
• Counter error

(current value > set value or current value < 0).

Status

Rising edge of count up command

(OFF → ON)

Rising edge of count down command

(OFF → ON)

Counter reset command

ON

Count value incremented

(current value + 1).

Count value decremented

(current value − 1).

Counter reset

(current value = 0)

Counter set value

Counter current value

COUNTER instruction

Advertising
This manual is related to the following products: