4. Configuration
199
Example in ST:
PROGRAM NonSkippedProg
VAR
bStart : BOOL := TRUE;
TOF_NR : TOF_NR;
END_VAR
// When bStart=FALSE starts the counting
TOF_NR(IN := bStart,
PT := T#20S);
// Actions performed at the end of the counting
IF (TOF_NR.Q = FALSE) THEN
bStart := TRUE;
END_IF
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, except that it is not redundant nor
retentive.
Figure 4-69. TON_NR Function Block
Example in ST:
PROGRAM NonSkippedProg
VAR
bStart : BOOL;
TON_NR : TON_NR;
END_VAR
// When bStart=TRUE starts the counting
TON_NR(IN := bStart,
PT := T#20S);
// Actions performed at the end of the counting
IF (TON_NR.Q = TRUE) THEN
bStart := FALSE;
END_IF
TP_NR
The TP_NR function block works as a trigger and has its functioning and configuration similar to the
TP_RET function block, except that it is not redundant nor retentive.
Figure 4-70. TP_NR Function Block