This documentation provides detailed information about the OPC_Connector package, designed to facilitate seamless integration with OPC UA servers. Our package simplifies the process of connecting to OPC servers, managing sessions, and performing read/write operations on OPC tags.
OPC UA (Open Platform Communications Unified Architecture) is a machine-to-machine communication protocol developed for industrial automation applications. It ensures secure and reliable data exchange among various devices and systems in industrial environments. More information about python opcua library can be found here
Let's get started!
'ExampleServer' must be configured in config.json
file.
Here's how you can quickly set up a connection and read a tag from an OPC server:
from OPC_Connector import get_opc_client
# Initialize the client for a server named 'ExampleServer'
client = get_opc_client('ExampleServer')
# Read a value from the tag 'Temperature'
temperature = client.read('Temperature')
print(f"Current Temperature: {temperature}°C")
Note: this documentation is not completed yet.