Drive plc developer studio, Program example, 2 instruction list – Lenze DDS v2.3 User Manual
Page 29
![background image](/manuals/565964/29/background.png)
Drive PLC Developer Studio
Program example
3-7
l
DDS EN 2.3
Pulse encoder TP
The pulse encoder TP has two inputs ( IN, PT) and two outputs ( Q, ET).
•
If at the input IN TRUE is applied, the output Q , for the time PT (in milliseconds) will return the
value TRUE.
•
ET
outputs the time already expired in milliseconds.
Input variable
Status
Output variables
Status/value
IN
FALSE
Q
FALSE
ET
0
IN
TRUE
Q
TRUE
(ET < PT)
ET
0
ì PT*
IN
Q
FALSE
(ET = PT)
ET
PT
* The output ET counts the time in milliseconds.
To use the pulse encoder TP in the organization unit WAIT we must create a local instance of TP
:
28.Use the declaration editor to declare as local variable (between the keywords VAR and
END_VAR
) a variable named DELAY of type TP.
3.2.6.2
Instruction list
To implement the timer, the instruction list for the organization unit WAIT must be as follows:
Show/Hide Bookmarks