AdvancedHMI Software

General Category => Open Discussion => Topic started by: lgrimm on March 15, 2017, 08:43:12 AM

Title: BasicLabel
Post by: lgrimm on March 15, 2017, 08:43:12 AM
I am using Basiclabel to display and write to a Floating 32 bit using F47797 which works perfect on reading the Address/Register. The register is a R/W but when I write to it using BasicLabel the following happens:
 The initial value display and recorded is 1.0

 When I enter 1 in BasicLabel and record the value goes to 2.277971E-41

Also, I have a boolean register R/W that displays False in BasicLabel. The register is read as 11704

I need to record a 1 or true.

When I enter 1 The result is Failed to write value-Invalid address to write to.


Thanks
Lee
Title: Re: BasicLabel
Post by: Archie on March 15, 2017, 08:48:14 AM
What version are you using? Version 3.99v has a bug with SwapBytes and writing.
Title: Re: BasicLabel
Post by: lgrimm on March 15, 2017, 09:01:56 AM
I am using 3.99t
Title: Re: BasicLabel
Post by: Archie on March 15, 2017, 09:12:34 AM
Try version 3.99w because there were some changes with the SwapBytes in both 3.99t and 3.99v
Title: Re: BasicLabel
Post by: Archie on March 15, 2017, 09:15:52 AM
As for address 11704, that is using function code 2 (inputs memory) which is a read only memory space.
Title: Re: BasicLabel
Post by: lgrimm on March 16, 2017, 07:52:52 AM
The update to 3.99w took care of the R/W to the floating point register. However i am still having a problem writing to a boolean R/W using BasicLabel or modbusTcpcom1.write("11704","1").

I am using an OMNI Flow computer. The function code to write to a single boolean is 05.

I get an invalid address when trying to write, but can read.

Any ideas ?

Thanks
Title: Re: BasicLabel
Post by: Archie on March 16, 2017, 08:49:01 AM
You need to precede the address with a 0 to indicate the coil memory region:

011704