AdvancedHMI Software

General Category => Support Questions => Topic started by: brandon21 on December 17, 2019, 08:52:35 AM

Title: Modbus TCP Reading Float Values
Post by: brandon21 on December 17, 2019, 08:52:35 AM
Hi, I'm new to the software and just getting used to working with modbus as well.  I'm trying to read multiple floats into my program on a Yaskawa Servo Drive.  When I use INT I have no problem but when I change to floats it acts up. Does it make sense that under the PLCAddress for the BasicLabel the order I'm going in is: F40001, F40002, F40003. If I enter a number in at the F40001 register it changes the F40002 register as well and then vice versa.  Wondering if this is something in this software I can fix or something in my programming software.  Thanks in advance.
Title: Re: Modbus TCP Reading Float Values
Post by: Godra on December 17, 2019, 03:51:39 PM
You should read the first post here:

https://www.advancedhmi.com/forum/index.php?topic=765.0

F values are 32-bit and stored in two 16-bit registers.

Also, try using these apps for the sake of practicing as well as confirming what values you should see in the registers:

https://www.advancedhmi.com/forum/index.php?topic=2567.0