EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Extended instructions
9.5 Interrupts
S7-1200 Programmable controller
424 System Manual, V4.2, 09/2016, A5E02486680-AK
9.5.2
Cyclic interrupts
9.5.2.1
SET_CINT (Set cyclic interrupt parameters)
Table 9- 100 SET_CINT (Set cyclic interrupt parameters)
LAD / FBD
SCL
Description
ret_val := SET_CINT(
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
Parameter and type
Data type
Description
OB_NR
IN
OB_CYCLIC
OB number (accepts symbolic name)
CYCLE
IN
UDInt
Time interval, in microseconds
PHASE
IN
UDInt
Phase shift, in microseconds
RET_VAL
OUT
Int
Execution condition code
Examples: time parameter
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.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals