Modbus port number other than 502

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.

Hi @erikhoff,

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 us-sales@hms.se and asking if this is something that dev team might be able to help you implement.

-Tim