5. CONFIGURATION
Input parameters Type Description
IN BOOL
This variable, when receives a rising edge,
enables the function block counting.
PT TIME
This variable specifies the block counting
limit (time delay).
Table 193: TON_RET Input Parameters
Output parameters Type Description
Q BOOL
This variable executes a rising edge as the
PT variable (time delay) reaches its maxi-
mum value.
ET TIME This variable shows the current time delay.
Table 194: TON_RET Output Parameters
Figure 153: TON_RET Block Graphic Behavior
Utilization example in ST language:
PROGRAM UserPrg
VAR RETAIN
bStart : BOOL;
TON_RET : TON_RET;
END_VAR
// Quando bStart=TRUE starts counting
TON_RET( IN := bStart,
PT := T#20S);
// Actions executed at the end of the counting
IF (TON_RET.Q = TRUE) THEN
bStart := FALSE;
END_IF
256