AdvancedHMI Software

General Category => Support Questions => Topic started by: dfisk on January 29, 2015, 12:22:31 PM

Title: TwinCat OPC Setup
Post by: dfisk 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
Title: Re: TwinCat OPC Setup
Post by: Archie 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?