EasyManua.ls Logo

Siemens SIMATIC S7-1200 - 9.5.4 Time delay interrupts

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
432 System Manual, V4.2, 09/2016, A5E02486680-AK
9.5.4
Time delay interrupts
You can start and cancel time delay interrupt processing with the SRT_DINT and CAN_DINT
instructions, or query the interrupt status with the QRY_DINT instruction. Each time delay
interrupt is a one-time event that occurs after the specified delay time. If the time delay event
is cancelled before the time delay expires, the program interrupt does not occur.
Table 9- 120 SRT_DINT, CAN_DINT, and QRY_DINT instructions
LAD / FBD
SCL
Description
ret_val := SRT_DINT(
ob_nr:=_int_in_,
dtime:=_time_in_,
sign:=_word_in_);
SRT_DINT starts a time delay interrupt that exe-
cutes an OB when the delay time specified by
parameter DTIME has elapsed.
ret_val := CAN_DINT(
ob_nr:=_int_in_);
CAN_DINT cancels a time delay interrupt that has
already started. The time delay interrupt OB is not
executed in this case.
ret_val := QRY_DINT(
ob_nr:=_int_in_,
sta-
tus=>_word_out_);
QRY_DINT queries the status of the time delay
interrupt specified by the OB_NR parameter.
Table 9- 121 Data types for the parameters
Parameter and type
Data type
Description
OB_NR IN OB_DELAY Organization block (OB) to be started after a time-delay: Select from
the available time-delay interrupt OBs that were created using the "Add
new block" project tree feature. Double-click on the parameter field,
then click on the helper icon to see the available OBs.
DTIME
1
IN
Time
Time delay value (1 to 60000 ms)
SIGN
1
IN Word Not used by the S7-1200: Any value is accepted. A value must be as-
signed to prevent errors.
RET_VAL
OUT
Int
Execution condition code
STATUS OUT Word QRY_DINT instruction: Status of the specified time-delay interrupt OB,
see the table below
1
Only for SRT_DINT

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals