
B-64014EN/03 SPECIFICATION 2.DATA SERVER FUNCTIONS
- 21 -
2.5 NC PROGRAM FORMAT
NC programs prepared on the host computer must have the following
format:
% TITLE ;
O0001(COMMENT) ;
⋅
⋅
⋅
M30 ;
%
An NC program starts with a start file mark (%). In the subsequent
part (leader section) until EOB (;, program start) is encountered, a
comment such as a title can be inserted as necessary.
At the beginning of the program section, be sure to specify an O
number or specify a file name consisting of up to 32 characters
enclosed by "<" and ">". This O number or file name must be used for
management on the personal computer.
If an O number or a file name in an NC program is different from a
file name on the personal computer, the file name used on the personal
computer takes priority by default when the file is transferred from the
personal computer to the Data Server.
The semicolon ";" used at the end of each block means EOB (end of
block) and actually functions as LF (LF: 0A in hexadecimal), CR-LF
(CR: 0D in hexadecimal), or LF-CR-CR.
The NC program must end with "M code ; %".
When performing binary input operation, insert data for binary input
operation, enclosed with the start code and end code of binary input
operation, into the part ". . ." in the above figure.
For details of binary input operation, refer to the relevant operator's
manual of the CNC.
WARNING
If an NC program prepared on the host computer
does not use the program format specified by the
CNC, executing the NC program can cause an
unpredictable operation. So, special care should be
taken when an NC program is prepared on the host
computer.