beautypg.com

Reading the current nc information, 31 pr ogr amming v a ri ables – HEIDENHAIN SW 54843x-03 DIN Programming User Manual

Page 414

background image

414

DIN Programming

4.31 Pr

ogr

amming v

a

ri

ables

Reading the current NC information

Use the following syntax to read NC information that was
programmed with G codes.

Access to current NC information

Syntax:

#nx(select)

x = G-code number

select = designates the information
to be read

Status of TRC

#n40(G)

TRC/MCRC status:

40: G40 active

41: G41 active

42: G42 active

Active wear compensation

#n148(O)

Active wear compensation (G148):

0: DX, DZ

1: DS, DZ

2: DX, DS

Active working plane

#n18(G)

Active working plane:

17: XY plane (front or rear face)

18: XZ plane (turning view)

19: YZ plane (plan view/surface)

Pocket data of entered tool

#n601(n)

Output in the format "SMppp":

S: Tool edge number

M: Magazine number

ppp: Pocket number

Identification codes for NC information

#n0(X)

Last programmed position X

#n0(Y)

Last programmed position Y

#n0(Z)

Last programmed position Z

#n0(A)

Last programmed position A

#n0(B)

Last programmed position B

#n0(C)

Last programmed position C

#n0(U)

Last programmed position U

#n0(V)

Last programmed position V

#n0(W)

Last programmed position W

#n0(CW)

Tool insert angle (0 or 180 degrees)

#n40(G)

Status of TRC (see table at right)

#n148(O)

Active wear compensation (see table at right)

#n18(G)

Active working plane (see table at right)

#n120(X)

Reference diameter X for calculating CY

#n52(G)

Oversize G52_Geo taken into account 0=no / 1=yes

#n57(X)

Oversize in X

#n57(Z)

Oversize in Z

#n58(P)

Equidistant oversize

#n150(X)

Cutting width shifted in X by G150/G151

#n150(Z)

Cutting width shifted in Z by G150/G151

#n95(G)

Programmed feed type (G93/G94/G95)

#n95(Q)

Spindle number of the last programmed feed rate

#n95(F)

Last programmed feed rate

#n97(G)

Programmed speed type (G96/G97)

#n97(Q)

Spindle number of the last programmed speed type

#n97(S)

Last programmed speed

This manual is related to the following products: