Creates a serial or TCP Modbus slave instance. The Modbus slave instance you create includes a daemon. Daemon is a background process that responds to requests from Modbus master instances. You must manually select the polymorphic instance to use.


icon

Inputs/Outputs

  • cu16.png port (502)

    port specifies the TCP port to which the Modbus slave instance connects. The default is 502.

  • cSubVIs_lvlib_Device_Data_Modellvclass.png device data model

    device data model specifies how the Modbus slave instance stores data.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • iModbus_Slavelvclass.png TCP slave instance

    TCP slave instance returns a TCP Modbus slave.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • Examples

    Refer to the following VIs for examples of using the Create Slave Instance VI:

    • labview\examples\Data Communication\Modbus\ModbusLibrary\Modbus Library.lvproj
    • labview\examples\Data Communication\Modbus\Redundant Modbus Masters\Redundant Modbus Masters.lvproj