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.

Number codes json modbus
#2
You can map numbers to text value via Custom values for display but you cannot split such value into 4 bit objects without a script.
The event script is very simple though:
Code:
value = event.getvalue()
grp.checkwrite('1/1/1', value == 303) -- OFF
grp.checkwrite('1/1/2', value == 307) -- OK
grp.checkwrite('1/1/3', value == 455) -- Warning
grp.checkwrite('1/1/4', value == 35) -- Fault
Reply


Messages In This Thread
Number codes json modbus - by Peter S - 02.11.2021, 17:59
RE: Number codes json modbus - by admin - 03.11.2021, 07:06

Forum Jump: