Technical data
Appendix
27.6 Sample Programs
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 663
Addresses Used
The following table shows the shared addresses used. The temporary local variables are declared
in the declaration section of the respective block.
Address Meaning
I0.0 Input to enable "start time-delay interrupt"
I0.1 Input to cancel a time-delay interrupt
I0.2 Input to reset output Q 4.0
Q4.0 Output set by the time-delay interrupt OB (OB20)
MB1 Used for edge flag and binary result (status bit BR) buffer for SFCs
MW4 STATUS of time-delay interrupt (SFC34 "QRY_TINT")
MD10 Seconds and milliseconds BCD-coded from the start event information of OB1
MW 100 RET_VAL of SFC32 "SRT_DINT"
MW102 RET_VAL of SFC34 "QRY_DINT"
MW104 RET_VAL of SFC33 "CAN_DINT"
MW106 RET_VAL of SFC20 "BLKMOV"
MB120 to MB139 Memory for start event information of OB20
MD140 Seconds and milliseconds BCD-coded from the start event information of OB20
MW144 Seconds and milliseconds BCD-coded from the start event information of OB1;
acquired from start event information of OB20 (user-specific ID SIGN)
System Functions Used
The following SFCs are used in the user program "time-delay interrupts:"
• SFC32 "SRT_DINT" : Start Time-Delay Interrupt
• SFC33 "CAN_DINT" : Cancel Time-Delay Interrupt
• SFC34 "QRY_DINT" : Query Status of a Time-Delay Interrupt