IF #動(dòng)作 THEN
// Statement section IF
#單線(xiàn)圈電磁閥:=TRUE;
END_IF;
IF NOT #動(dòng)作 THEN
// Statement section IF
#單線(xiàn)圈電磁閥:=FALSE;
END_IF;
IF #動(dòng)作 AND NOT #動(dòng)點(diǎn) THEN
// Statement section IF
"IEC_Timer_0_DB".TON(IN := TRUE AND NOT #氣缸報(bào)警輔助[0] AND NOT #相應(yīng)氣缸報(bào)警,
PT := t#10s,
Q => #氣缸報(bào)警輔助[0],
ET => #計(jì)時(shí)[0]);
;
END_IF;
IF NOT #動(dòng)作 AND NOT #原點(diǎn) THEN
// Statement section IF
//
"IEC_Timer_0_DB_1".TON(IN := TRUE AND NOT #氣缸報(bào)警輔助[1] AND NOT #相應(yīng)氣缸報(bào)警,
PT := t#10s,
Q => #氣缸報(bào)警輔助[1],
ET => #計(jì)時(shí)[1]);
END_IF;
IF #氣缸報(bào)警輔助[0] THEN
// Statement section IF
#相應(yīng)氣缸報(bào)警 := TRUE;
#氣缸報(bào)警輔助[0] := FALSE;
#計(jì)時(shí)[0] := t#0s;
END_IF;
IF #氣缸報(bào)警輔助[1] THEN
// Statement section IF
#相應(yīng)氣缸報(bào)警 := TRUE;
#氣缸報(bào)警輔助[1] := FALSE;
#計(jì)時(shí)[1] := t#0s;
END_IF;
IF #氣缸報(bào)警清除 THEN
// Statement section IF
#相應(yīng)氣缸報(bào)警:=FALSE;
END_IF;