5. CONFIGURATION
TP_RET( IN := bStart,
PT := T#20S);
bStart := FALSE;
// Actions executed during the counting
IF (TP_RET.Q = TRUE) THEN
// Executes while the counter is activated
ELSE
// Executes when the counter is deactivated
END_IF
5.12.5. Non-Redundant Timer
The non-redundant timer is used in applications for the redundant NX3030 CPU which need a timer in the non-redundant
program of a half-cluster. This timer does not use the IEC timer, therefore, it will not be synchronized in case the reserve
half-cluster assumes the active status and the active one goes for reserve.
The three types of blocks already available in the NextoStandard library of the MasterTool IEC XE software are describe as
follows (for doing the procedure of library’s inclusion, check MasterTool IEC XE Programming Manual – MP399608, section
Library).
5.12.5.1. TOF_NR
The TOF_NR function block implements a delay time for disabling an output and has its functioning and configuration
similar to the TOF_RET function block, differentiating itself only for not being redundant nor retentive.
Figure 156: TOF_NR Function Block
Utilization example in ST language:
PROGRAM NonSkippedPrg
VAR
bStart : BOOL := TRUE;
TOF_NR : TOF_NR;
END_VAR
// When bStart=FALSE starts the counting
TOF_NR( IN := bStart,
PT := T#20S);
// Actions executed at the end of the counting
IF (TOF_NR.Q = FALSE) THEN
bStart := TRUE;
END_IF
258