Support Forums
Modbus union to generate Float

Hello,

I recently downloaded VTScadaLIGHT in order to test a prototype device. I am writing to Modbus registers 40001 - 40010, and splitting my floating point values into 16 bit unsigned integers. How would I union them back together in VTScadaLIGHT as a floating point value?

ex)
40001 = 16 bit unsigned int
40002 = 16 bit unsigned int

union of 4001 and 40002 = Floating point

Hello, I recently downloaded VTScadaLIGHT in order to test a prototype device. I am writing to Modbus registers 40001 - 40010, and splitting my floating point values into 16 bit unsigned integers. How would I union them back together in VTScadaLIGHT as a floating point value? ex) 40001 = 16 bit unsigned int 40002 = 16 bit unsigned int union of 4001 and 40002 = Floating point

So by setting the tag to 40001/float, the modbus driver knows to use 40001 and 40002? for the float?

So by setting the tag to 40001/float, the modbus driver knows to use 40001 and 40002? for the float?

So by setting the tag to 40001/float, the modbus driver knows to use 40001 and 40002? for the float?

That's correct, adding /FLOAT at the end will allow the tag to read 4bytes = 32bits = 2 registers

see https://www.vtscada.com/help/Content/D_Tags/Dev_DataSuffixesForTagIO.htm

> So by setting the tag to 40001/float, the modbus driver knows to use 40001 and 40002? for the float? That's correct, adding **/FLOAT** at the end will allow the tag to read 4bytes = 32bits = 2 registers see https://www.vtscada.com/help/Content/D_Tags/Dev_DataSuffixesForTagIO.htm
29
3
3
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft