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

Limit Input Register / ModbusTCP Slave Device

fjcano
2022-02-22
2022-02-22
  • fjcano - 2022-02-22

    Hello,
    I want to limit ModbusTCP Slave Device Input Register to zero.

    Reading the device documentation i have seen it is possible at the "device description". Not sure which this reference applied to.

    Another question i want to ask, if it is possible to modify the modbus slave id? I have not seen any option for that.

    Finally I want to ask if there is some documentation available more specific about the modbus communication implemented in the CODESYS Control for Raspberry Pi. I wanted to know, between other things, max number of modbus server and client connection limitation.

    Regards and thank for the help.

     
  • i-campbell

    i-campbell - 2022-02-22

    I want to limit ModbusTCP Slave Device Input Register to zero.

    Reading the device documentation i have seen it is possible at the "device description". Not sure which this reference applied to.

    You can export / import the device description from Tools > Device repository > find the device > Export. You should get an XML file which is the device description.

    Another question i want to ask, if it is possible to modify the modbus slave id? I have not seen any option for that.

    With SP17, it accepts any slave ID, so long as you have no serial gateway configured. Earlier, it used the one defined by the specification - 0xFF. 0x00 worked also, becuase it was broadcast address.

    Finally I want to ask if there is some documentation available more specific about the modbus communication implemented in the CODESYS Control for Raspberry Pi. I wanted to know, between other things, max number of modbus server and client connection limitation.

    The only documentation is that at help.codesys.com

    The Modbus TCP slave is allowed 16 simultaneous client connections. If you need more, you can add another Modbus TCP slave and change its port number.

    The Modbus TCP master is allowed 64 slaves, but you can just add an additional master to the Ethernet if you need more.

     

Log in to post a comment.