title: Can we map same register address to multiple slave in MODBUS TCP IP
body: <p>I am working on MODBUS TCP/IP server in c. For this development I am using libmodbus (stephane) library. How can I configure same register address to the multiple slave.</p>
  
  <p>Basically, I am developing one MODBUS TCP/IP gateway. There is 10 same type of sensor connected to this gateway. After configuring this gateway with MODBUS TCP/IP Client (PC based software). I want to read parameter of all this parameter through same register address like 10000 for param-1, 10001 for param-2 of all sensor. Can we do that or we need to allocate a different register to all the sensor parameter?</p>
  
  <p>Explanation:
  Basically, Support I have one PC on which we installed kepware software (MODBUS-TCP client). Now we connect one Gateway device (MODBUS-TCP server). We have connected 10 devices to this Gateway device through a wired connection. Now as per my understanding if I want to configure client then one way is just allocate 10 register address for each device parameter like 10000 for device-1, 10001 for device-2 and so on. But if all devices are in the same category then I think this is the wrong way for development. So can we do like allocating each device as one unic number and get their parameter value of the device through register address 10000. If its possible then can you explain to me how to achieve this. </p>
  
  <p>[Devices are connected to the server through UART, I2C etc. But the parameter of all devices is the same as voltage and current. So, Can I able to use only 2 registers for voltage and current? If yes then do you have any reference how to use that?]</p>
  
  <p>If any reference or sample code then its helpful for me.</p>