OpcDaCom

From AdvancedHMI
Jump to: navigation, search

OpcDaCom

This driver is a wrapper to interface OPC-DA drivers with AdvancedHMI.

Properties
OpcServer The specific name of the OPC server to connect to. This is very specific and can sometimes be difficult to find. For example, "RSLinx OPC Server" for RSLinx, "OPC.IwSCP" for Bosch
OpcServerPath Default value of opcda://localhost is used when OPC Server is on same machine. Otherwise this is used to indicate the remote location of the server.
OpcTopic Used by some OPC Servers such as RSLinx. This name will be defined within the OPC Server
OpcGroup This is typically not used and automatically generated by the driver.
DisableSubscriptions uses updating of subscriptions. This is useful in cases such as when hiding a form and there is no longer a need to refresh the values. Or when used with a Trend Chart, it can pause the charting.
PollRateOverride This set the target rate for refreshing all of the subscriptions. When there are a large number of subscriptions that have to be split amongst sever requests, this value is divided by the number of requests required to determine the delay between each packet. A value of 0 will make the driver update as fast as the PLC will respond, but be cautious because it can reach rates less than 5ms and start to use a lot of resources.


Methods

For the methods common to all drivers see the section on the IComComponent

Addressing

Addressing is highly dependent on the server being used.

Code Samples