IO_SET_AI_BUFFER (FB)

Description

This function block defines the ring buffer of analog measurements for analog input channel

 

Inputs

Input variable name

Data type

Range

Description

i_CH

WORD

 

Channel [0..XX]

i_Data

POINTER TO WORD

 

Address of buffer (use ADR operator), use even pointers

for word alignment

i_Length

WORD

 

Buffer length in bytes (use SIZEOF operator).

The length must be dividable by 2.

Outputs

Output variable name

Data type

Range

Description

o_Write

WORD

 

Position of the last value in ring buffer

 

 

 

 

Source file Topic000506.htm

Last updated 4-Sep-2025