Operation error
• No operation error occurs.
Program example
■CTUD(_E)
The program which counts the number of times that bit type data input to (s1) is turned from OFF to ON, and turns ON (d1)
when the value of (D3) reaches the value set at (n). Simultaneously, it counts the number of times that bit type data input to
(s2) is turned from OFF to ON, and turns ON (d2) when the value of (D3) reaches 0.
• Function without EN/ENO (CTD)
[Structured ladder/FBD]
[ST]
CTUD_Inst(CU:=g_bool1, CD:=g_bool2, RESET:=g_bool3, LOAD:=g_bool4, PV:=g_int1, QU:=g_bool5, QD:=g_bool6, CV:=g_int2);
• Function with EN/ENO (CTD_E)
[Structured ladder/FBD]
[ST]
CTUD_E_Inst(EN:=M0, CU:=g_bool1, CD:=g_bool2, RESET:=g_bool3, LOAD:=g_bool4, PV:=g_int1, QU:=g_bool5, QD:=g_bool6, CV:=g_int2, ENO:=M10);
5 APPLICATION FUNCTIONS
188
5.11 Standard Counter Function Blocks