I use 2152 with AXC F XT ETH 1TX card. How configurate multiple ModBus Clients in 2024.6 and how I can choice / change what port will be use. Port 2152 or port AXC F XT ETH 1TX card?
Hi.
If we a talking about Modbus_TCP_xx library, than there are two parameters of client FB strBindIp and uiBindPort, which define this behavior. Please kindly read help page dedicated to that function block. And if you are deal with new embedded modbus functions (system Modbus library), I expect it will use underlying system routing, but can’t tell exact, does not use it in prod yet.
For Modbus_TCP_xx library you can get up to 64 client connections (base on maximum possible simultaneous TLS sockets opened). So you will get as many client connections, as many instantiated and configured Client_FB you will add to your code.
For system Modbus library up to 16 clients.
BR.
Thanks for your attention. I mean the new built-in function Modbus