User data

Contour look-ahead request data

Description

Data to request the contour elements from the CNC

ST path

gpCh[channel_idx]^.contour_lookahead.request

ST name

HLI_CONTOUR_LOOKAHEAD_REQUEST

 

ST element

.start_position

Data type

LREAL

Description/special features

The meaning of the element is dependent on the mode of the contour look-ahead function used.

Mode 1: Index of the contour element in the marked area

Mode 2: Start distance from which the distance of the “length” parameter applies

ST element

.length

Data type

LREAL

Description/special features

A distinction is made whether mode 1 or 2 should be used depending on the entry of this element.

Value = 0 : Request contour element by index, mode 1

Value != 0: Request contour element by distance, mode 2 This mode indicates the distance up to which contour element is to be requested

Contour look-ahead status data

Description

Status data of the contour look-ahead control unit

ST Path

gpCh[channel_idx]^.contour_lookahead.state

ST name

HLI_INSERT_CMD_STATE

 

ST element

.max_dist_prog_start

Data type

LREAL

Description

Maximum look-ahead distance from program start in [0.1 µm].

ST element

.count_logged_blocks

Data type

UDINT

Description

Number of available contour elements that can be read out.

ST element

.f_log_is_active

Data type

BOOL

Description

This flag signals whether logging is still active for the marked area and all contour elements were read in.

TRUE : not all contour elements were read in

Contour look-ahead return data

Description

Contour information supplied by the CNC

ST Path

gpCh[channel_idx]^.contour_lookahead. response

ST name

HLI_CONTOUR_LOOKAHEAD_RESPONSE

 

ST Element

.block[i]

Data type

HLI_CONTOUR_LOOKAHEAD_BLOCK

Description

 

Structure HLI_CONTOUR_LOOKAHEAD_BLOCK

Description

Information on a contour element that was supplied to the PLC by the CNC

 

ST Element

.block_type

Description

Block type

0 – no element exists

1 - linear contour element

2 - circular contour element

3 - #CONTOUR LOOKAHEAD LOG ON

4 - #CONTOUR LOOKAHEAD LOG [PARAM]

5 - #CONTOUR LOOKAHEAD LOG OFF

6 – Polynomial contour element

ST Element

.block_number

Description

Programmed NC block number

ST Element

.block_count_r

Description

Unique NC block ID number Corresponds to the displayed number of block_count_r in the Status information of a channel.

ST Element

.start_position

Description

Start distance of the contour element from program start

ST Element

.length

Description

Length of the contour element of the programmed value of the PARAM.

ST Element

.programmed_radius

Description

Programmed radius of the circular element

ST Element

.compensated_radius

Description

Compensated radius of the circular element

ST Element

.circle_angle

Description

Swept angle of the circular element.

  • Clockwise [-2*pi,0)
  • Counter-clockwise (0,2*pi].

ST Element

.length_min

Description

With die sinking, the length of the contour element is displayed on the scaled contour (radius = R_MAX_SCALE).

ST Element

.tangent_variation

Description

End angle to the previous motion block. (0,pi)