I moved from Modbus RTU to Modbus TCP and my client library still asks for a "unit" or "slave id" on every read. The device already has its own IP address, so I do not see what the number is for. One energy meter answers with any unit ID, while a serial gateway only answers when the ID matches the device behind it.
What is the unit ID really used for in Modbus TCP, and what else changes in the frame compared with RTU?




