swingToolbarService and editing modbus variable

Unfortunately we aren’t given access to any of the GPIO registers/booleans through the API. This has been a pain point for me for a long time. The closest thing you can get is to be able to SEE the value of NAMED registers, but there’s no methods to actually write to their value. This is not the case for the physical IO, which you CAN write to from the API. Seems completely backwards to me, but that’s the way it is.

That said, I’ve used these classes before to send URScript via Java to get the job done:

So you can just send the URScript that can write to a MODBUS register (assuming it exists). The downside here is that this method of communication is noticeably laggy, and gets REALLY bad if you spam click to send a log of scripts rapidly.

1 Like