From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,751 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
(2,741 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
(2,735 Views)