AKF_TE: Switch-on delay
Original instructions
Function description
The derived function block is used as switch on delay.
The delay time comprises a time base ZB and a factor SW. The delay time is calculated from ZB x SW.
The actual value is displayed at the TIW output and is calculated according to the following formula: TIW = expired time / ZB
With a 0 -> 1 edge at the IN input the delay time is transferred to the TSW output, the internal timer is started, and the current state is displayed at the TIW output.
When TIW equals TSW, the Q output is set to "1".
With a 0 -> 1 edge at the R input or a 1 -> 0 edge at the IN input, the internal timer is reset and the Q output is set to "0".
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL AKF_TE_Instance (IN:=StartingDelay, ZB:=TimeBase,
    SW:=FactorDelayTime, R:=ResetInput, Q=>Output,
    TIW=>InternalTime, TSW=>TimerSetpointValue)
Representation in ST
Representation:
AKF_TE_Instance (IN:=StartingDelay, ZB:=TimeBase,
    SW:=FactorDelayTime, R:=ResetInput, Q=>Output,
    TIW=>InternalTime, TSW=>TimerSetpointValue) ;
Parameter description
Description of input parameters:
Parameter
Data type
Description
IN
Start delay
ZB
Time basis of delay time
SW
Delay time factor
R
BOOL
Reset input
Description of output parameters:
Parameter
Data type
Description
Q
BOOL
Output
TIW
INT
internal time (actual timer value)
TSW
INT
Timer setpoint at time of 0 -> 1 edge at IN
Timing diagram
Timing diagram for activation delay TE:
(1) 
If IN becomes "1", the internal timer (TIW) is started.
(2) 
If the internal timer (TIW) reaches the value of TSW, Q becomes "1".
(3) 
If IN becomes "0", Q becomes "0" and the internal timer is stopped/reset.
(4) 
If IN becomes "0" before the internal timer (TIW) has reached the value of TSW, the internal timer is stopped/reset without Q becoming "1".
(5) 
If R becomes "1", the internal timer is stopped/reset.
(6) 
If R becomes "1", Q becomes "0" and the internal timer is stopped/reset.
(7) 
If IN becomes "1" and R is "1", the internal timer is not started.
Runtime error
For a list of all block error codes and values, see Extension/Compatibility.