4. Configuration
198
Figure 4-67. TP_RET Function Block Graphic Behavior
Example in ST:
PROGRAM UserPrg
VAR RETAIN
bStart : BOOL;
TP_RET : TP_RET;
END_VAR
// Sets TP_NR
TP_RET(IN := bStart,
PT := T#20S);
bStart := FALSE;
// Actions performed during the counting
IF (TP_RET.Q = TRUE) THEN
// It executes while the counter is activated
ELSE
// It executes when the counter is deactivated
END_IF
Non-Redundant Timer
The non-redundant timer is used in applications for the redundant HX3040 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 into stand-by.
The following three function blocks are available in the MasterTool Xtorm LibPlcStandard for
adding libraries (See Libraries).
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, except that it is not redundant nor
retentive.
Figure 4-68. TOF_NR Function Block