Definition of file names (#FILE NAME)
The command #FILE NAME defines file names in NC program file. The file names are used by specific NC functions, e.g. to create a report file or to call a NC program.
Syntax : |
#FILE NAME [ <file_id>="<filename>" { <file_id>="<filename>" } ] |
<file_id> | MSG: Name of the report file for #MSG SAVE. Default name is "message.txt". M6: Name of the global subroutine for implicit program call via M6 in the NC program. The name is valid until M30. M6 is not treated as an M function any more. The default name is set in P-CHAN-00118. M6 is always executed as the last action at block end. D: Name of the global subroutine for implicit program call by a D word in the NC program. The name is valid until M30. The default name is set in P-CHAN-00429. The subroutine call is always executed as the last action at block end. G80 – G89: Name of the global subroutines for implicit program calls at G80 –G89 in the NC program. The names are valid until M30. Default names are set in P-CHAN-00160 - P-CHAN-00169. G80-G89 is always executed as the last action at block end. G800- G819 or G800- G839**: Names of the global subroutines in case of additional implicit program calls via G800 – G819 in the NC program. The names are valid until M30. Default names are set in P-CHAN-00187. A G800-G819** is always executed as the last action at block end. ** Extended to 40 calls (G800 – G839) as of V3.1.3079.23 |
The equals sign (=) is optional.
The file names can be defined or changed in the NC program with #FILE NAME at any time.
Filenames are set to their default names at RESET and at NC program start.
Programming Example
Definition of filenames