DVP15MC11T Operation Manual
8.7 Counter Instructions
8.7.1 CTU
FB/FC
Explanation
FB
CTU is used as an up counter. DVP15MC11T
Parameters
Meaning
Description Valid range
CU
Input
Control the up-counter to start counting up
TRUE or FALSE
Reset Reset signal
Input
Reset the counter present value TRUE or FALSE
PV Preset value
Input
Counter setting value 0 ~ 4294967295
Q Output signal
Output
Q is TRUE when CV equals PV. TRUE or FALSE
CV Counter value
Output
Counter present value 0 ~ 4294967295
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
CU
●
Reset
●
PV
●
Q
●
CV
●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
1. CTU functions as an up counter.
2. When CU changes from FALSE to TRUE, the counter perfoms the up-counting once and the value
of CV is increased by 1. When CV equals PV, Q is TRUE. When Reset is set to TRUE, CV is
cleared to 0 and Q is reset to FALSE.
CTU
EN ENO
Q
CTU_instance
CU
Q
Reset
CV
PV
8-46