OPC UA client interface for connecting to OPC UA servers used in industrial automation. More...

Public Member Functions | |
bool | Connect () |
Connects to the OPCUA Server. | |
OPCUA_Node | GetOPCUANode (string nodeid) |
Gets an OPCUA_Node with the NodeID in all the Childrens of the Interface. | |
void | ImportNodes () |
Imports all OPCUANodes under TopNodeId and creates GameObjects. | |
void | EditorImportNodes () |
void | ImportNodes (string nodeid) |
Imports all nodes under one TopNodeID. | |
OPCUANodeSubscription | Subscribe (string nodeid, NodeUpdateDelegate del) |
Subscribes to an OPCUA node, delegate function gets called when node value is updated on OPCUA server. | |
object | ReadNodeValue (OPCUA_Node node) |
Reads a Node value and returns it as object. | |
object | ReadNodeValue (string nodeid) |
Reads a Node value based on its id and returns it as object. | |
object | ReadNodeValue (string nodeid, ref string status) |
Reads a Node value based on its id and returns it as object, a status reference is passed. | |
bool | WriteNodeValue (string nodeid, object value) |
Writes a value to an OPCUA node with its nodeid. | |
bool | WriteNodeValue (OPCUA_Node node, object value) |
Writes a value to an OPCUA node with its node object. | |
bool | WriteNodeValue (string nodeid, object value, ref string status) |
Writes a value to an OPCUA node with its node id and a status variable reference. | |
void | UnSubscribe (OPCUANodeSubscription subscription) |
void | Disconnect () |
Disconnects from the OPCUA server. | |
Detailed Description
OPC UA client interface for connecting to OPC UA servers used in industrial automation.
Provides secure communication with industrial equipment and control systems through the OPC Unified Architecture protocol. Supports multiple security policies, certificate-based authentication, and automatic reconnection. This interface enables reading and writing process data from/to OPC UA servers like KEPServerEX, Siemens WinCC OA, or embedded OPC UA servers in PLCs. Configure the server connection parameters and security settings to establish communication with your OPC UA server.
Member Function Documentation
◆ Connect()
bool realvirtual.OPCUA_Interface.Connect | ( | ) |
Connects to the OPCUA Server.
◆ Disconnect()
void realvirtual.OPCUA_Interface.Disconnect | ( | ) |
Disconnects from the OPCUA server.
◆ GetOPCUANode()
OPCUA_Node realvirtual.OPCUA_Interface.GetOPCUANode | ( | string | nodeid | ) |
Gets an OPCUA_Node with the NodeID in all the Childrens of the Interface.
◆ ImportNodes() [1/2]
void realvirtual.OPCUA_Interface.ImportNodes | ( | ) |
Imports all OPCUANodes under TopNodeId and creates GameObjects.
If GameObject with NodeID is already existing the GameObject will be updated. Does not deletes any Nodes. If Realvirtual Framework is existent (Compiler Switch REALVIRTUAL) also Realvirtual PLCInputs and PLCOutputs are created or updated or all nodes with suitable data types.
◆ ImportNodes() [2/2]
void realvirtual.OPCUA_Interface.ImportNodes | ( | string | nodeid | ) |
Imports all nodes under one TopNodeID.
Folder
Variable
◆ ReadNodeValue() [1/3]
object realvirtual.OPCUA_Interface.ReadNodeValue | ( | OPCUA_Node | node | ) |
Reads a Node value and returns it as object.
◆ ReadNodeValue() [2/3]
object realvirtual.OPCUA_Interface.ReadNodeValue | ( | string | nodeid | ) |
Reads a Node value based on its id and returns it as object.
◆ ReadNodeValue() [3/3]
object realvirtual.OPCUA_Interface.ReadNodeValue | ( | string | nodeid, |
ref string | status | ||
) |
Reads a Node value based on its id and returns it as object, a status reference is passed.
◆ Subscribe()
OPCUANodeSubscription realvirtual.OPCUA_Interface.Subscribe | ( | string | nodeid, |
NodeUpdateDelegate | del | ||
) |
Subscribes to an OPCUA node, delegate function gets called when node value is updated on OPCUA server.
◆ WriteNodeValue() [1/3]
bool realvirtual.OPCUA_Interface.WriteNodeValue | ( | OPCUA_Node | node, |
object | value | ||
) |
Writes a value to an OPCUA node with its node object.
◆ WriteNodeValue() [2/3]
bool realvirtual.OPCUA_Interface.WriteNodeValue | ( | string | nodeid, |
object | value | ||
) |
Writes a value to an OPCUA node with its nodeid.
◆ WriteNodeValue() [3/3]
bool realvirtual.OPCUA_Interface.WriteNodeValue | ( | string | nodeid, |
object | value, | ||
ref string | status | ||
) |
Writes a value to an OPCUA node with its node id and a status variable reference.