Display ASCII characters on dashboard - Printable Version +- Virtuino Forum (https://virtuino.com/forum) +-- Forum: Virtuino (https://virtuino.com/forum/forumdisplay.php?fid=1) +--- Forum: Virtuino IoT (https://virtuino.com/forum/forumdisplay.php?fid=2) +--- Thread: Display ASCII characters on dashboard (/showthread.php?tid=1518) |
Display ASCII characters on dashboard - slabit - 12-01-2023 I use IoT version to read information from an industrial HMI using Modbus. I have a name of current recipe that I need to display on the dashboard. I can read the 20 input registers and see the ACSII numbers in the variables of my Modbus connection but for the life of me I cannot figure a way to display the text on the dashboard. Was thinking of using the recipe index numbers and maintain the name lists in both the HMI and again in the IoT dashboard and use visibility on text/label widget but updates would be problematic to keep these lists synced and displaying correctly. I will also have the same issue with operator name when I get to that point. Any suggestions? RE: Display ASCII characters on dashboard - iliaslamprou - 12-03-2023 Hi, you have to add a java script code. 1. Read all the variables from the script. 2. Convert the alues to characters 3. Create a text from the charactes. 4. Write the text to a new Variable Please check the attached image. I have created an example. In this example the variables V1-V5 contains the numbers 65,66,67,68,69 The result to V10 is the text: ABCDE Code: //--- Copy values from Virtuino Variables to JavaScript variables RE: Display ASCII characters on dashboard - slabit - 12-04-2023 (12-03-2023, 08:58 PM)iliaslamprou Wrote: Hi, |