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

  • cenum.png serial type

    serial type specifies the type of data transmission through serial ports.

  • cu8.png unit ID

    unit ID specifies the identification of the Modbus slave. Valid values are within the range [1, 127].

  • cvsrn.png VISA resource name

    VISA resource name specifies the resource you want to open.

  • cu32.png baud rate (9600)

    baud rate specifies the baud rate of transmission. The default is 9,600.

  • 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.

  • cu16.png parity (Even)

    parity specifies the parity type to use for every frame you want to transmit or receive. The messages that Modbus masters and slaves exchange are called frames.

  • cu16.png flow control (None)

    flow control specifies the type of control that the transfer mechanism uses.

  • iModbus_Slavelvclass.png serial slave instance

    serial slave instance returns a serial Modbus slave instance.

  • 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