Table 8- 90
Data types for the parameters
Parameter and type
OB_NR
IN
CYCLE
IN
PHASE
IN
RET_VAL
OUT
Time parameter examples:
● If the CYCLE time = 100 us, then the interrupt OB referenced by OB_NR interrupts the
● If the CYCLE time = 0, then the interrupt event is deactivated and the interrupt OB is not
● The PHASE (phase shift) time is a specified delay time that occurs before the CYCLE
If lower and higher priority OBs are called in the same time interval, the lower priority OB is
only called after the higher priority OB has finished processing. The execution start time for
the low priority OB can shift depending on the processing time of higher priority OBs.
If you want to start the execution of a lower priority OB on a fixed time cycle, then phase shift
time should be greater then the processing time of higher priority OBs.
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
Data type
OB_CYCLIC
UDInt
UDInt
Int
cyclic program scan every 100 us. The interrupt OB executes and then returns execution
control to the program scan, at the point of interruption.
executed.
time interval begins. You can use the phase shift to control the execution timing of lower
priority OBs.
101BExtended instructions
Description
OB number (accepts symbolic name)
Time interval, in microseconds
Phase shift, in microseconds
Execution condition code
8.4 Interrupts
277