上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
Specialized, Concentrated, Focused 5
3 Structure of Machining File
A machining file is a group of instructions and data transmitted to the CNC device, and it is
composed of program blocks which follow a certain structure, syntax and format rule, while each
program block is composed of command words. See Fig. 3-1.
N01 G91 G00 X50 Y60
N10 G01 X100 Y500 F150 S300 M03
N
……
N200
M02
Program
block
Command
word
Fig. 3-1 Program Structure
3.1 Address Symbols and Functions
Address symbols and definitions are as shown in Form 3-1.
Form 3-1 Address Symbols
Address
Symbol
Description
B: Basic Function
O: Optional Function
D
Cutter radius offset number
B, O
F
Feedrate function
B
G
Preparatory commands
B, O
H
Tool length offset
B
I
Arc center modifier for X axis
B, O
J
Arc center modifier for Y axis
B, O
K
Arc center modifier for Z axis
B
L
Repetition count
B, O
M
Miscellaneous function
B
N
Sequence no. or block no.
B
O
Program no.
B
P
Dwell time in milliseconds, subprogram no.
call, custom macro no. call, block number in
main program when used with M99
O, B
Q
Depth of peck in fixed cycles G73 and G83
Shift amount in fixed cycle G76 and G87
O
R
Retract point in fixed cycles
O, B
Summary of Contents for Ncstudio
Page 74: ...RMB 21 00 ...