What is the Max number of slave devices a Modbus TCP master can have in the Codesys PLC
You can take a look at this post. Up to 32 Modbus TCP slaves can be added to a Modbus TCP Master. Max. number. of TCP connections can be up to 32.