Modbus text renderer -> DGLux display issue
-
Hi
I have a modbus data point which polls a holding register for an integer value. Different integers are returned which correspond to various messages/conditions.
For example a returned value of '1773' means 'no request' and '1777' means 'manual start'.To display the messages in Mango, I use a text renderer on the data point like so:
I would now like to display these messages in DGLux, in a table, as a kind of log-book.
When I bind the data point to an Indicator in DGLux and select the 'formatted value' option then the message shows up correctly. However when I use the point in a table it always displays as the raw integer value (1777) rather than the text-rendered version ('manual start').
Is there any way to achieve what I want?
Thanks!
-
Unfortunately these don't come through in the history query as you found out. This is probably something we could change in the future but for right now you can add a formula column to the table. Your script would look like this:
if (value == 1773) { return "No Request"; } else if (value == 1774) { return "Load"; }
-
Hey Joel
Thanks for the reply.
Unfortunately I don't yet understand how to properly use tables in the way you describe.Is it possible for you to give me a pointer or link me to a video that explains how to build a table this way?
Thanks
Jeremy -
Here is a video that hopefully clarifies it. I also posted it in the wiki at: http://infiniteautomation.com/wiki/doku.php?id=graphics:dglux:tables