Skip to main content

A Rackio extension to add a OPC-UA support

Project description


A Rackio extension to add a OPC-UA support to a Rackio application


pip install RackioOPC-UA


from rackio import Rackio
from rackio_opcua import RackioOPCUA

app = Rackio()

driver = RackioOPCUA(app, 4840)

Creating Tree Nodes

In order to create nodes, you can define custom folders, devices and mappings.

folder = driver.define_folder("default")

device = folder.define_device("main")

Mappings allows to bind a OPC-UA object node to a Rackio defined Tag.

device.define_mapping("T1", "write")
device.define_mapping("T3", "read")

write mode allows to read and write from a OPC-UA Client, and read mode allows to read only. By default, the binding timing period is 0.25 seconds. You bypass this by providing the period parameter, in seconds.

device.define_mapping("T1", "read", period=0.5)

You can also define mappings inside folders and can define folders inside folders.

Features to develop

Some OPC-UA features are in development phase suchas.

  • Custom Method definitions
  • Custom Data Types definitions
  • History Query
  • Loading configurations form a file (JSON and XML)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (19.1 kB view hashes)

Uploaded source

Built Distribution

RackioOPC_UA-0.7-py3-none-any.whl (7.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page