Each designation in the CNC program has a certain fixed format, and the format is different for different controllers. Therefore, the instructions must be written according to the command format of the controller. If the format is wrong, the program will not be executed and appear. Warning message.
Be especially careful when entering numerical data. In general, CNC milling machine or MC can choose metric unit “mm” or inch unit “inch” as the coordinate value unit. The metric system can be accurate to 0.001mm, and the inch system can be accurate to 0.0001 inches, which is also the minimum movement of general CNC machinery. If X1.23456 is entered, the actual input value is X1.234mm or X1.2345 inches, and the excess value is ignored. And the number of words can not be too much, generally limited to 7 words, such as input X1.2345678, because more than 7 words, a warning message will appear, Table 1 is the address and command value range.
Listed in Table 1 is the range of instructions that the computer can accept, and the actual use range of CNC machine tool is limited by its machinery, so it should be determined by referring to the operation manual of CNC machine tool. For example, in Table 1, the X axis can move ± 99999.999mm, but in fact the CNC machine tool’s X axis travel may be only 650mm, the feed rate F can be input up to 100000.0mm ∕ min, but in fact the CNC machine tool may be limited to 3000mm ∕ min the following. Therefore, when making the program, make sure that the actual limits of the CNC machine tool specifications are not exceeded, so you must refer to the manual issued by the CNC machine tool manufacturer.
Table 1 Address and instruction range (FANUC 0M)
Machine function
Location
Metric units
Imperial unit
Program number
: / (ISO /) O / (EIA /)
1-9999
1-9999
Sequence number
N
1-9999
1-9999
Ready to function
G
0-99
0-99
Axis word
X, Y, Z, Q, R, I, J, K
± 99999.999mm
± 9999.9999inch
A, B, C
± 99999.999deg
± 9999.9999deg
Feeding function
F
1-100000.0mm / min
0.01-400.0inch / min
Spindle speed function
S
0-9999
0-9999
Tool function
T
0-99
0-99
Auxiliary function
M
0-99
0-99
Stay
X, P
0-99999.999sec
0-99999.999sec
Subprogram number designation
P
1-9999
1-9999
repeat times
L
1-9999
1-9999
Correction number
D, H
0-32
0-32