CfgReadExt3DAxisIds
TwinCAT Version 2.8, Build 723 and higher
from TcNcCfg.lib version 3.2
The function block CfgReadExt3DAxisIds reads the axis configuration of the extended 3D group. The ID of the 3D group is supplied to input nGroupId. An instance of the structure NCI_EXT3DGROUP is applied at input & output stExt3dGroup. The axis IDs of the current interpolation group are entered in this structure.
The command is executed with a rising edge at the input bExecute.
The bBusy output remains TRUE until the block has executed a command, although only for as long as the time specified at the tTimeOut input. While bBusy = TRUE, no new instruction will be accepted at the inputs.
The output bErr goes TRUE if an error occurs as the command is being executed. The command-specific error code is contained in nErrId. The outputs are reset by carrying out a command at the inputs.
Interface
VAR_INPUT
bExecute : BOOL;
nGroupId : UDINT;
tTimeOut : TIME;
END_VAR
VAR_IN_OUT
stExt3dGroup : NCI_EXT3DGROUP;
END_VAR
VAR_OUTPUT
bBusy : BOOL;
bErr : BOOL;
nErrId : UDINT;
END_VAR
TYPE NCI_EXT3DGROUP :
STRUCT
nXAxisId : UDINT;
nYAxisId : UDINT;
nZAxisId : UDINT;
nQ1AxisId : UDINT;
nQ2AxisId : UDINT;
nQ3AxisId : UDINT;
nQ4AxisId : UDINT;
nQ5AxisId : UDINT;
END_STRUCT
END_TYPE