Create Slave Instance (TCP) VI
- Updated2024-11-20
- 2 minute(s) read
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.

Inputs/Outputs
port (502)
—
port specifies the TCP port to which the Modbus slave instance connects. The default is 502.
device data model
—
device data model specifies how the Modbus slave instance stores data.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
TCP slave instance
—
TCP slave instance returns a TCP Modbus slave.
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
port (502)
—
device data model
—
error in (no error)
—
TCP slave instance
—
error out
—