Author Topic: BasicLabel  (Read 1091 times)

lgrimm

  • Newbie
  • *
  • Posts: 22
    • View Profile
BasicLabel
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: BasicLabel
« Reply #1 on: March 15, 2017, 08:48:14 AM »
What version are you using? Version 3.99v has a bug with SwapBytes and writing.

lgrimm

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: BasicLabel
« Reply #2 on: March 15, 2017, 09:01:56 AM »
I am using 3.99t

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: BasicLabel
« Reply #3 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: BasicLabel
« Reply #4 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.

lgrimm

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: BasicLabel
« Reply #5 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: BasicLabel
« Reply #6 on: March 16, 2017, 08:49:01 AM »
You need to precede the address with a 0 to indicate the coil memory region:

011704