Author Topic: Modbus TCP Reading Float Values  (Read 853 times)

brandon21

  • Newbie
  • *
  • Posts: 1
    • View Profile
Modbus TCP Reading Float Values
« 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.

Godra

  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: Modbus TCP Reading Float Values
« Reply #1 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
« Last Edit: December 17, 2019, 03:57:35 PM by Godra »