# MODBUS General purpose boolean registers

**URL:** <https://forum.universal-robots.com/t/modbus-general-purpose-boolean-registers/35999>\
**Category:** Robot Communication\
**Tags:** modbus\
**Created:** [September 9, 2024, 2:09pm UTC](https://forum.universal-robots.com/t/modbus-general-purpose-boolean-registers/35999 "2024-09-09T14:09:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik.tompkins](https://avatars.discourse-cdn.com/v4/letter/e/d07c76/32.png) [@erik.tompkins](https://forum.universal-robots.com/u/erik.tompkins)\
**Post date:** [September 9, 2024, 2:09pm UTC](https://forum.universal-robots.com/t/modbus-general-purpose-boolean-registers/35999/1 "2024-09-09T14:09:50Z")

</div>

Hi Ebbe, i can see you’ve got a list of MODBUS addresses here, i am currently trying to get a Mitsubishi HMI to communicate to UR20 over MODBUS to control a selection of Sub programmes.

if i want to simply switch on and off a selection of inputs either using bit switches or words from my HMI what addressees would i use, i understand that UR provide 128 freely configurable registers but i do not know what address i require to activate them over MODBUS.

Any help would be greatly appreciated

Kind regards

Erik Tompkins

---

<div class="post-metadata">

**Author:** ![Ebbe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/ebbe/32/1413_2.png) [@Ebbe](https://forum.universal-robots.com/u/Ebbe)\
**Post date:** [September 10, 2024, 7:50am UTC](https://forum.universal-robots.com/t/modbus-general-purpose-boolean-registers/35999/2 "2024-09-10T07:50:47Z")

</div>

Hi @erik.tompkins,

Welcome to the UR community🦾

I move you question into a dedicated topic. The list [Overview of used ports on local host](https://forum.universal-robots.com/t/overview-of-used-ports-on-local-host/8889) indicate that the UR robot have a Modbus server running on port 502. More details can be found here [Modbus Server - 16377 | Universal Robots Support](https://www.universal-robots.com/articles/ur/interface-communication/modbus-server/)  
And [https://s3-eu-west-1.amazonaws.com/ur-support-site/16377/ModBus%20Server%20Data.pdf](https://s3-eu-west-1.amazonaws.com/ur-support-site/16377/ModBus%20Server%20Data.pdf) show that you can write and read the _General Purpose Input boolean registers_ on coil address 300-427 and read _General Purpose Output boolean registers_ on coil address 500-627.

The same registers can be accessed by the URScript functions:

- write\_output\_boolean\_register
- read\_output\_boolean\_register
- read\_input\_boolean\_register

I hope that helps you make your integration🤞

Ebbe
