Programming instructions

NC Programming 17VRS Appendix
14-13
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
14.5 File Header
The editors that are available in the user interface are not the only means
that may be used for creating an NC program. Any other external text
editor may as well be used for that purpose.
The NC programs that are created with an external text editor must be
provided with a file header. This enables them to be read in the corre-
sponding file directories, using the „Data import“ function. The data
header consists of the following elements:
Example
%NPG:0:01:1:001
!01.00
#Parameter set 1 1670127.04.9719:05:04
$Comment ...
$Comment ...
$Comment ...
$Comment ...
*Progr. No. 1
%NPG
The lines of the file header have the following meaning:
Code Meaning Range
%NPG Identifies the file as an NC
program
-
:0 Device number 0 - 15
:01 NC package number 01 - 99
:1 Process number 0 - 6
:001 Directory number 001 - 099
!01.00 Version -
#Parameter set 1 Parameter set under which the
NC program was created
-
$Comment ... 4 lines of text max. 78 characters
per line
*Progr. No. 1 Program designator max. 32 characters
%NPG Marks the end of the file header -
Fig. 14-1: File header of an NC program
A complete file header is included in the output when an NC program is
exported to an internal or external data carrier. Merely a „minimum file
header“ is necessary for import. Such a file header consists of the following
character strings:
%NPG:0:00:0:0
!01.00
#
$
*
%NPG
If a program designator is expected to appear in the NC program directory
after import, that designator must be entered at '*'. When an NC program
is imported, the file header, with the exception of the program designator
and the comment lines, is overwritten with the current values of device
number, NC package number, process number, directory number, and
active parameter set.
Data import
Minimum file header