36
COUNTER/TIMER FUNCTION BLOCKS
36.1
Up Counter
CTU(_E)
RnPCPU
RnCPU RnENCPU
(Process)
These function blocks count up the number of rising edges of a signal.
Ladder, FBD/LD
[Without EN/ENO]
s1
d1
s2
d2
n
Setting data
■Description, type, data type
Argument
EN
s1 (CU)
s2 (R)
n (PV)
ENO
d1 (Q)
d2 (CV)
Processing details
■Operation processing
1.
Counting up
• When (s1) changes from off to on, the value in (d2) is counted up by one.
• When (d2) reaches the (n) value, (d1) turns on and the counting stops.
• Set the maximum counter value to (n). When (s2) turns on, (d1) turns off and (d2) is set to 0.
2.
Maximum count value
The valid setting range of (n) is 0 to 32767.
36 COUNTER/TIMER FUNCTION BLOCKS
1980
36.1 Up Counter
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
[With EN/ENO]
EN
ENO
s1
d1
s2
d2
n
Description
Execution condition (TRUE: Executed, FALSE: Not executed)
Count signal input
Count value reset
Maximum count value
Output status (TRUE: Normal, FALSE: Abnormal or operation stop)
End of count
Count value
Structured text
[Without EN/ENO]
Instance name(CU:=s1,R:=s2,PV:=n,Q:=d1,CV:=d2);
[With EN/ENO]
Instance name(EN:=en,ENO:=eno,CU:=s1,R:=s2,PV:=n,Q:=d1,CV:=d2);
Type
Input variable
Input variable
Input variable
Input variable
Output variable
Output variable
Output variable
Data type
BOOL
BOOL
BOOL
INT
BOOL
BOOL
INT