FB_BA_FIFO04_XX

FB_BA_FIFO04_XX 1:

The function block FB_BA_FIFO04_XX is used to evaluate the FiFo memory from FB_BA_FIFO04. The inputs are linked according to the FIFO table to the corresponding outputs of the function block FB_BA_FIFO04_BOOL or FB_BA_FIFO04_REAL.

Example:

In the sample the array contains: 4,3,1,2,0,0,0,0. The following result is output in FB_BA_FIFO04_REAL:

fIn01 on output fVal04

fIn02 on output fVal03

fIn03 on output fVal01

fIn04 on output fVal02

FB_BA_FIFO04_XX 2: Inputs

VAR_INPUT
  aFIFO        : Array [1..4] OF UDINT;
  fIn01…fIn04  : REAL;
END_VAR

Name

Type

Description

aFIFO

ARRAY OF UDINT

Contains the assignment table with a maximum of eight values. The first value indicates where the first input was copied to, the second value where the second input was copied to and so on. No assignment takes place with "0".

fIn01…fIn04

REAL

Setpoints to be linked.

FB_BA_FIFO04_XX 3: Outputs

VAR_OUTPUT
  fVal01…fVal04   : REAL;
END_VAR

Name

Type

Description

fVal01…fVal04

REAL

Actuator setpoint, input value linked according to FIFO table.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0