FiFoGetDimension

FiFoGetDimension 1:

The function block FiFoGetDimension determines the dimensioning, i.e. the number of the axes and the maximum number of FIFO entries in a FIFO channel.

FiFoGetDimension 2: Inputs

VAR_INPUT
    iChannelId  : UDINT;
    bExecute    : BOOL;
    tTimeout    : TIME;
END_VAR

Name

Type

Description

iChannelId

UDINT

Channel ID of the FIFO channel

bExecute

BOOL

Edge-triggered signal for execution of the command

tTimeout

TIME

ADS timeout (about 1 second)

FiFoGetDimension 3: Outputs

VAR_OUTPUT
    bBusy             : BOOL;
    bErr              : BOOL;
    iErrId            : UDINT;
    iNoOfAxes         : UDINT;
    iNoOfFifoEntries  : UDINT;
END_VAR

Name

Type

Description

bBusy         

BOOL

Becomes TRUE with a rising edge at bExecute, and remains TRUE until the block has executed the command.

bErr          

BOOL

Becomes TRUE if an error occurs while executing the command.

iErrId        

UDINT

Error number (ADS or NC error number)

iNoOfAxes     

UDINT

Number of axes for which the FIFO channel has been parameterised.

iNoOfFifoEntries  

UDINT

Number of FIFO entries for which the FIFO channel has been parameterised.

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT V3.1.0

PC or CX (x86 or x64)

Tc2_NcFifoAxes