Hide thumbs Also See for S7-1200:
Table of Contents
Adding time delay interrupt OB subprograms to your project
Only time delay interrupt OBs can be assigned to the SRT_DINT and CAN_DINT
instructions. No time delay interrupt OB exists in a new project. You must add time delay
interrupt OBs to your project. To create a time-delay interrupt OB, follow these steps:
1. Double-click the "Add new block" item in the "Program blocks" branch of the project tree,
2. You have the option to rename the OB, select the programming language, or select the
3. Edit the time delay interrupt OB subprogram and create programmed reaction that you
4. The newly assigned time delay interrupt OB names will be available when you edit the
QRY_DINT parameter STATUS
Table 8- 110 If there is an error (REL_VAL <> 0), then STATUS = 0.
Bit
0
1
2
4
Other bits
Condition codes
Table 8- 111 Condition codes for SRT_DINT, CAN_DINT, and QRY_DINT
RET_VAL 
 ( W#16#...)
0000
8090
8091
80A0
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
select "Organization block (OB)", and choose "Time delay interrupt".
block number. Switch to manual numbering if you want to assign a different block number
than the number that was assigned automatically.
want to execute when the time delay timeout event occurs. You can call other FC and FB
code blocks from the time delay interrupt OB, with a maximum nesting depth of six.
OB_NR parameter of the SRT_DINT and CAN_DINT instructions.
Value
Description
0
In RUN
1
In startup
0
The interrupt is enabled.
1
The interrupt is disabled.
0
The interrupt is not active or has elapsed.
1
The interrupt is active.
0
An OB with an OB number given in OB_NR does not exist.
1
An OB with an OB number given in OB_NR exists.
Always 0
Description
No error occurred
Incorrect parameter OB_NR
Incorrect parameter DTIME
Time delay interrupt has not started.
Extended instructions
8.4 Interrupts
343
Table of Contents
loading

Table of Contents