-- define alarms
alarm1 = (program.log event_ID = 7, Area = 1) -- Read from monitor value Alarm area 1
alarm2 = (program.log evens_ID = 7, Area = 2) -- Read from monitor value Alarm area 2
if alarm1 == true then grp.write('31/3/1',1) -- set alarm area 1 ON
end
if alarm2 == true then grp.write('31/3/2',1) -- set alarm area 2 ON
end
因此,当program.log在event_ID和Area上的状态更改并且两个值都匹配时,我需要解析一个警报。