FiFoGetDimension

FiFoGetDimension 1:

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

Interface

VAR_INPUT
    iChannelId  : UDINT;
    bExecute    : BOOL;
    tTimeout    : TIME;
END_VAR
VAR_OUTPUT
    bBusy        : BOOL;
    bErr         : BOOL;
    iErrId       : UDINT;
    iNoOfAxes    : UDINT;
    iNoOfFifoEntries : UDINT;
END_VAR

iChannelId: Channel ID of the FIFO channel.

bExecute: Edge-triggered signal for execution of the command.

tTimeout: ADS timeout (about 1 second).

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

bErr: Becomes TRUE if an error occurs while executing the command.

bErrId: Error number (ADS or NC error number).

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

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