Technical data

Appendix
27.6 Sample Programs
Programming with STEP 7
666 Manual, 05/2010, A5E02789666-01
27.6.4.3 OB1
Declaration Section
In contrast to the default declaration section of OB1 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 OB1
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
CUR_CYC INT TEMP Current cycle time
MIN_CYC INT TEMP Minimum cycle time
MAX_CYC INT TEMP Maximum cycle time
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