Skip to main content

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


Download files

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

Source Distribution

lads_opcua_client-0.1.0.tar.gz (232.3 kB view details)

Uploaded Source

Built Distribution

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

lads_opcua_client-0.1.0-py3-none-any.whl (234.2 kB view details)

Uploaded Python 3

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

Hashes for lads_opcua_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b339cfb8e44864bdd7a041c747edafa56b3cdb18ce423db9982707dd5d8ed978
MD5 5aff4eef0f333af5e2b09ab054dc826f
BLAKE2b-256 ce19fc030e76484255e13881f741767bacdde28a8de0f7ab5b56c8f56804987b

See more details on using hashes here.

File details

Details for the file lads_opcua_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lads_opcua_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db192fea98b00d704d38708f7661dafe78c925a7987b06cc51cf480f29a89732
MD5 abd808fcda285efafc0405fb64b94718
BLAKE2b-256 f7bc83685089898c8a9a20444665265f4efd674e08b5918b565b11167078199a

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