LF: Fill Buffer

The Fill Buffer function writes a value into a buffer, starting at a defined offset, and repeats the operation for a specified number of iterations.

The operation can either insert the data into the buffer or overwrite existing buffer contents.

 

 

 

Parameter Name

Purpose

A

Buffer (Destination)

The destination buffer into which the data is written.

B

Offset in Buffer

Determines the start byte, in bytes, within the destination buffer.
Enter a constant value or link a Data Tag.

C

Operation 

Determines how the data is written:

  • Insert Data – Inserts the data at the specified offset and shifts existing data forward.

  • Overwrite Data – Writes the data at the specified offset, replacing existing data.

D

Value to Use

Specifies the value written to the buffer.
Enter a constant value or link a Data Tag.

E

Number of Times to Repeat Operation

Defines how many times the specified value is written consecutively to the buffer.