Mitsubishi Electric MELSEC-Q/L Programming Manual page 184

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
[Timing chart]
ON
s1
OFF
OFF
s2
OFF
ON
ENO
OFF
d1
OFF
d2
0
Turns
d2
ON when EN = ON and
Operation error
• No operation error occurs.
Program example
■CTU(_E)
The program which counts the number of times that bit type data input to (s1) is turned from OFF to ON, and outputs the count
value from (d2).
• Function without EN/ENO (CTU)
[Structured ladder/FBD]
[ST]
CTU_Inst(CU:=g_bool1, RESET:=g_bool2, PV:=g_int1, Q:=g_bool3, CV:=g_int2);
• Function with EN/ENO (CTU_E)
[Structured ladder/FBD]
[ST]
CTU_E_Inst(EN:=M10, CU:=g_bool1, RESET:=g_bool2, PV:=g_int1, Q:=g_bool3, CV:=g_int2, ENO:=M11);
5 APPLICATION FUNCTIONS
182
5.11 Standard Counter Function Blocks
ENO
TRUE
FALSE
ON
ON
ON
OFF
ON
ON
1
2
s1
= ON.
ON
ON
OFF
OFF
ON
OFF
ON
ON
OFF
3
d2
Clears
0 when
(d)
Operation output value
Previous output value
ON
ON
ON
0
1
s2
= ON.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents