FormatOutputBuffer
Allows you to configure the format of data that is sent to the WriteCCLinkBitBuffer, WriteCCLinkWordBuffer, WriteDeviceNetBuffer, WriteEIPBuffer, WriteModbusBuffer, WriteProfinetBuffer, WriteMC and WriteResultsBuffer functions. For more information, see:
- WriteCCLinkBitBuffer
- WriteCCLinkWordBuffer
- WriteDeviceNetBuffer
- WriteEIPBuffer
- WriteModbusBuffer
- WriteProfinetBuffer
- WriteMC
- WriteResultsBuffer
When FormatOutputBuffer is selected from the Insert Function Dialog, the Format Output Buffer dialog is automatically opened and used to program the function.
FormatOutputBuffer Inputs
Syntax: FormatOutputBuffer(WithErr,Format,Value1,Value2,...)
Parameter | Description | ||
---|---|---|---|
Specifies whether the function returns a valid buffer, even if an input error has occurred.
|
|||
Specifies the Data Type and Element Size (in bytes) to automatically configure. Note:
|
|||
Specifies a variable-length list of values. |
FormatOutputBuffer Outputs
Returns |
A Buffer data structure containing the formatted data or #ERR if any of the input parameters are invalid. |