Technical data
Appendix
27.6 Sample Programs
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 655
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 "set time-of-day interrupt" and "activate time-of-day interrupt"
I0.1 Input to cancel a time-of-day interrupt
Q4.0 Output set/reset by the time-of-day interrupt OB (OB10)
Q4.1 Output set by a time error (OB80)
MW16 STATUS of the time-of-day interrupt (SFC31 "QRY_TINT")
MB100 to MB107 Memory for start event information of OB10 (time-of-day only)
MB110 to MB129 Memory for start event information of OB80 (time error)
MW200 RET_VAL of SFC28 "SET_TINT"
MB202 Binary result (status bit BR) buffer for SFCs
MW204 RET_VAL of SFC30 "ACT_TINT"
MW208 RET_VAL of SFC31 "QRY_TINT"
System Functions and Functions Used
The following system functions are used in the programming example:
• SFC28 "SET_TINT" : Set Time-of-Day Interrupt
• SFC29 "CAN_TINT" : Cancel Time-of-Day Interrupt
• SFC30 "ACT_TINT" : Activate Time-of-Day Interrupt
• SFC31 "QRY_TINT" : Query Time-of-Day Interrupt
• FC3 "D_TOD_DT" : Combine DATE and TIME_OF_DAY to DT