36 COUNTER/TIMER FUNCTION BLOCKS
36.1 Up Counter
1981
36
■Operation result
1. Function block without EN/ENO
The operation processing is performed. The operation result is output from (d1) and (d2).
• Timing chart
When (n)=3
2. Function block with EN/ENO
The execution conditions and operation results will be as follows.
• Timing chart
When (n)=3
There is no operation error.
(1) When (s1) turns on, the value in (d2) is counted up.
(2) When (s2) turns on, the value in (d2) is initialized.
Execution condition Operation result
EN ENO (d1), (d2)
TRUE (executed) TRUE Operation result output value
FALSE (not executed) FALSE Previous output value
(1) When (s1) turns on while EN is on, the value in (d2) is counted up.
(2) When (s2) turns on while EN is on, the value in (d2) is initialized.
OFF OFF
ON
OFF
ON ON ON
OFF
ON
OFF
ON ON ON
(s1)
OFF OFF
ON
(s2)
OFF
201 3 201
OFF
ON
(d1)
(d2)
(1) (2)
OFF OFF
ON
OFF
ON
(s1)
ON ON
OFF
ON
OFF
ON ON ON
OFF OFF
ON
(s2)
OFF OFF
ON
(d1)
(d2)
OFF
ON ON
201 3 0 1
ENO
ON ON ON
OFF
ON ON
EN
ON ON ON
(1) (2)