Author Topic: Read N7:0 value  (Read 2650 times)

sony

  • Newbie
  • *
  • Posts: 13
    • View Profile
Read N7:0 value
« on: October 10, 2013, 11:51:24 PM »
Dear,
I will design AdvanvedHMI with 5,6" panel PC via DF1comm. I just make one screen only as viewer but have problem with size of advanvedHMI components. For exampe if I use DigitalPanelMeter to reduce the size will be can't seen clearly. Regarding this problem I try to get value of Integer in N7:0 for example to fill into a textbox but do not know.
How do can I do to read one elemet i.e N7:0 ?

Best regards

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
Re: Read N7:0 value
« Reply #1 on: October 11, 2013, 09:46:22 AM »
Try the component called "BasicLabel". 

sony

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Read N7:0 value
« Reply #2 on: October 15, 2013, 11:33:30 PM »
Dear,
What kind  property basic label that able to read the value of N7:0 ?
thank


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Read N7:0 value
« Reply #3 on: October 16, 2013, 04:18:58 AM »
Put N7:0 in PLCAddressValue property of the BasicLabel

sony

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Read N7:0 value
« Reply #4 on: October 16, 2013, 04:36:46 AM »
Dear all,
Finally I use the code bellow to put N7:0 value into the textbox:

TextBox1.Text = DF1Comm1.ReadAny("N7:0")

Thank and regards

Sony

sony

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Read N7:0 value
« Reply #5 on: December 03, 2013, 09:56:07 PM »
Dear,
I has been tested for N, O and B.
But now I have problem with the command bellow

TextBox1.Text = DF1Comm1.ReadAny("C5:0.ACC")

also for the timer   TextBox1.Text = DF1Comm1.ReadAny("T4:0.ACC")

If the command execute have error "ArgumentOutOfRangeException was unhandled"

Please show the correct one

regards

Sony
« Last Edit: December 04, 2013, 12:48:17 AM by sony »