AdvancedHMI Software

General Category => Support Questions => Topic started by: stuartscott171 on April 21, 2015, 04:02:38 AM

Title: Unsigned 16bit Integer
Post by: stuartscott171 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.
Title: Re: Unsigned 16bit Integer
Post by: Archie 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.
Title: Re: Unsigned 16bit Integer
Post by: stuartscott171 on April 23, 2015, 01:52:57 AM
Thanks Archie, Really enjoy this project.
Title: Re: Unsigned 16bit Integer
Post by: Archie on April 29, 2015, 09:39:23 PM
Version 3.98g now allows an address prefix such as U40001
Title: Re: Unsigned 16bit Integer
Post by: stuartscott171 on May 04, 2015, 06:31:03 PM
Thanks Archie, will give it a go.
Title: Re: Unsigned 16bit Integer
Post by: Friedrich 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"
Title: Re: Unsigned 16bit Integer
Post by: Archie on May 16, 2015, 06:20:06 PM
This should be fixed in the next version that will be posted tomorrow.
Title: Re: Unsigned 16bit Integer
Post by: Archie on May 17, 2015, 08:18:12 PM
Version 3.98j is now available. Try that version to see if it fixes the problem.
Title: Re: Unsigned 16bit Integer
Post by: Friedrich on May 18, 2015, 11:24:19 AM
Works like a charm! Great work once again Archie.