5-196
5.11 Standard Counter Function Blocks
5.11.1 Up counter
CTU(_E)
Operation Error
No operation error occurs in the execution of the CTU (_E) function.
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 .
(a) Function without EN/ENO (CTU)
[Structured ladder]
[ST]
CTU_Inst ( g_bool1, g_bool2, g_int1, g_bool3, g_int2 );
(b) Function with EN/ENO (CTU_E)
[Structured ladder]
[ST]
CTU_E_Inst ( g_bool1, g_bool2 , g_int1, g_bool3, g_int2 );
s1
d2