2 ton, Drive plc developer studio – Lenze DDS v2.3 User Manual
Page 309
Drive PLC Developer Studio
IEC 61131-3 Standard functions
14-17
l
DDS EN 2.3
14.7.2
TON
Timer on-delay
TON(IN, PT, Q, ET)
means:
•
IN
and PT are input variables of type BOOL or TIME.
•
Q
and ET are output variables of type BOOL or TIME.
•
If IN is FALSE, the returns are FALSE or 0.
•
As soon as IN returns TRUE, ET will count the time in milliseconds until the value equals
that in PT and then remain the same.
•
Q
is TRUE if IN returns TRUE and ET equals PT. Otherwise Q will be FALSE.
Q
thus has a rising edge when the time set in milliseconds in PT has expired.
Graphic representation of TON’s time sequence:
Examples
Declaration:
TONInst : TON;
IL
FBD
CAL TONInst(IN:=VarBOOL1, PT:=T#5s)
LD TONInst.Q
ST VarBOOL2
ST
TONInst(IN:=VarBOOL1, PT:=T#5s);
VarBOOL2:=TONInst.Q;
Show/Hide Bookmarks