Uses Instruction (Uses) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.14.1 USES INSTRUCTION (USES)

December 2001
Syntax:
USES <file name>
Operands:
None
Action:
You can use the USES instruction in the main program to link other files. Files
that are linked with USES can themselves also use the instruction to link
further files. It is also permissible to use the USES instruction to link a single
file to several other files. The code for this file is generated only once. The
USES instruction requires a file name as an argument. The USES instruction
only links a file; it does not run the file's program code. The USES instruction
cannot be compared with a CM instruction. The linked files must therefore
contain individual modules that you can then call with the CM instruction.
Example:
USES PLCMOD1
USES EPRUPG
USES RAMPLC
Linking of files:
Function
Main program
Link the file for spindle control.
Link the file for tool change.
Program code
Function
File for spindle control
Integrate file with general subroutines.
Program code
Function
File for tool change
Integrate file with general subroutines.
Program code
Function
File with general subroutines
Program code
Linking Files
STL
PLCMAIN.PLC
USES SPINDEL.PLC
USES TCHANGE.PLC
STL
SPINDEL.PLC
USES PLCUPG.PLC
STL
TCHANGE.PLC
USES PLCUPG.PLC
STL
PLCUPG.PLC
7 – 175

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents