Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Modbus TCP Slave Unit Id

2021-08-27
2021-08-27
  • ashwinsekar - 2021-08-27

    Hi,
    I am trying to setup a modbus tcp communication between Control Win x64(Server) and a PLC(Client),
    The slave id of the PLC can be set only between 1 -247,

    I am able to read values using modscan from Control Win x64 setting the device ID to 255,

    Is it possible to change the Slave id of the modbus server any value between 1 to 247?

    I am using Codesys 3.5.16.20

     
  • i-campbell

    i-campbell - 2021-08-27

    The Modbus TCP Spec at modbus.org says 0xFF should be used to address the device, and other addresses are for gateway architectures.
    I will see if there is a workaround, but you should in anycase suggest an improvement to your PLC Manufacturer.

     

    Last edit: i-campbell 2021-08-27

Log in to post a comment.