Extended instructions
8.4 Interrupts
S7-1200 Programmable controller
336 System Manual, 03/2014, A5E02486680-AG
QRY_CINT (Query cyclic interrupt parameters) instruction
Table 8- 91
QRY_CINT (Query cyclic interrupt)
ob_nr:=_int_in_,
cycle=>_udint_out_,
phase=>_udint_out__,
status=>_word_out_);
Get parameter and execution status from a cyclic
interrupt OB. The values that are returned existed
at the time QRY_CINT was executed.
Table 8- 92 Data types for the parameters
OB number (accepts symbolic name like OB_MyOBName)
Time interval, in microseconds
Phase shift, in microseconds
STATUS OUT Word Cyclic interrupt status code:
• Bits 0 to 4, see the STATUS table below
• Other bits, always 0
Table 8- 93 STATUS parameter
0
1
The interrupt is enabled.
Interrupt is disabled via the DIS_IRT instruction.
2
The interrupt is not active or has elapsed.
1 The interrupt is active.
4
The OB identified by OB_NR does not exist.
1 The OB identified by OB_NR exists.
If an error occurs, RET_VAL displays the appropriate error code and the parameter STATUS
= 0.