Global Instruction - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

Example:
USES
PLCMOD1
USES
EPRUPG
USES
RAMPLC
Example of file linking:
PLCMAIN.PLC
;main program
USES
SPINDEL.PLC
USES
TCHANGE.PLC
;code

3.19.2 GLOBAL Instruction

Up to 1000 local jump labels can be defined in each of the files linked with USES.
Modules defined in one file must be defined globally before they can be called from another file.
This is done with the GLOBAL instruction at the beginning of the file.
Jump labels can only be defined globally when they are defined as LBL later on in the program (and
not as KFIELD!).
Syntax:
GLOBAL
jump label
GLOBAL definitions must not be written in the main program. A single jump label cannot be
declared globally by more than one module, however a name that has been declared globally by file
A can be used again locally in file B.
In all, 1000 jump labels can be defined globally by all modules.
7-132
TNC 407/TNC 415/TNC 425
;module depends on MP4010 from RAM or EPROM
;
;
TCHANGE.PLC
;tool change
USES
PLCUPG.PLC
;code
PLCUPG.PLC
;general subprograms
;Code
;declaration of "jump label" beyond the file boundary
3 Commands
SPINDEL.PLC
;spindle control
USES
PLCUPG.PLC
;code
01.98

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents

Save PDF