Technical data
Appendix
27.6 Sample Programs
Programming with STEP 7
664 Manual, 05/2010, A5E02789666-01
27.6.4.2 OB20
Declaration Section
In contrast to the default declaration section of OB20 the following temporary local variables are
declared:
• Structure for the entire start event information (STARTINFO)
• Within the STARTINFO structure a structure for the time (T_STMP)
Variable Name Data Type Declaration Comment
STARTINFO STRUCT TEMP Start information for OB20
E_ID WORD TEMP Event ID:
PC_NO BYTE TEMP Priority class
OB_NO BYTE TEMP OB number
D_ID 1 BYTE TEMP Data ID 1
D_ID 2 BYTE TEMP Data ID 2
SIGN WORD TEMP User-specific ID
DTIME TIME TEMP Time with which the time-delay interrupt is started
T_STMP STRUCT TEMP
Structure for time-of-day details (time stamp)
YEAR BYTE TEMP
MONTH BYTE TEMP
DAY BYTE TEMP
HOUR BYTE TEMP
MINUTES BYTE TEMP
SECONDS BYTE TEMP
MSEC_WDAY WORD TEMP
END_STRUCT TEMP
END_STRUCT TEMP