Author Topic: polling modbus registers as signed or unsigned doubles or reals  (Read 1221 times)

xrayguts

  • Newbie
  • *
  • Posts: 2
    • View Profile
polling modbus registers as signed or unsigned doubles or reals
« on: January 01, 2015, 04:03:12 PM »
Hey quick question. I am currently polling data from a ScadaPack 100 plc. I am using the Modbus serial driver. I am polling unsigned values and it works great. Boolean and unsigned no problem.. my question is how can I poll a real number. ive looked through the threads it may be something im over looking. I apologize if this has already bean covered

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: polling modbus registers as signed or unsigned doubles or reals
« Reply #1 on: January 01, 2015, 04:17:53 PM »
A floating point number can be read by preceding the address with an F, for example F40001 will read 4 bytes and return it as a floating point value.

xrayguts

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: polling modbus registers as signed or unsigned doubles or reals
« Reply #2 on: January 01, 2015, 05:15:12 PM »
ahh had to be simple haha