HEIDENHAIN TNC 306 Technical Manual User Manual
Page 459

9-4
TNC 406/TNC 306
1 Creating user cycles
3/97
In the NC program, when defining the user cycles created with dialog support, Q parameters are
assigned specified input values. The Q-parameter numbers are automatically generated by the TNC.
In order to prevent the same Q-parameter numbers from being generated for "DLG-DEF" cycles and
"DLG-CALL" cycles, MP7250 can be used to specify the difference between Q-parameter numbers
for "DLG-CALL" and "DLG-DEF" blocks.
In the case of a "DLG-CALL" block, the input values of the user cycles are assigned in ascending
order to the Q parameters Q1 to Q14. For the "DLG-DEF" block, the input values are assigned to Q
parameters Q[1 + MP7250] to Q[14 + MP7250].
Example for MP7250 = 30
Parameter number in user cycle with
DLG-CALL
DLG-DEF
Cycle parameter 1
Q1
Q31
Cycle parameter 2
Q2
Q32
.
.
.
.
.
.
.
.
.
Cycle parameter 14
Q14
Q44
MP7251 determines whether the values of the Q parameters which are changed in the user cycles
by calculation or assignment are transferred globally to the called program (e.g. in the case of
"nesting" of user cycles).
Machine parameter MP7251 defines the range of Q parameters from Q[100 – MP7251] to Q99 as
"global".
The effect of global and local Q parameters may be shown by reference to following example:
MP7251 = 40
Q [100 – 40] = Q60 =>
Q60 to Q99 are global Q parameters and
Q1 to Q59 are local Q parameters
MP7251 = 40
MP7251 < 40
Q1
Q60 = global Q1
Q60 = local
BEGIN PGM 100 MM
FN0: Q1 = +1
+1
+0
+1
+0
FN0: Q60 = +5
+1
+5
+1
+5
CYCL DEF 69.0 USERCYCLE 1
+1
+5
+1
+5
CYCL DEF 69.1 Q1 = +2
+2
+5
+2
+5
BEGIN PGM 99999969 MM
DLG–DEF 0/32
FN1: Q1 = Q1 + 10
+12
+5
+12
+5
FN1: Q60 = Q60 + 10
+12
+15
+12
+15
END PGM 99999969 MM
STOP
+2
+15
+2
+5
END PGM 100 MM