54
Other Functions
Sequence Number
N
Program Number
O
Format
N
number
Description
A sequence number is an integer number for a block. It is specified at the start of the block.
A sequence number may either be present or absent from any or all blocks. There is also no need for sequence numbers to be consecu-
tive, or to be arranged in order from smaller to larger numbers. However, consecutive sequence numbers are customarily used to mark
critical places within a program.
An integer of up to four digits (i.e., from 1 to 9,999) is input for the number parameter.
A sequence number can be used as the return destination for a called subprogram. (See the description of M99 on End of Subprogram.)
However, a sequence number cannot be used to call a subprogram.
Format
O
number
Description
Program numbers are sequential numbers for programs. A program begins with a program number and ends with either M02, M30, or
M99. The program number is specified at the start of a program.
The number parameter is a program number, and is specified with an integer of up to four digits (i.e., from 1 to 9,999). Normally, a four-
digit number is specified. (For example, “
0002
” is specified for program number 2.) Do not specify a program number of
0 (0000)
.
A program number can be used to call a subprogram, and can also be used as the return destination for a called subprogram. (See the
description of M99 on "End of Subprogram".)
N100M98P0002
N101G00X10.
M99
M02
O0002
..........
%
O0001
Program for
program number 1
Program for
program number 2
Main
program
(Program No. 1)
Subprogram
(Program No. 2)
Call
Parameter
Function
Acceptable range
Effective range
number
Program number
1—9999
1—9999
Parameter
Function
Acceptable range
Effective range
number
Sequence number
1—9999
1—9999
Содержание CAMM-3 PNC-3200
Страница 2: ......
Страница 62: ...60 MEMO ...
Страница 63: ......
Страница 64: ...R3 001018 NC code PNC 3200 ...