i:INT; tDelay1:TON; tDelay2:TON; tDelay3:TON; tDelay4:TON; tDelay5:TON; START: BOOL;(*轻叩按钮,tap,非自锁*)---tDelay1(IN:=START,PT:=t#2s,ET:=) IF tDelay1.Q THEN	i:=1tDelay1(IN:=FLASE,PT:=t#2s,ET:=)tDelay2(IN:=TRUE,PT:=t#2s,ET:=) END if tDelay2.Q THEN	i:=10tDelay2(IN:=FLASE,PT:=t#2s,ET:=)tDelay3(IN:=TRUE,PT:=t#2s,ET:=) END if tDelay3.Q THEN	i:=100tDelay3(IN:=FLASE,PT:=t#2s,ET:=)tDelay4(IN:=TRUE,PT:=t#2s,ET:=) END if tDelay4.Q THEN	i:=1000tDelay4(IN:=FLASE,PT:=t#2s,ET:=)tDelay5(IN:=TRUE,PT:=t#2s,ET:=) END if tDelay5.Q THEN	i:=10000tDelay5(IN:=FLASE,PT:=t#2s,ET:=) END