Error code Variable Description
35h FB number error in FB call
3Ah Access to a DB that has not been loaded; the DB number is in the
permitted range
3Ch Access to an FC that has not been loaded; the FC number is in
the permitted range
3Dh Access to an SFC that has not been loaded; the SFC number is in
the permitted range
3Eh Access to an FB that has not been loaded; the FB number is in
the permitted range
3Fh Access to an SFB that has not been loaded; the SFB number is in
the permitted range
Illegal DB number
6.10.2 OB 122 - MOD_ERR - Periphery access Error
The operating system of the CPU calls OB 122 whenever an error occurs while accessing
data on a module. For example, if the CPU detects a read error when accessing data on
an I/O module, the operating system calls OB 122. If OB 122 is not programmed, the
CPU changes from the RUN mode to the STOP mode.
OB 122 is executed in the same priority class as the interrupted block. So you have read/
write access to the registers of the interrupted block.
The CPU provides the following SFCs for masking and unmasking start events for OB
122:
n SFC 36 MASK_FLT masks specific error codes
n SFC 37 DMASK_FLT unmasks the error codes that were masked by SFC 36
n SFC 38 READ_ERR reads the error register
The following table describes the start information of the OB 122 with default names of
the variables and its data types:
Variable Type Description
OB122_EV_CLASS BYTE Event class and identifiers: 29h
OB122_SW_FLT BYTE Error code:
42h: I/O access error - reading
43h: I/O access error - writing
OB122_PRIORITY BYTE Priority class:
Priority class of the OB where the error occurred
OB122_OB_NUMBR BYTE OB number (122)
OB122_BLK_TYPE BYTE No valid number is entered here
Description
Masking of start events
Local data
VIPA SPEED7
Organization Blocks
Synchronous Interrupts > OB 122 - MOD_ERR - Periphery access Error
HB00 | OPL_SP7 | Operation list | en | 18-30 100