Y_GP_GetAxisCount
This function block returns the number of axes that make up the group.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | AxesGroup | AXES_GROUP_REF | A logical reference to a group of axes, which contains several additional substructures pertaining to the group. | |
| VAR_OUTPUT | ||||
| B | Done | BOOL | Indicates that the function is operating normally and the outputs of the function are valid. | |
| B | Error | BOOL | Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| E | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
| V | AxisCount | INT | Number of axes that make up the group. | |
Notes
- The AxisCount output does not include additions like prime axes, tangent axes and extruders.
Error Description
See the Function Block ErrorID List.
Example
Example with a group with 3 axes in its configuration, returning a value of 3 for AxisCount.