5-194
5.11 Standard Counter Function Blocks
5.11.1 Up counter
CTU(_E)
5.11 Standard Counter Function Blocks
5.11.1 Up counter
CTU(_E)
Function
Operation processing
Counts when is turned ON.
When the count value reaches the value input to , turns ON.
When is turned ON, turns OFF and count value is reset.
CTU(_E)
_E: With EN/ENO
indicates any of the following
functions.
CTU CTU_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) :Bit
s1:
Count signal input :Bit
s2:
Count reset :Bit
n:
Maximum count value :Word (signed)
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error or stop) :Bit
d1:
Count match output :Bit
d2:
Count value :Word (signed)
Universal
UD
High
Performance
EN ENO
ds
WORD_TO_BOOL_E
(EN, s, d);ENO:=
Structured ladder
ST
WORD_TO_BOOL_E
d2
s1
n
d1
s2
d1
d2