7 timers, 1 tp, Drive plc developer studio – Lenze DDS v2.3 User Manual
Page 308
Advertising
![background image](/manuals/565964/308/background.png)
Drive PLC Developer Studio
IEC 61131-3 Standard functions
14-16
l
DDS EN 2.3
14.7
Timers
14.7.1
TP
Pulse encoder
TP(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.
•
After a positive edge at input IN, output Q becomes TRUE for the time specified at PT
Then Q will be FALSE again.
•
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
thus returns a signal for the time specified at PT .
Graphic representation of TP’s time sequence:
Examples
Declaration:
TPInst : TP;
IL
FBD
CAL TPInst(IN:=VarBOOL1, PT:=T#5s)
LD TPInst.Q
ST VarBOOL2
ST
TPInst(IN:=VarBOOL1, PT:=T#5s);
VarBOOL2:=TPInst.Q;
Show/Hide Bookmarks
Advertising