Mitsubishi Electronics FXCPU Welding System User Manual


 
6 Standard Function Blocks
6.8 TOF(_E)
222
FXCPU Structured Programming Manual
(Application Functions)
Program example
In this program, when bit data stored in a device specified in turns ON, bit data stored in a device
specified in turns ON. When bit data stored in a device specified in turns OFF, bit data stored in a
device specified in turns OFF 10 seconds later.
1) Function without EN/ENO(TOF)
2) Function with EN/ENO(TOF_E)
[Structured ladder]
[ST]
[Structured ladder]
[ST]
s
d1 s
d1
TOF
TOF_Instance
g_bool1 IN Q
ET
g_bool2
PT
T#10s
g_time1
TOF_Instance(IN:=g_bool1,PT:=T#10s);
g_bool2:=TOF_Instance.Q;
g_time1:=TOF_Instance.ET;
TOF_E
TOF_E_Instance
EN ENO
Q
g_bool2
M10
M0
g_bool1 IN
T#10s g_time1PT ET
TOF_E_Instance(EN:=M0,IN:=g_bool1,PT:=T#10s);
M10:=TOF_E_Instance.ENO;
g_bool2:=TOF_E_Instance.Q;
g_time1:=TOF_E_Instance.ET;