VA Motion Controller Programming Manual
178
Note : IL, ST language programming needs to insert variables var1 ~ var5 or use
constants in the current POU variable worksheet
Data type processed by CTU instruction
If the
CU
has a rising edge
, CV
adds
1
When RESET is FALSE , the count is started ;
When TRUE , the CV is cleared, the counter is
initialized, and the Q terminal is reset.
Incremental count upper limit
Funtion and Action examples
Q
output
1
when contact
C002 is
turned
from
OFF
to
ON
five times
This counter function block
counts up. Assuming a rising
edge at the
CU
input and
RESET =
FALSE
, the
CV is
incremented by
one. If the final value of the
counter (
PV
)
is reached , a
TRUE
signal is
sent at the
Q
output and the
function block stops counting.
If
RESET = TRUE
,
the counter is initialized with
0
. In
order to enable the counting
process, the
RESET
input must
be
FALSE
. Otherwise the counter
will always be reinitialized.