根据标准,所有直线均用G1(G01缩写)来编程,弧线用G2(G3) 。X和Z端点通常用绝对座标来确定:
N10 M3 M41 *
N20 G04 X1*
N30 G00 X30 Z100*
N40 T1*
N50 G00 X22 Z2*
N60 G01 Z0 F50 *
N70 G01 X24 Z-40 *
N80 G00 X30 Z100 *
N90 M2 *
轮廓起点为:X0/Z0
①G1 X20 倒角开始(24-2*2)
②G1 X24 Z-2
③G1 Z-28 弧线开始(30-2)
④弧线
⑤G1 X36 弧线开始(40-2*2)
⑥弧线
⑦G1 Z-40
⑧弧线
G1 Z-70 绝对(“ABS”)(勾股定理计算I值)
⑨或
G91G1 Z-10 G91表示增量(“INC”)
⑩(G90)G1 X60 Z-75.774 用正切功能确定U值
G1 Z-100 因为规定不允许有角
N1 G1 X20
N2 G1 X24 Z-2
N3 G1 Z-28
N4 G2 X25 Z-30 I2 K0
N5 G1 X36
N6 G3 X40 Z-32 I0 K-2
N7 G1 Z-40
N8 G2 X40 Z-60 I17.32 K-10
N9 G1 Z-70
N10 G1 X60 Z-75.774
N11 G1 Z-100