Author Topic: TwinCat OPC Setup  (Read 1991 times)

dfisk

  • Newbie
  • *
  • Posts: 3
    • View Profile
TwinCat OPC Setup
« on: January 29, 2015, 12:22:31 PM »
Hopefully this is a basic questions and I am missing something. I am trying to create a OPC connection to a BeckHoff OPC server. I have tried various combinations of the
OPCServer, OPCGroup, and OPCTopic but I am getting the following error.

Failed OPC Subscription Start [OpcDaCom]

For now I am just trying to get a button to toggle a value. I can toggle the value in the Beckhoff OPC client but cannot get the OPC setup with the AdvancedHMIDrivers.OpcDaCom.

I attached what the tree for the adding items into the BeckHoff OPC client if it helps to see that.

Thank You

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5365
    • View Profile
    • AdvancedHMI
Re: TwinCat OPC Setup
« Reply #1 on: January 29, 2015, 01:20:00 PM »
I have never used the Beckhoff OPC server so I'm not sure if I can be of a lot of help. Every application I have done, I have only used the TwinCATCom driver.

With OPC the first hard part is finding the correct OPCServerName, then it's figuring out the addressing. Is there some kind of OPC browser that was part of the Beckhof OPC server that may give some clue to the naming of the variables?