Skip to main content

A Rackio extension to add a OPC-UA support

Project description

rackio-opc-ua

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

Installation

pip install RackioOPC-UA

Usage

from rackio import Rackio
from rackio_opcua import RackioOPCUA

app = Rackio()

driver = RackioOPCUA(app, 4840)

app.run(8028)

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

RackioOPC-UA-0.6.win-amd64.zip (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RackioOPC_UA-0.6-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file RackioOPC-UA-0.6.win-amd64.zip.

File metadata

  • Download URL: RackioOPC-UA-0.6.win-amd64.zip
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for RackioOPC-UA-0.6.win-amd64.zip
Algorithm Hash digest
SHA256 6a21ed92b6a7655dca6850cad935b9aa567907968aa5125a7918ad0acb1e3edd
MD5 af4539d2fd0d7c56892feed339845416
BLAKE2b-256 3b350f9f9ba841f3e4810162544186fdccfd85defe9a14e19bcc1518aa4cf7fe

See more details on using hashes here.

File details

Details for the file RackioOPC_UA-0.6-py3-none-any.whl.

File metadata

  • Download URL: RackioOPC_UA-0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for RackioOPC_UA-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 372880417d84c7101ad2f36c4564d427c213f28929946d791747b387d532f456
MD5 ba6c21c52ccadbacd33dfba84c7bb60f
BLAKE2b-256 a920d0f02375a1251453674dce35b76418fe1d784e08178d0dd1aa1e467cbb48

See more details on using hashes here.

Supported by

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