Article translated with the assistance of AI tools. Images and parts of the content will still be reviewed.
In this tutorial, you will learn how to use the pulse timer function block (TP), available in the function library of the MasterTool IEC XE environment.
1. DEVELOPMENT
Functional timer block, operating as a trigger. The time is counted until a certain limit is reached. During the countdown, the "pulse" variable is TRUE; otherwise, it is FALSE.
INPUTS:
IN: BOOL; on a rising edge, the time count in ET will be started.
PT: TIME; upper time limit.
OUTPUTS:
Q: BOOL; TRUE while the time is being counted in ET (pulse).
ET: TIME; current time state.
TP(IN, PT, Q, ET) means:
If IN is FALSE, Q will be FALSE and ET will be 0. As soon as IN becomes TRUE, the time will start being counted in milliseconds in ET until its value equals PT (and from then on it will remain constant). Q will be TRUE when IN is TRUE and ET is equal to or less than PT. Otherwise, it will be FALSE. Q returns a signal for the time period given in PT.
2. VIDEO
Comments
0 comments
Please sign in to leave a comment.