Author Topic: TwincatCom Read  (Read 1163 times)

camiloo77

  • Newbie
  • *
  • Posts: 5
    • View Profile
TwincatCom Read
« on: March 06, 2019, 01:49:12 PM »
I'm trying to read some variables from Beckhoff CX90200 TwinCat 3 but is not possible yet.

TextBox1.Read=TwincatCom1.Read("MAIN.bVble[1]")
...
TextBox9.Read=TwincatCom1.Read("MAIN.bVble[9]")

An exception appear: 'No Response from PLC. Ensure driver settings are correct'

 Driver settings are working with all Advanced HMI controls.

Any idea to resolve this?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: TwincatCom Read
« Reply #1 on: March 06, 2019, 01:53:19 PM »

camiloo77

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: TwincatCom Read
« Reply #2 on: March 07, 2019, 09:16:41 AM »
Thanks Archie for your answer, I'm using port 851 and the rest of  the project is working correctly.

Any suggest  to read addresses with TwincatCom1.Read ??

Thanks again 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: TwincatCom Read
« Reply #3 on: March 07, 2019, 09:26:11 AM »
When you say the rest of the project, do you have controls such as a BasicLabel showing values from TwinCAT? If so, the read should work because behind the scenes they use the same me BeginRead to retrieve values.

Do you have TwinCAT installed on the PC you are running the AdvancedHMI application? If so, that could be causing some issues. It does with TwinCAT 2, but I never tested it with TwinCAT 3 to see if it has the same bug in the AMS Router,

camiloo77

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: TwincatCom Read
« Reply #4 on: March 08, 2019, 12:18:32 PM »
Hi Archie,
I have working controls like BasicLabel, AnalogValueDisplay and they're working correctly but reading with code doesn't.
Twincat is not installed on AdvancedHMI PC. Is there other way to read Addresses with AH?? 

When I try read a address, AdvancedHMI stop and focus in code: "MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException:'No Response from PLC. Ensure driver settings are correct."

I'm sure about driver settings because AH components are working.

Thanks for help. :)
« Last Edit: April 09, 2019, 11:37:04 AM by camiloo77 »