发布于 2010-02-20 18:25:11
2楼
Local Data for OB1
The following table describes the temporary (TEMP) variables for OB1. The variable names are the default names of OB1.
Variable Type Des cription
OB1_EV_CLASS BYTE Event class and identifiers: B#16#11: OB1 active
OB1_SCAN_1 BYTE ?B#16#01: completion of a warm restart?B#16#02: completion of a hot restart?B#16#03: completion of the main cycle?B#16#04: completion of a cold restart?B#16#05: first OB1 cycle of the new master CPU after master-reserve switchover and STOP of the previous master
OB1_PRIORITY BYTE Priority class 1
OB1_OB_NUMBR BYTE OB number (01)
OB1_RESERVED_1 BYTE Reserved
OB1_RESERVED_2 BYTE Reserved
OB1_PREV_CYCLE INT Run time of previous scan (ms)
OB1_MIN_CYCLE INT Minimum cycle time (ms) since the last startup
OB1_MAX_CYCLE INT Maximum cycle time (ms) since the last startup
OB1_DATE_TIME DATE_AND_TIME DATE_AND_TIME of day when the OB was called