Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 213

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Program example
In this program, the number of times the bit data stored in a device specified in
counted, and the count value is output to a device specified in
1) Function without EN/ENO(CTU)
[Structured ladder]
g_bool1
g_bool2
g_int1
[ST]
CTU_Instance(CU:=g_bool1,RESET:=g_bool2,PV:=g_int1);
g_bool3:=CTU_Instance.Q;
g_int2:=CTU_Instance.CV;
2) Function with EN/ENO(CTU_E)
[Structured ladder]
M10
g_bool1
g_bool2
[ST]
CTU_E_Instance(EN:=M10,CU:=g_bool1,RESET:=g_bool2,PV:=g_int1);
M11:=CTU_E_Instance.ENO;
g_bool3:=CTU_E_Instance.Q;
g_int2:=CTU_E_Instance.CV;
CTU_Instance
CTU
g_bool3
CU
Q
g_int2
RESET
CV
PV
CTU_E_Instance
CTU_E
EN
ENO
CU
Q
RESET
CV
g_int1
PV
.
d2
M11
g_bool3
g_int2
6 Standard Function Blocks
6.3 CTU(_E)
turns ON from OFF is
s1
211
1
2
3
4
5
6
A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents