Modbus RTU device communication only on request

lukaszsz
2022-06-21
2022-06-22
  • lukaszsz - 2022-06-21

    Hi,
    I have 10 modbus slaves in my project.
    I don't want communication to be cyclical.
    Is it possible to select in the program with which device the controller is to be connected at the moment?
    I tried to use the xTrigger bit from the IoDrvModbus.ModbusSlaveComPort structure, but despite the edge being exposed, the communication is cyclical.

     

    Last edit: lukaszsz 2022-06-21
  • i-campbell

    i-campbell - 2022-06-21

    Did you change already this setting to rising edge or applicaiton? I think with rising edge, you get another BIT in your IO Mapping. With Application you use xTrigger.

     
    πŸ‘
    1
  • lukaszsz - 2022-06-22

    My stupid mistake. I am a beginner at codesys. Thanks for your help.

     

Log in to post a comment.