Technical data
Appendix
27.6 Sample Programs
Programming with STEP 7
658 Manual, 05/2010, A5E02789666-01
27.6.3.3 OB10
Declaration Section
In contrast to the default declaration section of OB10 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)
• Other temporary local variables WDAY, IN_DATE, IN_TIME, and OUT_TIME_DATE
Variable Name Data Type Declaration Comment
STARTINFO STRUCT TEMP Entire start event information of OB10
declared as structure
E_ID WORD TEMP Event ID:
PR_CLASS BYTE TEMP Priority class
OB_NO BYTE TEMP OB number
RESERVED_1 BYTE TEMP Reserved
RESERVED_2 BYTE TEMP Reserved
PERIOD WORD TEMP Periodicity of time-of-day interrupt
RESERVED_3 DWORD TEMP Reserved
T_STMP STRUCT TEMP Structure for time-of-day details
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
WDAY INT TEMP Day of the week
IN_DATE DATE TEMP Input variable for FC3
(conversion of time format)
IN_TIME TIME_OF_DAY TEMP Input variable for FC3
(conversion of time format)
OUT_TIME_DATE DATE_AND_TIME TEMP Output variable for FC3 and input
variable for SFC28