AKF_TA: Switch off delay
Original instructions
Function description
The derived function block is used as switch off 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 and the Q output is set to "1".
With a 1 -> 0 at the IN input, 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 "0".
With a 0 -> 1 edge at the R 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_TA_Instance (IN:=StartingDelay, ZB:=TimeBase,
    SW:=FactorDelayTime, R:=ResetInput, Q=>Output,
    TIW=>InternalTime, TSW=>TimerSetpointValue)
Representation in ST
Representation:
AKF_TA_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 of the TA disconnection delay:
(1) 
If IN becomes "1", Q becomes "1".
(2) 
If IN becomes "0", the internal timer (TIW) is started.
(3) 
If the internal timer TIW reaches the value of TSW, Q becomes "0".
(4) 
If IN becomes "1", Q becomes "1" and the internal timer is stopped/reset.
(5) 
If IN becomes "1" before the internal Timer TIW has reached the value of TSW, the internal time is stopped/reset, without Q becoming "0".
(6) 
If R becomes "1" and IN is "0", Q becomes "0" and the internal timer is stopped/reset.
(7) 
If R becomes "1" and IN is "1", Q becomes "0".
(8) 
If R becomes "0" and IN is "1", Q becomes "1".
(9) 
If R becomes "1", the internal timer is stopped/reset.
(10) 
If IN becomes "1" and R is "1", Q remains at "0".
Runtime error
For a list of all block error codes and values, see Extension/Compatibility.