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

How to read the status of one Modbus Slave in the codesys program

pruwetbe
2021-08-15
2021-08-15
  • pruwetbe - 2021-08-15

    Hello,
    I have several modbus slave connected on RS485 using A Modbus_COM Master and Modbus slave.
    The communication is working well but i would like to change the display on the HMI for the related value when the communication is broken.

    I can see the structure associated to my slave online in the codesys but i would like to use the conteny of this structure in the program.
    When i am offline, the variable name is not visible (only ($Device_name) appear
    When i am online his name is Device.Application.Modbus_slave_AQ_10 where Modbus_slave_AQ_10 is the bame of the device in the Codesys hardware structure.

    Do I need to map the diagnostic to another application variable to be abale to get the status in the program?

     
  • pruwetbe - 2021-08-15

    ok i finally found it through the IoConfig_Globals categorie

     
  • pruwetbe - 2021-08-15

    ok i finally found it through the IoConfig_Globals categorie

     

Log in to post a comment.