Programming of CNC Machines, Third Edition

Each program is assigned a number. The capital letter 0 is reserved for the program number identification and is usually followed by four digits, which specify the actual program number. For example, to create a program with the number 1234, the programmer must input the letter address 0, and then the number 1234 (01234). All programs require this format.
Note: Refer also to Part 1 , "Program Format".
Examples:
| O0001 = | program number 1 |
| O0014 = | program number 14 |
A common mistake made here, is to enter zero (0) instead of the letter O, which results in an alarm on the control system.
Comments, to aid the operator, may be added to the program by using the parenthesis. The comments or data inside the parenthesis will not affect the execution of the program in any way. A very common place to add comments is at the program number, to identify a part number, or at a tool change or program stop to direct the operator in some way. An End-of-Block character (EOB) is typically required after the parenthesis if entered via MDI. No EOB character is needed if the data is entered via an offline text editor.
Examples:
O0001
(PN587985-B)
N9M00
(REMOVE CLAMPS FROM OUTSIDE OF PART)
The letter "N" is reserved to identify the program line sequence numbers (block numbers) and precedes any other data in a program line. For each line in a program, a block number...