PLC interface

The following data is available on the HLI to use the function:

  1. The current distance from program start on the path corrected for tool radius compensation is displayed on the channel-specific HLI area (see bahn_state.dist_prog_start_high). This distance can be used to request future contours in Mode 2.
  2. The contour look-ahead control unit is provided to request and read out contour elements. The PLC requests information with increasing semaphore. The CNC supplies the information and deletes the semaphore afterwards.

Handshake - contour look-ahead control unit
Handshake - contour look-ahead control unit

Contour look-ahead

Description

The PLC can use this control unit to request and read out information on contour elements from the CNC. The PLC can use this information to plan the look-ahead process.

Data type

HLI_CONTOUR_LOOKAHEAD

ST path

gpCh[channel_idx]^.contour_lookahead

Command data

ST Element

.request

Data type

HLI_CONTOUR_LOOKAHEAD_REQUEST

Access

PLC writes request

Return data

ST element

.response

Data type

HLI_CONTOUR_LOOKAHEAD_RESPONSE

Access

PLC reads

Flow control of commanded value

ST element

.semaphor_rw

Data type

BOOL

Value range

[TRUE, FALSE]

Special features

Consumption data item

Access

TRUE : PLC triggers on new request

FALSE : CNC has read new request

Status value

ST Element

.state

Data type

HLI_CONTOUR_LOOKAHEAD_STATE