Extended instructions
9.5 Interrupts
S7-1200 Programmable controller
424 System Manual, V4.2, 09/2016, A5E02486680-AK
Cyclic interrupts
9.5.2.1
SET_CINT (Set cyclic interrupt parameters)
Table 9- 100 SET_CINT (Set cyclic interrupt parameters)
ob_nr:=_int_in_,
cycle:=_udint_in_,
phase:=_udint_in_);
Set the specified interrupt OB to begin cyclic execution
that interrupts the program scan.
Table 9- 101 Data types for the parameters
OB number (accepts symbolic name)
Time interval, in microseconds
Phase shift, in microseconds
● If the CYCLE time = 100 us, then the interrupt OB referenced by OB_NR interrupts the
cyclic program scan every 100 us. The interrupt OB executes and then returns execution
control to the program scan, at the point of interruption.
● If the CYCLE time = 0, then the interrupt event is deactivated and the interrupt OB is not
executed.
● The PHASE (phase shift) time is a specified delay time that occurs before the CYCLE
time interval begins. You can use the phase shift to control the execution timing of lower
priority OBs.