This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

False alarm
#3
(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:
Code:
objs = grp.tag('Allarme') key = 'errors' errors = storage.get(key, {}) err = false for i, obj in ipairs(objs) do   iserr = obj.value == 768   if iserr and errors[i] then     err = true     log('Inverter in errore : ', obj) --who is   end   errors[i] = iserr end storage.set(key, errors) grp.checkwrite('Uscite Combinatore - Relay 1', err, 1, 'Uscite Combinatore - Relay status 1')
Thanks admin
 I will load as fast as possible.
Reply


Messages In This Thread
False alarm - by CristianAgata - 26.07.2025, 14:53
RE: False alarm - by admin - 28.07.2025, 07:40
RE: False alarm - by CristianAgata - 28.07.2025, 15:00

Forum Jump: