PLC concepts
5.1 Execution of the user program
S7-1200 Programmable controller
100 System Manual, V4.2, 09/2016, A5E02486680-AK
Pull or plug of modules OB
The "Pull or plug of modules" OB executes when a configured and non-disabled distributed
I/O module or submodule (PROFIBUS, PROFINET, AS-i) generates an event related to
inserting or removing a module.
Pull or plug of modules event
The following conditions generate a pull of plug of modules event:
● Someone removes or inserts a configured module
● A configured module is not physically present in an expansion rack
● An incompatible module is in an expansion rack that does not correspond to the
configured module
● A compatible module for a configured module is in an expansion rack, but the
configuration does not allow substitutes
● A module or submodule has parameterization errors
If you have not programmed this OB, the CPU remains in RUN mode when any of these
conditions occur with a configured and non-disabled distributed I/O module.
Regardless of whether you have programmed this OB, the CPU changes to STOP mode
when any of these conditions occur with a module in the central rack.
Table 5- 8 Start information for pull or plug of modules OB
Event_Class Byte 16#38: module inserted
16#29: module removed