Customized Macros - HEIDENHAIN TNC 151 Q Mounting Instructions

Contouring control
Table of Contents

Advertisement

9.
Customized
macros (User cycles)
Customizled macros are NC-programs in which variable program data are programmed
via Q-parameters.
Programming
of customized
macros within
the NC-program
memory takes place via program numbers from
99999968
to 99999999.
A maximum
of 100 different
customer-specific
dialogues for cycle designation
and entry parameters can be stored within
the control.
Standard cycles can be executed within customized
macros. Since a standard cycle requires a CYCL-CALL,
the customized
macro is called up via CYCL DEF.
User cycles (customized
macros) can be called-up either via CYCL CALL or already with the cycle definition
CYCL DEF. This is determined
during compilation
of the user cycles.
For definition
of the necessary plain language dialogues two possibilities
are offered by the TNC:
"DLG-DEF"
Call-up of user cycle via CYCL DEF
"DLG-CALL"
Call-up of user cycle via CYCL CALL
After dialogue initiation
for definition
of plain language dialogues with the
I:",:
and
following
dialogue question is displayed:
q
-keys, the
DLG-DEF
= ENT/DLG-CALL
= NO ENT
NO
By pressing the key
q
or
q
, the DLG-DEF-
or DLG-CALL-block
is progIrammed.
-
Assignment of a value of the customized
macros is made via
cl %?
as per the permanently
stored
HEI DEN HAI N-cycles. When paging, the customized
macros are displayed by the cycle numbers 68 to
99.
Since both "DLG-DEF"
and "DLG-CALL"
customized
macros can be contained
in a main program,
Q-parameters for the dialogues must be stored in separate Q-address locations.
Begin Q-parameter for dialogue
263
Entry value is the Q-number for the first dialogue
DLG-DEF-block.
of the DLG-DEF
customized
macro cycle.
Entry parameters for the "DLG-CALL"-block
are assigned to program parameters 01 to 014. With the
"DLG-DEF"-block
the initial entry parameter is assigned to the program parameter which has been
established via machine parameter 263.
Example:
If the entry value in machine parameter 263 = 50 the cycle parameters are assigned to the program
parameters as follows:
first cycle parameter = Q51
second cycle parameter = 052
fourteenth
cycle parameter = 064

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents