
4. SUBPROGRAM CALL OPERATION B-63214EN/01
- 38 -
4.2 NC Programs for Subprogram Call Operation
This section describes the format of NC programs for subprogram call
operation. These programs must have already been prepared on the personal
computer hard disk before subprogram call operation can be started.
Explanation
The following are the requirements for NC programs for subprogram call
operation, which should be prepared on the personal computer in advance.
l File name
Each file name must consist of either of the following, depending on
whether the NC uses 4-digit or 8-digit program numbers.
4-digit number + extension TXT
8-digit number + extension TXT
l File format
• Each NC program must start with % + {LF}.
• The body of a NC program must start with its program number,
which is identical to the file name (O1234 or O12345678, for
example).
• Each NC program must end with M99 + {LF} + %.
• The body of any NC program can contain binary code.
Example)
%{LF}
O0001(COMMENT) {LF}
M99{LF}
%
{LF} is the line feed character.