Qry_Cint (Query Cyclic Interrupt) - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

101BExtended instructions
8.4 Interrupts
Table 8- 91
RET_VAL (W#16#....)
0000
8090
8091
8092
80B2
8.4.2.2

QRY_CINT (Query cyclic interrupt)

Table 8- 92
QRY_CINT (Query cyclic interrupt)
LAD / FBD
Table 8- 93
Data types for the parameters
Parameter and type
OB_NR
IN
RET_VAL
OUT
CYCLE
OUT
PHASE
OUT
STATUS
OUT
Table 8- 94
Bit
0
1
2
4
278
Condition codes
SCL
ret_val := QRY_CINT(
ob_nr:=_int_in_,
cycle=>_udint_out_,
phase=>_udint_out__,
status=>_word_out_);
Data type
Description
OB_CYCLIC
OB number (accepts symbolic name like OB_MyOBName)
Int
Execution condition code
UDInt
Time interval, in microseconds
UDInt
Phase shift, in microseconds
Word
Cyclic interrupt status code:
Bits 0 to 4, see the STATUS table below
Other bits, always 0
STATUS parameter
Value
Description
0
During CPU RUN
1
During startup
0
The interrupt is enabled.
1
Interrupt is disabled via the DIS_IRT instruction.
0
The interrupt is not active or has elapsed.
1
The interrupt is active.
0
The OB identified by OB_NR does not exist.
1
The OB identified by OB_NR exists.
Description
No error
OB does not exist or is of wrong type
Invalid cycle time
Invalid phase shift time
OB has no attached event
Description
Get parameter and execution status from a cyclic
interrupt OB. The values that are returned existed
at the time QRY_CINT was executed.
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMATIC S7 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF