Control commands for distance control

Commanding distance control

Description

This control unit can influence the distance control of the axis. This is dependent on whether the distance control function is selected in the axis parameters (see P-AXIS-00328).

Data type

MC_CONTROL_DISTANCE_CONTROL, see description of Control unit with usage check

Access

PLC reads state_r and writes command_w + enable_w

ST path

gpAx[axis_idx]^.lr_mc_control.distance_control

Flow control of commanded values

ST element

.command_semaphor_rw

Signal flow

PLC → CNC

Data type

BOOL

Peculiarities

Consumption data item

Access

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

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

Commanded values

ST element

.command_w

Signal flow

PLC → CNC

Data type

HLI_DISTANCE_CONTROL_COMMAND

Access

PLC writes

Distance control state

ST element

.state_r

Signal flow

CNC → PLC

Data type

HLI_DISTANCE_CONTROL_STATE

Access

PLC is reading

Redirection

ST element

.enable_w

Distance control state

Description

This entry reads the distance control state.

Signal flow

PLC → CNC

Data type

HLI_DISTANCE_CONTROL_STATE

ST Path

gpAx[axis_idx]^.lr_mc_control.distance_control.state_r

Access

PLC is reading

Elements of the data type

Element

.actual_state

Data type

UDINT

Access

PLC is reading

Value range/Description

See table: Distance control states and transitions

Element

.actual_position

Data type

DINT

Unit

0.1 µm or 0.0001°

Access

PLC reads

Description

This data item indicates the current actual position of the workpiece surface detected by the sensing controller.

Characteristics

This data item is entered only if distance control is activated in the axis parameters (see P-AXIS-00328).

Element

.actual_offset

Data type

DINT

Unit

0.1 µm or 0.0001°

Access

PLC reads

Description

This data item indicates the current position offset of distance control by which the axis was moved due to deviations between the actual workpiece surface and the specified position (SET_POS). The following applies in stationary state (constant workpiece surface and position offset completely run out): Position offset = SET_POS – actual_position

Characteristics

This data item is entered only if distance control is activated in the axis parameters (see P-AXIS-00328).

Command for distance control

Description

This entry commands distance control.

Signal flow

PLC → CNC

Data type

HLI_DISTANCE_CONTROL_COMMAND

ST Path

gpAx[axis_idx]^.lr_mc_control.distance_control.command_w

Access

PLC writes

Elements of the data type

ST element

.transition

Data type

UDINT

Value range/Description

See Table - Permissible transitions to command distance control

 

 

ST element

.position

Data type

DINT

Value range

[DINT_MIN, DINT_MAX]

Description

The meaning depends on the commanded transition:

HLI_DIST_CTRL_ON: Command position of the workpiece surface (SET_POS)

HLI_DIST_CTRL_REF: Reference position of the workpiece surface (REF_POS)

Cyclic command for distance control

Description

This entry specifies cyclic set values are specified (position of workpiece surface or set distance).

Signal flow

PLC → CNC

Data type

HLIDistanceControlCyclicCommand

ST Path

pAC[axis_idx]^.addr^.McControlLr_Data.MCControl_DistanceControl.CyclicCommand

Access

PLC writes

Elements of the data type

ST element

.D_Position

Data type

DINT

Value range

[DINT_MIN, DINT_MAX]

Description

The meaning depends on the commanded transition:

HLI_DIST_CTRL_ON: Command position of the workpiece surface (SET_POS)

HLI_DIST_CTRL_REF: Reference position of the workpiece surface (REF_POS)

 

 

ST element

.D_Distance

Data type

DINT

Value range

[DINT_MIN, DINT_MAX]

Description

Specification of the distance to workpiece surface after selection by transition HLI_DIST_CTRL_ON_CONST_DIST.