MCV_GrpDisplayAxes

This function block displays which axes currently belong to which axis group. Various items of information is displayed for the axes in the axis group. The information index corresponds to the index of the axis in each context, i.e. axes in the axis configuration or an axis group.

Block diagram

FB parameters

VAR_IN_OUT

 

Variable name

Data type

Description

 

AxesGroup

AXES_GROUP_REF

Axis group reference

 

VAR_INPUT

Variable name

Data type

Description

Enable

BOOL

As long as the input is TRUE, the function displays the axes included in the axis group.

CoordSystem

MC_COORDINATE_SYSTEM

Defines the display of information about the axes in an axis group:

 

mcACS = 0:

Information about the axes configured in the control system belonging to the axis group applied to the AxesGroup input.

 

mcPCS = 2:

Information about the axes belonging to an axis group applied to the AxesGroup input as viewed by an NC channel.

 

The input is defaulted to the value mcPCS.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

TRUE indicates that the data at the "AxisLogNr" and "AxisName" outputs are valid and show the composition of the axis group.

Busy

BOOL

TRUE indicates that the FB is executing a job.

AxisLogNr

ARRAY [0..HLI_CH_AX_MAXIDX] OF UINT

Array of logical axis numbers (see P-AXIS-00016) of the axes included in the axis group.

AxisName

ARRAY [0..HLI_CH_AX_MAXIDX] OF STRING(HLI_ACHS_NAME_LAENGE)

Array of axis names of the axes included in the axis group.

AxisType

ARRAY [0..HLI_CH_AX_MAXIDX] OF UINT

Array containing the axis type of an axis,.

For value range, see P-AXIS-00018

 

If CoordSystem = mcACS, the value for the axis type configured in the axis list is displayed.

 

If CoordSystem = mcPCS, the axis type activated by programming in the NC program is displayed.

RefIdx

ARRAY [0..HLI_CH_AX_MAXIDX] OF DINT

Array representing the sequence of axes in each context and containing the logical axis number of each axis. Valid axis numbers have a value > 0.

 

If CoordSystem = mcACS, the context is all axes configured for a control application. The array contains the valid axis number in consecutive order (with no gaps). The axis number 0 indicates that the axis was not configured.

 

If CoordSystem = mcPCS, , this array displays the logical axis numbers of all axes in the axis group. The sequence of axis numbers is dependent on the classification of the axes in the axis group (e.g. by programming), i.e. valid axis numbers are not necessarily consecutive (with gaps).

NrAxes

UINT

Number of axes currently belonging to the axis group.

 

If CoordSystem = mcACS, gantry slave axes are included in the count if the gantry master axis is included in the axis group.

 

If CoordSystem = mcPCS, , gantry slave axes are not included in the count.

Error

BOOL

TRUE indicates that an error occurred.

ErrorID

WORD

Error identifier