VA Motion Controller Programming Manual
177
turned
from
OFF
to
ON
five times
This counter function block
decrements the count. Assuming a
rising edge at the
CD
input and
LOAD
= FALSE
, the
CV is
decremented 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
LOAD=TRUE
, the counter is
initialized by the value of
the
PV
input. In order to enable the
counting process, the
LOAD
input
must be
FALSE
. Otherwise the
counter will be reinitialized.
10.2.2 CTU (Incremental Counter Instruction )
LD, FBD programming language
Function: The CTU instruction is used to count the input terminal. When
the RESET terminal is FLSE , if there is a rising edge at the CU input, the CV terminal is
incremented by 1 . If the count value CV reaches the upper limit value PV of the
counter , a TRUE signal is issueDAt the Q output , and the CTU function block stops
counting. When the RESET terminal is TRUE , the counter stops counting and the CV terminal is
cleared.
CTU_1
(
CD:=var1
,
LOAD:=var2,
PV:=var3
)