4. Configuration
216
Figure 4-111. TP_RET Block Graphic Behavior
Utilization example in ST language:
PROGRAM MainPrg
VAR RETAIN
bStart : BOOL;
TP_RET : TP_RET;
END_VAR
// Configure TP_NR
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
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, chapter Library.
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 4-112. TOF_NR Function Block
Utilization example in ST language:
PROGRAM NonSkippedProg
VAR
bStart : BOOL := TRUE;
TOF_NR : TOF_NR;