Author Topic: Unsigned 16bit Integer  (Read 1965 times)

stuartscott171

  • Newbie
  • *
  • Posts: 5
    • View Profile
Unsigned 16bit Integer
« on: April 21, 2015, 04:02:38 AM »
I can read a Modbus register fine, but can not work out how to display as a unsigned number i.e 65535.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Unsigned 16bit Integer
« Reply #1 on: April 21, 2015, 09:34:21 AM »
The Modbus driver only supports signed integers. I will look into the possibility of adding unsigned support.

stuartscott171

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Unsigned 16bit Integer
« Reply #2 on: April 23, 2015, 01:52:57 AM »
Thanks Archie, Really enjoy this project.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Unsigned 16bit Integer
« Reply #3 on: April 29, 2015, 09:39:23 PM »
Version 3.98g now allows an address prefix such as U40001

stuartscott171

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Unsigned 16bit Integer
« Reply #4 on: May 04, 2015, 06:31:03 PM »
Thanks Archie, will give it a go.

Friedrich

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Unsigned 16bit Integer
« Reply #5 on: May 16, 2015, 05:54:59 PM »
Reading an unsigned works fine with the prefix, but writing anything above 32767 doesn't.
"Failed to write value. The aritmatic operation caused spill"

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Unsigned 16bit Integer
« Reply #6 on: May 16, 2015, 06:20:06 PM »
This should be fixed in the next version that will be posted tomorrow.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Unsigned 16bit Integer
« Reply #7 on: May 17, 2015, 08:18:12 PM »
Version 3.98j is now available. Try that version to see if it fixes the problem.

Friedrich

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Unsigned 16bit Integer
« Reply #8 on: May 18, 2015, 11:24:19 AM »
Works like a charm! Great work once again Archie.