EasyManuals Logo

HEIDENHAIN TNC 426 PB/M User Manual

HEIDENHAIN TNC 426 PB/M
1135 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1025 background imageLoading...
Page #1025 background image
7 176 HEIDENHAIN Technical Manual TNC 426, TNC 430
7.14.2 GLOBAL INSTRUCTION (GLOBAL)
Syntax: GLOBAL <label, declaration beyond the file boundary>
Operands: None
Action:
Up to 1000 local labels are permitted in every file linked with USES. To enable
a module that was defined in a file to be called from another file, you must
declare the module to be global. This is done by entering the GLOBAL
instruction at the beginning of the file. You can set labels globally only if they
are defined with LBL (and not with KFIELD!) later on in the program.
The main program must not contain any GLOBAL definitions. A single label
cannot be declared global by more than one module. However, a name that is
declared global in file A can be used again locally in file B. Altogether,
1000 labels may be as defined as global in all modules.
7.14.3 EXTERN INSTRUCTION (USES)
Syntax: EXTERN <label, a module from another file can now be called
with a CM command>
Operands: None
Action:
To enable a label in one file to access modules that other files have declared
as GLOBAL, you must declare the label with EXTERN. You must write the
EXTERN instruction at the beginning of the file. In the program code you can
then jump to this label with the commands CM, CMT and CMF.
The following functions are not permitted with external labels:
n JP, JPF, JPT
n Access to a constants field
n Linking a CM instruction in a CASE branch
The name of the external label cannot be used again as a local label in the
same file. Every external label reduces the number of local labels that remain
available.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HEIDENHAIN TNC 426 PB/M and is the answer not in the manual?

HEIDENHAIN TNC 426 PB/M Specifications

General IconGeneral
BrandHEIDENHAIN
ModelTNC 426 PB/M
CategoryControl Unit
LanguageEnglish

Related product manuals