5. CONFIGURATION
5.12.4.3. TP_RET
The TP_RET function block works as a trigger. The timer which starts when the IN input has its state changed from
(FALSE) to (TRUE), that is, a rising edge, it is increased until the PT time limit is reached. During the counting, the Q output
is (TRUE), otherwise it is (FALSE). The PT time can be changed during the counting as the block assumes the new value if
the counting has not finished. Figure 154 depicts the TP_RET and Figure 155 shows its graphic behavior.
Figure 154: TP_RET Function Block
Input parameters Type Description
IN BOOL
This variable, when receives a rising edge,
enables the function block counting.
PT TIME
This variable specifies the function block
counting limit (time delay).
Table 195: TP_RET Input Parameters
Output parameters Type Description
Q BOOL
This variable is true during the counting,
otherwise is false.
ET TIME This variable shows the current time delay.
Table 196: TP_RET Output Parameters
Figure 155: TP_RET Block Graphic Behavior
Utilization example in ST language:
PROGRAM UserPrg
VAR RETAIN
bStart : BOOL;
TP_RET : TP_RET;
END_VAR
// Configure TP_RET
257