CfgAddAxisToGroup

CfgAddAxisToGroup 1:

The CfgAddAxisToGroup block configures a single axis at a particular location within an existing group (PTP, 3D, FIFO). The ID of the target group is specified at the nGroupId input. Die ID of the axis that is to be configured is passed to the nAxisId input. nIndex contains the location of the axis within the group. nIndex can assume values from 0..n-1. Depending on the type of group, n has the following significance:

Interface

VAR_INPUT
bExecute       : BOOL;
nGroupId       : UDINT;
nAxisId        : UDINT;
nIndex         : UDINT;
tTimeOut       : TIME;
END_VAR
VAR_OUTPUT
bBusy          : BOOL;
bErr           : BOOL;
nErrId         : UDINT;
END_VAR

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.