111
数控编程总览
NC PROGRAMMING OVERVIEW
14-5 功能
Functions
采用代表功能的字母以及数值创建程序。G、M、S、F、T、D、
H、B 和 C 功能代表了主要功能。
A program is created using alphabets which show functions,
and numerical values. The G, M, S, F, T, D, H, B, and C
functions represent the main functions.
2 章中讲述了每个功能的详细信息。 Details of each function are described in CHAPTER 2.
下表给出了功能的总览: The following table gives an overview of functions:
代码 功能
Code Functions
G 代码
在每个程序块中指定了加工方法或沿着一个轴的
运动。从该指令开始,数控准备每一程序块的运
动。基于此, G 功能称为准备功能。
示例:
G00 :轴快速进给
G code
Specifies the machining method in each block of
a program or movement along an axis.
Proceeding from this command, the NC prepares
for movement in each block. For this reason, the
G function is called a preparatory function.
Example:
G00: Rapid traverse of axes
M 代码
称为辅助功能,其功能用于支持 G 代码所调用的
功能。
它指定机床运行的打开 / 关闭控制,包括程序停止
,切削油排放或停止,以及主轴旋转或停止等。
示例:
M08 :切削油排放
M09 :切削油停止
M code
Is called the miscellaneous function and works as
the function to support the functions called by the
G code.
It specifies ON/OFF control of machine
operations, including program stop, coolant
discharge or stop, and spindle rotation or stop
etc.
Example:
M08: Coolant discharge
M09: Coolant stop
S 代码
指定主轴转速。
示例:
S400 :主轴转速: 400 min
−1
S code
Specifies the spindle speed.
Example:
S400: Spindle speed: 400 min
−1
F 代码
指定刀具的进给速度。
示例:
F100 :刀具的进给速度: 100 mm/min
F code
Specifies the feedrate of the tool.
Example:
F100: Feedrate of tool: 100 mm/min
T 代码
指定刀具编号。
示例:
T1 :在刀具更换位置调用 1 号刀具
T code
Specifies the tool number.
Example:
T1: Call tool No. 1 at tool change position
D 代码
指定刀具半径偏移编号。
示例:
D1 :在‘ 刀具补偿 ’屏幕上的 1 号刀具半径偏
移。
D code
Specifies the cutter radius offset number.
Example:
D1: Cutter radius offset of No. 1 on the ‘ TOOL
OFFSET ’ screen.
H 代码
指定刀具长度偏移编号。
示例:
H1 :在‘ 刀具补偿 ’屏幕上的 1 号刀具长度偏
移。
H code
Specifies the tool length offset number.
Example:
H1: Tool length offset of No. 1 on the ‘ TOOL
OFFSET ’ screen.
B 代码
指定工作台的倾斜角度。
示例:
B90.0 :工作台倾斜 90°。
B code
Specifies the tilting angle of the table.
Example:
B90.0: The table tilts 90°.
C 代码
指定工作台的旋转角度。
示例:
C90.0 :工作台旋转 90°
C code
Specifies the rotation angle of the table.
Example:
C90.0: The table rotates 90°