# Modbus/IO-Link - Problem with configuring IO

**URL:** <https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743>\
**Category:** Robot Communication\
**Created:** [April 21, 2022, 12:07pm UTC](https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743 "2022-04-21T12:07:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wekert](https://avatars.discourse-cdn.com/v4/letter/w/e36b37/32.png) [@wekert](https://forum.universal-robots.com/u/wekert)\
**Post date:** [April 21, 2022, 12:07pm UTC](https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743/1 "2022-04-21T12:07:52Z")

</div>

Hello,  
I’m haveing hard time configuring IO on the UR10 with MODBUS.  
Im using UR10 with Keyence NQ-MP8L connected to UR10 by MODBUS and NQ-IL8P conneted to NQ-MP8L by IO-LINK  
Outputs on IOLink module are on register 2049 and it’s working.  
However I need to use some ports as inputs, so I cannot use register. I can’t also configure it as normal outputs because their maximum adress is 8096.  
Does anybody know, What can I do?  
I would really appreciate any help

---

<div class="post-metadata">

**Author:** ![anon8732348](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@anon8732348](https://forum.universal-robots.com/u/anon8732348)\
**Post date:** [April 25, 2022, 2:23pm UTC](https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743/2 "2022-04-25T14:23:48Z")

</div>

Can you post a picture of your UR modbus setup screen?

Reading the manual for the NQ: When used as inputs, the ports are addressed as shown here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/a/a2baa0209a42c24e2781e02796d882a548417ec2.png)

Im not clear whether you can assign Input/Output function from the software or if you have to set the value via modbus at the addresses shown here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/7/7851b6c325b0f1da4147d9c24ee58669b1e955db.png)

---

<div class="post-metadata">

**Author:** ![anon8732348](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@anon8732348](https://forum.universal-robots.com/u/anon8732348)\
**Post date:** [April 25, 2022, 5:50pm UTC](https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743/3 "2022-04-25T17:50:59Z")

</div>

I dont have any arduino code. I am not using that element, but i know the int can be sent over MODBUS/TCP.

Looks like this library commands/examples should get you there. You are wanting to write a holding register.  
Then on the UR modbus setup, you need to give it your master address and then setup the register

> **[ArduinoModbus - Arduino Reference](https://www.arduino.cc/reference/en/libraries/arduinomodbus/)**
>
> The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.

> **[GitHub - arduino-libraries/ArduinoModbus](https://github.com/arduino-libraries/ArduinoModbus)**
>
> Contribute to arduino-libraries/ArduinoModbus development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![wekert](https://avatars.discourse-cdn.com/v4/letter/w/e36b37/32.png) [@wekert](https://forum.universal-robots.com/u/wekert)\
**Post date:** [April 27, 2022, 12:28pm UTC](https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743/4 "2022-04-27T12:28:50Z")

</div>

Hi m.ricchino,  
Thank for your reply. Below are pictures of my modbus configuration.

 ![20220427_140220](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/2/2c4688110209fa1891f06dc1af6c28680c5e0eaa.jpeg)  
 ![20220427_140227](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/3/3fc9bd274230b65429e317e26b790eda872551b2.jpeg)  
 ![20220427_140235](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/f/f5a9de47702df5e05860fc954e05d0c86d9cfcd1.jpeg)  
 ![20220427_140239](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/6c9304f8fd278a822e41b8d0cd93a9e3a44899c9.jpeg)

My main problem was that i couldn’t set outputs on the UR side (the indeź was too big).  
Now I reallized that I can accually use the register, because even when i set “0” signal on port that is used as input, I will read the value of the input.

---

<div class="post-metadata">

**Author:** ![anon16313232](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon16313232](https://forum.universal-robots.com/u/anon16313232)\
**Post date:** [May 16, 2023, 11:43pm UTC](https://forum.universal-robots.com/t/modbus-io-link-problem-with-configuring-io/20743/5 "2023-05-16T23:43:01Z")

</div>

I am having a similar issue, how was this resolved?
