PLC interface for display data

Currently covered path in the NC program (PCS)

Description

Reads the current distance covered in the NC program since program start or since the last # DISTANCE PROG START CLEAR NC command. The calculation is based on the current position in the current NC block.

Signal flow

CNC → PLC

ST path

gpCh[channel_idx]^.bahn_state.dist_prog_start

Data type

UDINT (* LREAL)

Unit

0.1 µm

Access

PLC is reading

Special features

* As of CNC Build V3.1.3104.01 the data element is provided in LREAL forma.

Line counter, NC program

Description

The datum indicates the NC program line which is the source of the command just processed by the interpolator.

The value is derived from the number of NC program lines which the decoder has read since the NC program started. All the lines read the decoder are counted, i.e. repeatedly read lines, empty and comment lines. All commands to the interpolator resulting from decoding a NC program line are assigned to the associated line counter.

Signal flow

CNC → PLC

ST path

gpCh[channel_idx]^.bahn_state.block_count_r

Data type

UDINT

Access

PLC is reading

Numerator of the real-time loop

Description

The datum shows the number of passes of the real-time loop in which the current machining is located.

If a loop transition is in a forward direction, the datum is incremented by 1 and it is decremented in a backward direction.

If more loop passes were processed in the backward direction, a negative numeral is displayed.

Signal flow

CNC → PLC

ST path

gpCh[channel_idx]^.bahn_state.rt_loop_count_r

Data type

DINT

Access

PLC reads

Special feature

Date available as of CNC Build V3.1.3105.01 and higher

Real-time loop active

Description

The datum indicates whether current machining is located in a #RT WHILE - #RT ENDWHILE sequence.

Signal flow

CNC → PLC

ST path

gpCh[channel_idx]^.bahn_state.inside_rt_loop_r

Data type

BOOL

Value range

[TRUE = Machining within #RT WHILE #RT ENDWHILE,
FALSE]

Access

PLC is reading

Special feature

Date available as of CNC Build V3.1.3105.01 and higher