Hi,
with profinet is possibile, i think also with modbus.
see this page:
and this:
https://www.universal-robots.com/articles/ur/interface-communication/profinet-how-to-guide-cb3/
you can check if there is an article in this page:
Articles | Support site | Universal Robots?