Using DGLux dashboard to actuate a process
-
I'm using DGLux to build a dashboard for displaying certain parameters from mango, measured at some locations, as well as controlling processes at those locations, such as opening valves etc. Since mango uses Holding Registers to actuate processes at those locations, how can I pass commands from DGLux to mango's Holding Registers?
Thanks
Stefan
-
Hi stefan,
You're looking for DGLux behaviors. A DGLux component like an input has a trigger called 'enter'. Triggers invoke behaviors on the 'Behaviors' tab of the component. All behaviors take 'actions' and one possible action is a 'Data Action,' which can set a value to a point (change the Data Action's action from "All Actions" to 'set', then bind in the point you wish to set the value to via clicking and dragging it from the point hierarchy. When enter is hit, then, a value is set to a modbus point, and when a value is set to a modbus point in Mango the set action over the modbus protocol is performed for that point.
-
Thanks for the timely answer phil
I also have another question, off the topic though. Since I have some 60 locations, with 6 data points each, and I want to display 6 of those points on a graph, aka one location, and to change to another location with 6 points, on that same graph, with a click of a button, how should I manage that? I was unable to find a practical way for me to do that with such a large number of points. Haven't even found a way to display data on a graph that doesn't involve dragging points or tables to a graph, and that's not a recordable behavior.
-
I think this tutorial should help: http://infiniteautomation.com/forum/topic/1066/making-dashboards-relative-watch-this-before-you-set-up-mango-data-points
There are several ways to make dashboards dynamic. This is the main way but you can also dynamically construct a path which you can use to bind to a history table which you can bind to a chart.
-
Thanks joel, it did help. :)