A python client for LADS OPC UA Server
Project description
Python Client for LADS OPC UA Server
Create a connection to the LADS Server using the server URL:
conn = Connection("your_server_url")
Start the connection to the server:
conn.connect()
Get the server object of the Connection class
serv = conn.server
Get the LADS Device list that is present in the LADS Server DeviceSet
devices = serv.devices
For a Device 'i' the list of Functional Units present inside that Device can be retrieved as
fu = devices[i].functional_units
The Function Set present inside a Functional Unit 'k' can be accessed as
fs = fu[k].function_set
The list of Functions present inside the Function Set can be retrieved as
funcs = fs.functions
Please be aware, that LADS specifies numerous function types, representing e.g. sensors, controllers, timers, lids/doors and so on. For further information refer to the specification and the workshop example.
Variables, methods and objects of a function can be easily accessed as properties, e.g. the Sensor Value of a Sensor Function 'j' can be accessed as
value = funcs[j].sensor_value.value
The connection to the server can be disconnected as
conn.disconnect()
Project details
Release history Release notifications | RSS feed
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 lads_opcua_client-0.1.0.tar.gz.
File metadata
- Download URL: lads_opcua_client-0.1.0.tar.gz
- Upload date:
- Size: 232.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b339cfb8e44864bdd7a041c747edafa56b3cdb18ce423db9982707dd5d8ed978
|
|
| MD5 |
5aff4eef0f333af5e2b09ab054dc826f
|
|
| BLAKE2b-256 |
ce19fc030e76484255e13881f741767bacdde28a8de0f7ab5b56c8f56804987b
|
File details
Details for the file lads_opcua_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lads_opcua_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 234.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db192fea98b00d704d38708f7661dafe78c925a7987b06cc51cf480f29a89732
|
|
| MD5 |
abd808fcda285efafc0405fb64b94718
|
|
| BLAKE2b-256 |
f7bc83685089898c8a9a20444665265f4efd674e08b5918b565b11167078199a
|