Which Function code supports read float values?

N

Thread Starter

Nitesh

How to read The Float value, I mean, which Function code supports Read float values?

I am not able to read the float values from slave since I am using Function Code -04 to read. Is that ok, or some other Function code should be used to read the Float values?
 
F

Fred Loveless

You can use Function Code 4 to read Floats from input registers. You will need to read 4 bytes as the float is a 32 bit data type. The bytes are in IEEE format.

Kepware's Modbus Suite Supports all data types read for Internal and Holding registers. You can download a free demo from the web site and try it out.

http://www.kepware.com/Products/Modbus_Suite.html

Fred Loveless
Support Manager
Kepware Technologies
 
Top