Parameter Declaration Type Memory block Description
IN INPUT BOOL I, Q, M, D, L,
constant
Start input
PT INPUT TIME I, Q, M, D, L,
constant
Time delay
Q OUTPUT BOOL I, Q, M, D, L Status of time
ET OUTPUT TIME I, Q, M, D, L Expired time
Start input:
The time delay is started by a rising edge at input IN. Output Q also produces a rising
edge when time delay PT has expired.
Time delay:
Time delay applied to the rising edge at input IN to PT must be. The range of values is
defined by the data type TIME.
Output Q:
The time delay is started by a rising edge at input IN. Output Q also produces a rising
edge when time delay PT has expired and it remains set until the level applied to input IN
changes back to 0. If input IN changes to 0 before time delay PT has expired then output
Q remains at "0".
Expired time:
Output ET is set to the time duration that has expired since the most recent rising edge
has been applied to input IN. The highest value that output ET can contain is the value of
input PT. Output ET is reset when input IN changes to "0".
14.2.6 SFB 5 - TOF - Create turn-off delay
SFB 5 can be used to delay a falling edge by period PT. Here you have the following
characteristics:
n The timer runs only in the STARTUP and RUN modes.
n A rising edge at the IN input causes a rising edge at output Q. A falling edge at the IN
input causes a falling edge at output Q delayed by the time PT. If the IN input
changes back to "1" before the time PT has expired, output Q remains set to "1".
n The ET output provides the time that has elapsed since the last falling edge at the IN
input. Its maximum value is, however the value of the PT input. ET is reset when the
IN input changes to "1".
n When it is necessary that the instances of this SFB are initialized after a restart, then
the respective instances must be initialized in OB 100 with PT = 0 ms.
Parameters
IN
PT
Q
ET
Description
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 5 - TOF - Create turn-off delay
HB00 | OPL_SP7 | Operation list | en | 18-30 735