MC_AddAxisToGrp

The function block adds an axis to an axis group. This is an administrative FB, i.e. no motion job is generated.

The added axis is identified within the axis group by a unique name and an index. The two values are transferred to the FB by the data structure IDENT_IN_GROUP_REF (see Section Axis group reference AXES_GROUP_REF).

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

AxesGroup

AXES_GROUP_REF

Axis group reference

Axis

AXIS_REF

Axis reference

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

The axis is added to the axis group on a rising edge.

IdentInGroup

IDENT_IN_GROUP_REF

Identification of the axis in the axis group.

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

TRUE indicates that axis was added to the axis group.

Busy

BOOL

TRUE indicates that the FB is executing a job.

Error

BOOL

TRUE indicates that an error occurred.

ErrorID

WORD

Error code

Notice

notice

The following conditions must be met to permit this function block to work correctly when the axis reference at the “Axis” input is an axis:

The spindle axis must be notified to the NC channel by specifying it in the channel parameter list (see [FCT-S1//NC spindle]).

The identifier to address the spindle in the channel and defined by the channel parameter P-CHAN-00007 must be formed from the letter “S” followed by the logical axis number of the spindle (P-CHAN-00036). For example, if P-CHAN-00036 = 2, then S2 must be specified for P-CHAN-00007.