5. CONFIGURATION
5.12.5.2. TON_NR
The TON_NR function block implements a delay time to enable an output and has its functioning and configuration similar
to the TON_RET function block, differentiating only for not being redundant nor retentive.
Figure 157: TON_NR Function Block
Utilization example in ST language:
PROGRAM NonSkippedPrg
VAR
bStart : BOOL;
TON_NR : TON_NR;
END_VAR
// When bStart=TRUE starts the counting
TON_NR( IN := bStart,
PT := T#20S);
// Actions executed at the end of the counting
IF (TON_NR.Q = TRUE) THEN
bStart := FALSE;
END_IF
5.12.5.3. TP_NR
The TP_NR function block works as a trigger and has its functioning and configuration similar to the TP_RET function
block, differentiating only for not being redundant nor retentive.
Figure 158: TP_NR Function Block
Utilization example in ST language:
PROGRAM NonSkippedPrg
VAR
bStart : BOOL;
TP_NR : TP_NR;
END_VAR
// Configure TP_NR
TP_NR( IN := bStart,
PT := T#20S);
259