After you get the Nodes data from OPC UA Server via OPC UA client in RoboDK, you can also get these data by using RoboDK-Python-API.
You can reference this link to install the RoboDK Python-API.
https://robodk.com/doc/en/PythonAPI/intro.html#how-to-install
Or install the robodk package for Python manually:
pip install robodk
This example script shows how to get the station parameters via the Python API of RoboDK.
from robodk import robolink # RoboDK API
RDK = robolink.Robolink()
from robodk import * # RoboDK API
from robolink import * # Robot toolbox
itemlist = RDK.ItemList()
if itemlist:
# Get all Station Parameters
print('Vaild Paramaters are configurated in your Station..')
StationParameters=RDK.getParams()
for StationParameter in StationParameters:
print("Station Parameters %s : %s"%(StationParameter[0],str((StationParameter[1]))))
else:
print('No Parameter list..')
Here is the result of the Example Script:
Vaild Paramaters are configurated in your Station..
Station Parameters RoboDK : RoboDK 64 bit v5.5.3.23031
Station Parameters time : 02/14/2023 03:58:29.191.000.000
Station Parameters SimulationSpeed : 13.8551
Station Parameters Station : MyTestStation