Commanding axis couplings

Commanding axis couplings

Description

This control unit defines axis couplings for each axis. The motion of the axis can be influenced additionally or exclusively by the motion of other axes. Further details are contained in the documentation FCT-A9.

Data type

MC_CONTROL_AXIS_COUPLING, see description Control Unit

Access

PLC reads state_r and writes command_w + enable_w

ST path

gpAx[axis_idx]^.lr_mc_control.axis_coupling

Commanded values

ST Element

.command_w

Signal flow

PLC → CNC

Data type

HLI_COMMAND_AXIS_COUPLING

Access

PLC writes

Return value

ST Element

.state_r

Signal flow

CNC → PLC

Data type

HLI_STATE_AXIS_COUPLING

Access

PLC reads

Redirection

ST Element

.enable_w

Axis couplings, state

Description

Indicates whether the axis couplings are active for this axis and if so, which ones.

Signal flow

CNC → PLC

Data type

HLI_STATE_AXIS_COUPLING

ST path

gpAx[axis_idx]^.lr_mc_control.axis_coupling.state_r

Access

PLC reads

Elements of the data type

Element

.desc[ ]

Data type

ARRAY[0..HLI_AX_COUPLING_MAXIDX] OF HLI_AXIS_COUPLING_DESC

Access

PLC reads

 

 

Element

.active_r

Data type

BOOL

Access

PLC reads

Axis couplings, command

Description

This entry defines a coupling all coupling specification for the axis. The maximum possible number of coupling specifications is defined by the constant HLI_AX_COUPLING_MAXIDX + 1. Further details on the definition of coupling specifications are contained in the documentation @@[FCT-A9].

Signal flow

PLC → CNC

Data type

HLI_COMMAND_AXIS_COUPLING

ST path

gpAx[axis_idx]^.lr_mc_control.axis_coupling.command_w

Access

PLC writes

Elements of the data type

Element

.desc[ ]

Data type

ARRAY[0..HLI_AX_COUPLING_MAXIDX] OF HLI_AXIS_COUPLING_DESC

Access

PLC writes

 

 

Element

.semaphor_rw

Data type

BOOL

Special features

Consumption data item

Access

CNC accepts the commanded values when this element has the value TRUE. After acceptance, the CNC sets this value to FALSE.

The PLC sets this element to TRUE when the commanded values are released for acceptance by the CNC. The commanded values can only be updated by the PLC if this element has the value FALSE.

Description of an axis coupling specification

Description

This entry defines a coupling all coupling specification for the axis. The maximum number of definable coupling specifications is defined in the constant HLI_AXIS_COUPLING_COUNT. Further details on the definition of the coupling specifications are contained in the documentation [FCT-A9].

Signal flow

PLC → CNC

ST Path

gpAx[axis_idx]^.lr_mc_control.axis_coupling.command_w.desc[idx]

gpAx[axis_idx]^.lr_mc_control.axis_coupling.state_r.desc[idx]

Data type

HLI_AXIS_COUPLING_DESC

Access

Command for axis coupling: PLC writes

Status of axis coupling: PLC reads

Elements of the data type

ST Element

.mode

Data type

UINT

Value range

Constant

Value

Description

HLI_AXIS_COUPLING_INACTIVE

0

Coupling is not active.

HLI_AXIS_COUPLING_ZERO

1

Coupling factor is zero, used to deactivate an axis.

HLI_AXIS_COUPLING_DIRECT

2

Coupling factor is 1.

HLI_AXIS_COUPLING_MIRROR

3

Coupling factor is -1.

HLI_AXIS_COUPLING_FRACT

4

Coupling factor is a fraction defined by .desc[idx].FractNumerator / .desc[idx].FractDenominator.

 

 

 

ST Element

.ax_nr

Data type

UINT

Description

Logical axis number of the source axis (the influencing axis). If the axis is to be moved by the NC program when the coupling is active, a coupling specification must be defined with the logical axis number of the axis and the coupling mode HLI_AXIS_COUPLING_DIRECT.

 

 

ST Element

.fract_num

Data type

INT

Value range

The permissible value range is [-32768, 32767]. A value of 0 in this element has the same effect as the coupling mode HLI_AXIS_COUPLING_INACTIVE.

Description

Numerator of the coupling factor if the coupling mode is specified as HLI_AXIS_COUPLING_FRACT. This element is not evaluated for all other coupling modes.

The maximum permissible value for the coupling factor desc[idx].fract_num / .desc[idx].fract_denom is defined by the constant HLI_AXIS_COUPLING_FACT_MAX. If this value is exceeded, the error message P-ERR-70397 is issued.

 

 

ST Element

.fract_denom

Data type

INT

Value range

The permissible range is [-32768, 32767] excluding the 0. A value of 0 in this element results in output of the error message P-ERR-70396.

Description

Denominator of the coupling factor if the coupling mode is specified as HLI_AXIS_COUPLING_FRACT. This element is not evaluated for all other coupling modes.

The maximum permissible value for the coupling factor .desc[idx].fract_num / .desc[idx].fract_denom is defined by the constant HLI_AXIS_COUPLING_FACT_MAX. If this value is exceeded, the error message P-ERR-70397 is issued.