完整程序代码
DATA_BLOCK "WRREC_DB_1"
{InstructionName := 'WRREC';
LibVersion := '1.1';
S7_Optimized_Access := 'FALSE' }
AUTHOR : SIMATIC
FAMILY : DP
NAME : WRREC
VERSION : 1.0
WRREC
BEGIN
END_DATA_BLOCK
DATA_BLOCK "Deactivate SNMP"
{ S7_Optimized_Access := 'FALSE' }
VERSION : 0.1
STRUCT
snmp_deactivate : Bool;
snmp_record : Struct
BlockID : Word;
BlockLenght : Word;
"Version" : Byte;
Subversion : Byte;
Reserved : Word;
SNMP_control : DWord;
END_STRUCT;
snmp_done : Bool;
snmp_error : Bool;
snmp_status : DWord;
END_STRUCT;
BEGIN
snmp_record.BlockID := 16#F003;
snmp_record.BlockLenght := 16#0008;
snmp_record."Version" := 16#0001;
END_DATA_BLOCK
ORGANIZATION_BLOCK "COMPLETE RESTART"
TITLE = "Complete Restart"
{ S7_Optimized_Access := 'FALSE' }
VERSION : 0.1
VAR_TEMP
OB100_EV_CLASS : Byte;
OB100_STRTUP : Byte;
OB100_PRIORITY : Byte;
OB100_OB_NUMBR : Byte;
OB100_RESERVED_1 : Byte;
OB100_RESERVED_2 : Byte;
OB100_STOP : Word;
OB100_STRT_INFO : DWord;
OB100_DATE_TIME : Date_And_Time;
END_VAR
禁用 SNMP 产品信息
A5E46739177-AA, 02/2019
//
16#13, Event class 1
//
16#81/82/83/84 Method of startup
//
Priority of OB Execution
//
100 (Organization block 100, OB100)
//
Reserved for system
//
Reserved for system
//
Event that caused CPU to stop (16#4xxx)
//
Information on how system started
//
Date and time OB100 started
29