Is there a way to change the default port number 502 in Modbus TCP on M40 Anybus module, for the Modbus protocol? For other TCP communication I find it, but not within the Modbus part.
Currently there’s no easy way to change the default port 502. You would need to write your own modbus stack to change the port. Yhis could be done with the transparent ethernet, in the host. Or you could use the Socket Connection.
If this is something that you’re interested in doing, I’d recommend reaching out to firstname.lastname@example.org and asking if this is something that dev team might be able to help you implement.