LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert the modbus protocol from16-bit register to 32- bit

how to read and write a 32-bit by using Modbus RTU

 

Regards

Ahmed Tafesh

0 Kudos
Message 1 of 3
(3,375 Views)

See Example - Use Type Cast and array subset. NOTE-Some modbus documentaion use 1 as the first register. Labview uses 0 as the first register. So you may have to shift your index by -1 to get the correct starting register.2-U16toSGL.JPG

0 Kudos
Message 2 of 3
(3,365 Views)

Unless the 32 bit number they are looking for is an integer rather than a single precision floating point.  Then they may need to use a U32 or I32 as the dataype for the type cast.

0 Kudos
Message 3 of 3
(3,359 Views)