EGX300 - How to display Float32 measurements in a Custom Page
Gateways and Energy Servers
Schneider Electric support forum to share knowledge about product selection, installation and troubleshooting for EcoStruxure Panel Server, PowerTag, Com'X, Link150…
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
2015-11-0607:55 AM
EGX300 - How to display Float32 measurements in a Custom Page
There are several resources describing how to create custom pages to display multiple devices in a same page, how to troubleshoot, how to dynamically display device registers without reloading the whole html page:
What I'm going to show here is not described in any documents up to now.
All the examples are referring to simple measurements of 1 register. This register is converted to a float value using another single register containing the scaling factor.
There are devices which use Float32 measurements, so that takes 2 registers. (1 register means 1 Modbus Register = 1 Holding Register = 16 bits).
So, the JavaScript code has to read 2 consecutive registers for each Float32 value, then it has to use EGX300's embedded JavaScript code to convert each group of 2 Registers into Float32 Data Values.
Here is an example of a static shtml page (refreshed by the meta tag every 2 seconds) that reads 3 values from a PM3255 meter which has Slave Address 14.