FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
10-15-2024 03:35 PM
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! 😊
10-17-2024 09:34 AM - edited 10-17-2024 11:42 AM
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.
10-18-2024 09:18 AM
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?"
10-22-2024 10:59 AM - edited 10-22-2024 10:59 AM
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?"