Author Topic: Float Register with Modbus  (Read 1891 times)

Nikola Tesla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Float Register with Modbus
« on: March 20, 2024, 06:47:41 AM »
Good morning, I am doing some Float register readings in modbus TCP and I am using the AnalogoValueDisplay with PlcAddressValue F40001. It reads correctly the float register, taking register 40002 as the most significant register (where the sign and the exponent are), I wonder how I could do it the other way round, that is, with register 40001 as the most significant register.

Thank you very much

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Float Register with Modbus
« Reply #1 on: March 20, 2024, 08:31:20 AM »
In the Modbus driver, try to set SwapWords to True to see if that does what you want.

Nikola Tesla

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Float Register with Modbus
« Reply #2 on: March 20, 2024, 08:39:42 AM »
Yes! i just test It. As always thank you!!