Variables, 26 pr ogr amming v a ri ables – HEIDENHAIN MANUALplus 4110 User Manual
Page 397

HEIDENHAIN MANUALplus 4110
397
6.26 Pr
ogr
amming V
a
ri
ables
# variables
MANUALplus uses value ranges to define the scope of variables:
#0 .. #45 global variables
Global variables are retained after the program has been completed
and can be processed by the following NC program.
#46 .. #50 variables only for expert programs
Do not use these variables in your NC program.
#256 .. #285 local variables
These variables are effective only within a subprogram.
Reading-in parameter values
Syntax:#1 = PARA(x,y,z)
Information contained in variables
The following variable information on tool data and your NC program
can be read out (see the tables to the right and on the next page).
Example: "# variables"
. . .
N.. #1=PARA(1,7,2) [reads "machine
dimension 1 Z“ in variable #1 ]
N.. . . .
N.. #1=#1+1
N.. G1 X#1
N.. G1 X(SQRT(3*(SIN(30)))
N.. #1=(ABS(#2+0.5))
. . .
# variable
NC information
#768, #770
Last programmed position X (radius
value), Z
#771
Last programmed position C [°]
#774
TRC/MCRC status
40: G40 active; 41: G41 active; 42:
G42 active
#776
Active wear compensation (G148)
0: DX, DZ; 1: DS, DZ; 2: DX, DS
#778
Unit of measure: 0=metric; 1=inch
#785, #786
Distance between tool tip and slide
zero point Z, X
#787
Reference diameter for lateral surface
machining (G120)
#791..#792
G57 oversizes X, Z
#793
G58 oversize P
#794..#795
Cutting width in X, Z by which the tool
reference point is shifted with G150/
G151
#796
Number of spindle for which the last
feed rate was programmed
#797
Number of spindle for which the last
speed was programmed
x = Parameter group
1: Machine parameters
2: Control parameters
3: Setup parameters
4: Machining parameters
5: PLC parameters
y = Parameter number
z = Sub-parameter number
Positions and dimensions are always indicated in metric
form. This also applies when an NC program is run in
inches.