EasyManua.ls Logo

Vector VEC-VA Series

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VA Motion Controller Programming Manual
178
Var5:=CTU_1.CV
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
Input
type of data
description
CU
BOOL
If the
CU
has a rising edge
, CV
adds
1
RESET
BOOL
When RESET is FALSE , the count is started ;
When TRUE , the CV is cleared, the counter is
initialized, and the Q terminal is reset.
PV
INT
Incremental count upper limit
Output
type of data
description
Q
BOOL
When
CV=PV
,
Q=1
CV
INT
Count value
Funtion and Action examples
Q
output
1
when contact
C002 is
turned
from
OFF
to
ON
five times
description
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.

Table of Contents

Related product manuals