I’m writing a program using the RTDE protocol to control a UR5e cobot, but when I try to send data to the digital output, I can’t find a way to do it. The tool uses a relay, so I only need to turn on a digital output port.
Have you taken a look inside the github of UR? There they have examples how to call the RTDE.
If you just dont know how to call the digital Output, there is the required name-string inside the “receipt” provided in the examples.
There is pull-request documenting all inputs (from RTDE point of view, from Robot point of view they are physical outputs), where tool digital outputs are documented as well.
Once information in pr is verified it will be merged to examples.
Here are relevant lines for controlling tool digital outputs through RTDE: RTDE_Python_Client_Library/examples/record_configuration.xml at document-input-fields · UniversalRobots/RTDE_Python_Client_Library · GitHub