Skip to main content

OPCDA Client

Driver that can be used to connect to OPC-DA (Classic) servers. The functionality is similar to the newer OPCDA, but will work just in Windows because it makes use of COM objects.

Parameters​

Aside from the common parameters described in the communication_driver docs, this driver includes:

ParameterDefault ValueDescription
serverMatrikon.OPC.Simulation.1Name of the OPC DA server to connect to.
async_connectionFalseThis variable can be set to true to use async reading (subscription).

Setup data​

The setup data will give values to the parameters required and will specify the I/O variables info.

{
"parameters": {
"server": "Matrikon.OPC.Simulation.1",
"async_connection": true
},
"variables": {
"sensors": {
"datatype": "byte",
"size": 1,
"operation": "write"
},
"actuators": {
"datatype": "byte",
"size": 1,
"operation": "read"
}
}
}
note

The setup_params in the generic PLC components for opcda_client will need the following format:

{ "server": "Matrikon.OPC.Simulation.1", "async_connection": true }