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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RackioOPC-UA-0.7.win-amd64.zip.
File metadata
- Download URL: RackioOPC-UA-0.7.win-amd64.zip
- Upload date:
- Size: 19.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa20787d41dd3920f098ca2d5ae1af14b0b26fcfaedea509f876fedb837c0cd1
|
|
| MD5 |
1498526c9671f508427e3f12478bdeaa
|
|
| BLAKE2b-256 |
fb0cb363c3dd589b4091d6582f5a1f418481d2e5c2f7a5e7f091b1f2c576d0b2
|
File details
Details for the file RackioOPC_UA-0.7-py3-none-any.whl.
File metadata
- Download URL: RackioOPC_UA-0.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5fe56deaed92e4d3a5def236f4686d02054d605e6fbf767e63860c651756230
|
|
| MD5 |
e3e3afd374ef16e3ff3894d26d83b610
|
|
| BLAKE2b-256 |
bf8d60a6c1fefef8b53dcef254773b3ead51178c8aae71017e44eb8c95f4b722
|