WriteProfinetBuffer

Writes data from a referenced Buffer structure, created by the FormatOutputBuffer function, to remote PROFINET IO client devices. For more information, see FormatOutputBuffer.

Note:
  • For In-Sight vision systems running In-Sight 5.1.0 and later firmware, when a job containing this function is loaded, it will automatically be replaced by the WriteResultsBuffer function (the Protocol parameter will be set to Default). For more information, see WriteResultsBuffer.
  • 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.
  • An In-Sight vision system can act as a server only; it will not initiate a connection to another device.
  • Only one WriteProfinetBuffer function should be placed in the spreadsheet. Multiple WriteProfinetBuffer functions may overwrite data waiting to be sent in the flash memory buffers.
  • Jobs containing this function that are saved in In-Sight Explorer 3.3.0 or higher are only compatible with In-Sight Explorer 3.3.0 and higher.

WriteProfinetBuffer Inputs

Syntax: WriteProfinetBuffer(Event,Buffer)

Parameter Description

Event

Specifies the event that forces an update.This parameter must be a reference to one of the following:
  • The Image data structure in cell A0, containing the AcquireImage function. For more information, see AcquireImage.
  • A cell containing an Event function. For more information, see Event.
  • A cell containing a Button function. For more information, see Button.

Buffer

Specifies a reference to a Bluffer data structure created by the FormatOutputBuffer function, which contains automatically formatted data.

Note: The maximum length for output data is 4,000 bytes.

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