Modbus TCP bus state

JAPIB
2016-01-07
2016-01-11
  • JAPIB

    JAPIB - 2016-01-07

    Hello

    Is there a way to know, in a program the status of the bus Mobbus TCP, the status of the master, the status of a slave, if an element is connected or not.
    I read documentation about CAA_DeviceDiagnostic.lib, but it is not very clear for me
    I use the name of a slave in status windows, i see many helpfull inofrmations, but I can't uses it in my program.

    Thank you in advance for your answers.

     
  • JAPIB

    JAPIB - 2016-01-09

    Hello
    Nobody uses Modbus TCP or rather diagnostic information?
    Please Mr. CODESYS gives us more readable and useful docs with real examples.

     
  • jzhvymetal - 2016-01-09

    It is easy the modbus items are objects. Do the following by using the name of the object:

    Modbus_TCP_Master.xSlaveError
    Modbus_TCP_Master.uiConnectedSlaves

    Modbus_TCP_Slave.byModbusError
    Modbus_TCP_Slave.xBusy
    Modbus_TCP_Slave.xConfirmError
    Modbus_TCP_Slave.xError
    Modbus_TCP_Slave.xInitDone

    BR

     
  • nmm - 2016-01-11

    Is there a proper working example available for Modbus TCP and other comms?

     

Log in to post a comment.