Create Slave Instance (Serial) VI
- Updated2024-11-20
- 3 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
serial type
—
serial type specifies the type of data transmission through serial ports.
unit ID
—
unit ID specifies the identification of the Modbus slave. Valid values are within the range [1, 127].
VISA resource name
—
VISA resource name specifies the resource you want to open.
baud rate (9600)
—
baud rate specifies the baud rate of transmission. The default is 9,600.
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.
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.
flow control (None)
—
flow control specifies the type of control that the transfer mechanism uses.
serial slave instance
—
serial slave instance returns a serial Modbus slave instance.
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
serial type
—
unit ID
—
VISA resource name
—
baud rate (9600)
—
device data model
—
error in (no error)
—
parity (Even)
—
serial slave instance
—
error out
—