CfgBuild3DGroup

CfgBuild3DGroup 1:

This block configures a 3D group with up to 3 PTP axes (X, Y and Z). The IDs of the PTP axes are applied at inputs nXAxisId, nYAxisId and nZAxisId. 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;
tTimeOut       : TIME;
END_VAR
VAR_OUTPUT
bBusy          : BOOL;
bErr           : BOOL;
nErrId         : UDINT;
END_VAR