Smithy CNC Mills User Manual
Page 7

1.1 Format of a line
A permissible line of input RS274/NGC code consists of the following four parts,
in the order listed.
1. An optional block delete character, which is a slash "/"
.
2. An optional line number.
3. Any number of words, parameter settings, and comments. (up to 256 charac-
ters).
4. An end of line marker (carriage return or line feed or both).
Any input not explicitly allowed is illegal and will cause the Interpreter to signal
an error. There are three additional things that affect all parts of a program.
Spaces and tabs are allowed anywhere on a line of code and do not change the
meaning of the line, except inside comments. This makes some strange-looking
input legal. The line "g0x +0. 12 34y 7"is equivalent to "g0 x+0.1234 y7", for
example.
Blank lines are allowed in the input. They are ignored.
Input is case insensitive, except in comments, i.e., any letter outside a comment
may be in upper or lower case without changing the meaning of a line.
1.2 Line Number
A line number is the letter N followed by an integer (with no sign) between 0
and 99999 written with no more than five digits (000009 is not OK, for exam-
ple). Line numbers may be repeated or used out of order, although normal prac-
tice is to avoid such usage. Line numbers may also be skipped, and that is nor-
mal practice. A line number is not required to be used, but must be in
the proper place if used.
SmithyCNC Programmer’s Reference Manual: Language Overview
1-3