Generate ScriptCode when Button Pressed in Installation Node

Hello Guys,

I am currently struggling while programming an URCap.
I want to overwrite a Modbus register to communicate between two robots by pressing a button in the an installation node or the toolbar but I can`t find a solution on how I should do that.

Has anyone any tips?

Thanks in advance!

There’s some classes provided by UR that allow you to execute URScript via the Java UI. You can use this to send MODBUS signals and such from your Installation.