EasyManua.ls Logo

HEIDENHAIN MANUALPLUS 620 - 8.38 USES Statement (USES)

HEIDENHAIN MANUALPLUS 620
1818 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
Loading...
1750 HEIDENHAIN Technical Manual MANUALplus 620
8.38 USES Statement (USES)
Syntax: USES <file name>
Operands: None
Action:
You can use the USES statement in the main program to link other files. Files
that are linked with USES can themselves also use the statement to link
further files. It is also permissible to use the USES statement to link a single
file to several other files. The code for this file is generated only once. The
USES statement requires a file name as an argument. The USES statement
only links a file; it does not run the file's program code. The USES statement
cannot be compared with a CM statement. The linked files must therefore
contain individual modules that you can then call with the CM statement.
Example:
USES PLCMOD1
USES EPRUPG
USES RAMPLC
Linking of files:
Function STL
Main program PLCMAIN.PLC
Link the file for spindle control. USES SPINDLE.PLC
Link the file for tool change. USES TCHANGE.PLC
Program code
Function STL
File for spindle control SPINDLE.PLC
Integrate file with general subroutines. USES PLCUPG.PLC
Program code
Function STL
File for tool change TCHANGE.PLC
Integrate file with general subroutines. USES PLCUPG.PLC
Program code
Function STL
File with general subroutines PLCUPG.PLC
Program code

Table of Contents

Other manuals for HEIDENHAIN MANUALPLUS 620

Related product manuals