The following table describes the start information of the OB 57 with default names of the
variables and its data types:
Variable Data type Description
OB57_EV_CLASS BYTE Event class and identifiers:
11h: incoming event
OB57_STRT_INF BYTE 57h: Start request for OB 57
OB57_PRIORITY BYTE Configured priority class:
Default value: 2
OB57_OB_NUMBR BYTE OB number (57)
OB57_RESERVED_1 BYTE reserved
OB57_IO_FLAG BYTE Input module: 54h
Output module: 55h
OB57_MDL_ADDR WORD Logical base address of the module that triggers the inter-
rupt
OB57_LEN BYTE reserved
OB57_TYPE BYTE reserved
OB57_SLOT BYTE reserved
OB57_SPEC BYTE reserved
OB57_DATE_TIME DATE_AND_TIME Date and time of day when the OB was called
You can obtain the full additional information on the interrupt from the
frame by calling SFB 54 "RALRM" in OB 57.
6.5 Time delay Interrupts
6.5.1 OB 20, OB 21 - DEL_INTx - Time-delay Interrupt
A time-delay interrupt allows you to implement a delay timer independently of the
standard timers. The time-delay interrupts can be configured within the hardware configu-
ration respectively controlled by means of system functions in your main program at run
time.
For the activation no hardware configuration is necessary. The time-delay interrupt is
started by calling SFC 32 SRT_DINT and by transferring the corresponding OB to the
CPU. Here the function needs OB number, delay time and a sign. When the delay interval
has expired, the respective OB is called by the operating system. The time-delay interrupt
that is just not activated can be cancelled with SFC 33 CAN_DINT respectively by means
of the SFC 34 QRY_DINT the status can be queried. It can be blocked with SFC 39
DIS_IRT and released with SFC 40 EN_IRT. The priority of the corresponding OBs are
changed via the hardware configuration. For this open the selected CPU with Edit >
Object properties > Interrupts. Here the corresponding priority can be adjusted.
Local data
Description
Activation
VIPA SPEED7
Organization Blocks
Time delay Interrupts > OB 20, OB 21 - DEL_INTx - Time-delay Interrupt
HB00 | OPL_SP7 | Operation list | en | 18-30 77