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
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 )
IL programming language
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.
LD varl
ST CTU_1.CU
LD var2
ST CTU_1.RESET
LD var3
ST CTU_1.PV
CAL CTU_1
LD CTU_1.Q
ST var4
LD CTU_1.CV
ST var5
ST language
CTU_1
(
CD:=var1
,
LOAD:=var2,
PV:=var3
)
Var4:=CTU_1.Q

Table of Contents

Related product manuals