FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
3 weeks ago
Hello!
I need to create a Modbus server that allows me to define multiple unit IDs for the same IP address and port. This will enable reading data from multiple unit IDs through a single connection.
I have looked into the ctrlX Modbus App, as well as the PLC Engineering library CXA_ModbusTCP, but neither offers the option to define unit IDs.
Is there an alternative solution to address this issue?
Thanks in advance! 😊
3 weeks ago - last edited 3 weeks ago
Hello,
you're planning to run a ModbusTCP Server with multiple Unit IDs, currently the Modbus TCP App supports one Unit ID, not multiple. And one instance only currently. The library doesn't provide it. I assume, it's because in Modbus TCP normally Unit ID is default 255 and Unit ID is something which was used with Modbus RTU. Is it possible to do the same with different register addresses instead?
With the Modbus TCP App as Client, on adding a new device, it is possible to configure the Unit ID. You have to configure for each Unit ID an individual device. We tested this with a device which supports Unit ID.
with the library CXA_ModbusTCP each function code function block offers an input for the Unit ID for Client functionality.
Please share version of the Modbus TCP App and library CXA_ModbusTCP you used for testing.
3 weeks ago
I am using:
Thanks for the answer! Based on it, I understand that there currently isn't a solution for creating a Modbus Server that takes unit IDs into account, correct?
"Is it possible to do the same with different register addresses instead?"
2 weeks ago - last edited 2 weeks ago
Could someone just confirm this quickly?
"Based on it, I understand that there currently isn't a ctrlX solution for creating a Modbus Server that takes unit IDs into account, correct?"