6 Standard Function Blocks
6.6 TP(_E)
218
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 and remains ON for 10 seconds.
1) Function without EN/ENO(TP)
2) Function with EN/ENO(TP_E)
[Structured ladder]
[ST]
[Structured ladder]
[ST]
s
d1
TP
TP_Instance
g_bool1
IN
Q
ET
g_bool2
PT
T#10s
g_time1
TP_Instance(IN:=g_bool1,PT:=T#10s);
g_bool2:=TP_Instance.Q;
g_time1:=TP_Instance.ET;
TP_E
TP_E_Instance
EN
ENO
Q
g_bool2
M10
M0
g_bool1
IN
T#10s
g_time1
PT
ET
TP_E_Instance(EN:=M0,IN:=g_bool1,PT:=T#10s);
M10:=TP_E_Instance.ENO;
g_bool2:=TP_E_Instance.Q;
g_time1:=TP_E_Instance.ET;