ModbusCreateSlave

ModbusCreateSlave — creates a slave connection.

Synopsis

(ModbusCreateSlave slaveName hostSpec dataDomain pollMs retryMs 
 maxMsgLength slaveId supportedFunctions addressFlags)
    

Arguments

slaveName

Any alphanumeric string identifying this connection.

hostSpec

A list of (hostType, hostName, port) where hostType should be "tcp"

dataDomain

The data domain into which to write data points.

pollMs

The number of milliseconds in the polling cycle, with a minimum of 10.

retryMs

The number of milliseconds to wait before retrying after a disconnection, with a minimum of 10.

maxMsgLength

The maximum length of a message, in bytes, between 20 and 260.

slaveId

The ID for the slave device. This should match the configuration in the slave.

supportedFunctions

A list of zero or more of (5, 6, 15, 16, 22).

addressFlags

A list of zero or more of ("BitOrderReversed", "OneBasedAddressing", "OneBasedBitAddressing").

Returns

A message indicating success or error. Please refer to Return Syntax for details.

Description

This command creates a slave connection, as specified by the parameters.