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.

Binary Alert Message
#4
(10.03.2017, 11:41)leondias Wrote: if value is boolean, try one of these:
if value then
if not value then
or use true or false instead of 1 and 0

thansks leondias, 

Make the change to true and work perfectly.

value = event.getvalue()
if value == true then
  Alarm_text = table.concat({'FALLA TERMICO BOMBA 1'})
  alert(Alarm_text)
end

regards

(10.03.2017, 06:53)admin Wrote: In second script you have two different variables: value and Value.

Change the "V" to "v" and change the "1" logic to true and work perfectly

thanks   Big Grin
Reply


Messages In This Thread
RE: Binary Alert Message - by admin - 10.03.2017, 06:53
RE: Binary Alert Message - by leondias - 10.03.2017, 11:41
RE: Binary Alert Message - by german.cespedes@ecoelec.cl - 10.03.2017, 13:46

Forum Jump: