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
179
10.2.3 CTUD (increasing or decreasing bidirectional
counter command )
IL programming language
LD, FBD programming language
Function: The CTUD instruction is used to increment or decrement the input. When the
RESET terminal and the LOAD terminal are both FALSE , the counting is allowed : if a rising edge
occurs at the CU input terminal, the CV terminal is incremented by one; if a rising edge occurs at
the CD input terminal, the CV terminal is decremented by one; when CV=PV , then QU=1, the
CTUD function block stops counting up ; if CV=0 , then QD=1, the CTUD function block stops
counting down. When the RESET terminal is TRUE , the counter stops incrementing and counting
down, and the CV terminal is cleared . When the LOAD terminal is TRUE , the counter stops
incrementing and counting down, and the PV value is assigned to the CV terminal.
LD varl
ST CTUD_1.CU
LD var2
ST CTUD_1.CD
LD var3
ST CTUD_1.RESET
LD var4
ST CTUD_1.LOAD
LD var5
ST CTUD_1.PV
CAL CTUD_1
LD CTUD_1.QU
ST var6
LD CTUD_1.QD
ST var7
LD CTUD_1.CV
ST var8
ST
programming language
CTUD_1 ( CU:=var1 , CD:=var2,
RESET:= var3, LOAD:=var4,
PV:=var5 ) ;
Var6:=CTUD_ 1.QU;
Var7:=CTUD_ 1.QD;
Ar8:=CTUD_ 1.CV;
Note : IL, ST language programming needs to insert the variable val ~ var8 or use constants in
the variable worksheet of the current POU
数据 Data type processed by CTU instruction

Table of Contents

Related product manuals