RET_VAL (Return value)Value Description0000h No error occurred.8090h The input parameter OB_NR contains an illegal value.8091h The input parameter MODE contains an illegal value.8xyyh General error informationÄ Chap. 4.2 ‘General and Specific Error Information RET_VAL’ page 6614.1.30 SFC 40 - EN_IRT - Enabling interruptsWith the SFC 40 EN_IRT (enable interrupt) you enable the processing of new interruptsand asynchronous errors that you previously disabled with the SFC 39. This means that ifan interrupt event occurs, the operating system of the CPU reacts in one of the followsways:n it calls an interrupt OB or asynchronous error OB,orn it triggers the standard reaction if an interrupt OB or asynchronous error OB is notprogrammed.ParametersParameter Declaration Data type Memory block DescriptionMODE INPUT BYTE I, Q, M, D, L,constantSpecifies which interrupts and asynchronouserrors will be enabled.OB_NR INPUT INT I, Q, M, D, L,constantOB numberRET_VAL OUTPUT INT I, Q, M, D, L If an error occurs while the function is active, thereturn value contains an error code.MODEMODE Description00 All newly occurring interrupts and asynchronous errors are enabled.01 All newly occurring events belonging to a specified interrupt class are enabled.Identify the interrupt class by specifying it as follows:n Time-of-day interrupts: 10n Time-delay interrupts: 20n Cyclic interrupts: 30n Hardware interrupts: 40n Interrupts for DP-V1: 50n Asynchronous error interrupts: 8002 All newly occurring events of a specified interrupt are enabled. You specify the interrupt using the OBnumber.DescriptionVIPA SPEED7Integrated StandardSystem Functions > SFC 40 - EN_IRT - Enabling interruptsHB00 | OPL_SP7 | Operation list | en | 18-30680