![]() |
False alarm - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: False alarm (/showthread.php?tid=6060) |
False alarm - CristianAgata - 26.07.2025 Good day, I have a problem with false data, some time the inverter answer 768 in a modbus TCP register (inverter in foult) although it is not in this condiction then in the next reading after about one minute it answer again 20 (system ok). This register generates an event script to test the value and as you can see in the script it generates an alarm. My question: is it possible wait for example wait 2 minutes and check it again before generate the alarm? Code: evento = event.getvalue() Thanks for any other suggest. BR Cristian RE: False alarm - admin - 28.07.2025 Use a scheduled script instead of event. Set it to run every one or two minutes. Error state will be set only if object has a fault value two times in a row: Code: objs = grp.tag('Allarme') RE: False alarm - CristianAgata - 28.07.2025 (28.07.2025, 07:40)admin Wrote: Use a scheduled script instead of event. Set it to run every one or two minutes. Error state will be set only if object has a fault value two times in a row:Thanks admin I will load as fast as possible. |