CfgBuildExt3DGroup

from TwinCAT 2.8

from TcNcCfg.lib version 3.1

CfgBuildExt3DGroup 1:

This block configures a 3D group with up to 3 path axes (X, Y and Z). Additionally, up to 5 auxiliary axes (Q1..Q5) can be configured. The axis IDs of the PTP axes that are to be included in the interpolation group are applied at the inputs nXAxisId to nQ5AxisId.

The assignment of the auxiliary axes must start with nQ1AxisId. No gaps between auxiliary axes are permitted. For example, if nQ3AxisId is to be assigned, nQ2AxisId must also be assigned a valid Axis ID.

nGroupId contains the ID of the 3D group. The command is executed at a rising edge at 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;
nXAxisId       : UDINT;
nYAxisId       : UDINT;
nZAxisId       : UDINT;
nQ1AxisId      : UDINT;
nQ2AxisId      : UDINT;
nQ3AxisId      : UDINT;
nQ4AxisId      : UDINT;
nQ5AxisId      : UDINT;
tTimeOut       : TIME;
END_VAR
VAR_OUTPUT
bBusy          : BOOL;
bErr           : BOOL;
nErrId         : UDINT;
END_VAR