5-204
5.11 Standard Counter Function Blocks
5.11.4 Counter function blocks
COUNTER_FB_M
Operation Error
No operation error occurs in the execution of the counter function blocks.
Program Example
The program which counts the number of times that bit type data input to is turned from OFF
to ON, and outputs the count value from .
[Structured ladder]
[ST]
COUNTER_FB_M_Inst ( Var_M0, 10, 0, Var_D10, Var_M10 );
[Timing chart]
s1
d1
OFF
OFF
Var_M0
Value of Var_D10
Var_M10
10
ON
ON
23
1