Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 218

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 up (added by "1"). When the value stored in a device specified in
, a device specified in
n
At the same time, the number of times the bit data stored in a device specified in
counted down (subtracted by "1"). When the value stored in a device specified in
specified in
d2
1) Function without EN/ENO(CTUD)
[Structured ladder]
g_bool1
g_bool2
g_bool3
g_bool4
g_int1
[ST]
CTUD_Instance(CU:=g_bool1,CD:=g_bool2,RESET:=g_bool3,LOAD:=g_bool4,PV:=g_int1);
g_bool5:=CTUD_Instance.QU;
g_bool6:=CTUD_Instance.QD;
g_int2:=CTUD_Instance.CV;
2) Function with EN/ENO(CTUD_E)
[Structured ladder]
M0
[ST]
CTUD_E_Instance(EN:=M0,CU:=g_bool1,CD:=g_bool2,RESET:=g_bool3,LOAD:=g_bool4,PV:=g_int1);
M10:=CTUD_E_Instance.ENO;
g_bool5:=CTUD_E_Instance.QU;
g_bool6:=CTUD_E_Instance.QD;
g_int2:=CTUD_E_Instance.CV;
216
turns ON.
d1
turns ON.
CTUD_Instance
CTUD
g_bool5
CU
QU
g_bool6
CD
QD
g_int2
CV
RESET
LOAD
PV
CTUD_E_Instance
CTUD_E
EN
ENO
g_bool1
CU
g_bool2
CD
g_bool3
RESET
g_bool4
LOAD
g_int1
PV
M10
g_bool5
QU
g_bool6
QD
g_int2
CV
6 Standard Function Blocks
6.5 CTUD(_E)
turns ON from OFF is
s1
reaches the value specified in
d3
turns ON from OFF is
s2
becomes "0", a device
d3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents