WriteModbusBuffer
Writes data from a referenced Buffer structure, created by the FormatOutputBuffer function, making it available to a remote client device using the Modbus protocol. The remote client that is reading from the In-Sight vision system must read from Registers 30010 – 30137 to access this data. For more information, see FormatOutputBuffer.
- This function is only available on In-Sight vision systems running In-Sight firmware 4.x.x, and is not available on In-Sight vision systems running In-Sight firmware 5.1.0 and later. For a complete list of models and supported firmware versions, see Firmware Versions.
- For available Modbus TCP implementations based on different In-Sight firmware versions, see Modbus TCP Communications.
WriteModbusBuffer Inputs
Syntax: WriteModbusBuffer(Event,Buffer,Byte/Word Order)
Parameter | Description |
---|---|
Specifies the event that forces an update.This parameter must be a reference to one of the following:
|
|
Specifies a reference to a Buffer data structure created by a FormatOutputBuffer function, which contains automatically formatted data. Note:
The maximum length for output data is 4,000 bytes.
|
|
Specifies the bit order for words and bytes written by the function. The available values are:
|
WriteModbusBuffer Outputs
Returns |
The number of elements written or #ERR if an input parameter is invalid, or if a connection to a client has not been established. |