3.2 MCM数控参数修改
00012500 ;022 Tool #1 radius compensation
00000006 ;058 X-axis,Backlash compensation,0~255
00000027 ;059 Y-axis,Backlash compensation,0~255
00001500 ;061 X-axis,JOG Feed-rate & power-on G01 speed
00001500 ;062 Y-axis,JOG Feed-rate speed
00000010 ;064 X-axis,Resolution Denominator,(Encoder pulse)
00000004 ;065 X-axis,Resolution Numerator,(Ball-screw pitc
00000010 ;066 Y-axis,Resolution Denominator,(Encoder pulse)
00000004 ;067 Y-axis,Resolution Numerator,(Ball-screw pitc
00003000 ;079 X-axis,G00 Traverse speed limit
00003000 ;080 Y-axis,G00 Traverse speed limit
00000000 ;082 X-axis,Direction of motor rotation,0=CW,1=CCW
00000001 ;083 Y-axis,Direction of motor rotation,0=CW,1=CCW
00006000 ;093 X-axis,Software OT limit,(+) direction
00006000 ;094 Y-axis,Software OT limit,(+) direction
-09999999 ;096 X-axis,Software OT limit,(-) direction
-00342000 ;097 Y-axis,Software OT limit,(-) direction
00000256 ;136 X-axis,Home grid direction during HOME executio
00000256 ;137 Y-axis,Home grid direction during HOME executio
00000004 ;141 X-axis,Denominator,MPG resolution calc.
00000010 ;142 X-axis,Numerator,MPG resolution calc.
00000004 ;143 Y-axis,Denominator,MPG resolution calc.
00000010 ;144 Y-axis,Numerator,MPG resolution calc.
-00000001 ;161 X-axis Pitch Error mode
-00000001 ;162 Y-axis Pitch Error mode
00060000 ;164 X-轴导螺杆螺距误差补偿每段长度设定
00050000 ;165 Y-轴导螺杆螺距误差补偿每段长度设定
00000000 ;167 X-轴 40 段补偿量设定-1
-00000002 ;168 X-轴 40 段补偿量设定-2
-00000002 ;169 X-轴 40 段补偿量设定-3
00000010 ;207 Y-轴 40 段补偿量设定-1
00000006 ;208 Y-轴 40 段补偿量设定-2
-00000004 ;209 Y-轴 40 段补偿量设定-3
-00000008 ;210 Y-轴 40 段补偿量设定-4
00000002 ;211 Y-轴 40 段补偿量设定-5
-00000001 ;212 Y-轴 40 段补偿量设定-6
-00000001 ;213 Y-轴 40 段补偿量设定-7
3.3 加工变量定义
#300 |
工件样式选择 |
#301 |
工件1砂轮离工件X方向距离A |
#302 |
工件1砂轮离工件Y方向距离B |
#303 |
工件1第一段直径C |
#304 |
工件1第二段直径D |
#305 |
工件1第一段宽度E |
#306 |
工件1第二段宽度F |
#307 |
工件1砂轮宽度G |
#308 |
工件1粗磨进给量X1 |
#309 |
工件1半精磨进给量X2 |
#310 |
工件1精磨进给量X3 |
#311 |
工件1工进速度F2 |
#312 |
工件1粗磨次数 |
#321 |
工件2砂轮离工件X方向距离A |
#322 |
工件2砂轮离工件Y方向距离B |
#323 |
工件2第一段直径C |
#324 |
工件2第二段直径D |
#325 |
工件2第一段宽度E |
#326 |
工件2圆弧半径R |
#327 |
工件2砂轮宽度G |
#328 |
工件2粗磨进给量X1 |
#329 |
工件2半精磨进给量X2 |
#330 |
工件2精磨进给量X3 |
#331 |
工件2工进速度F2 |
#332 |
工件2粗磨次数 |
#341 |
砂轮离金刚笔X方向距离A |
#342 |
砂轮离金刚笔Y方向距离B |
#343 |
砂轮厚度(只读) |
#344 |
砂轮修整量 |
#345 |
砂轮修整速度 |
#346 |
新砂轮修整量 |
3.4 NC程序范例
(1)新砂轮修整程序:新砂轮修整是要把一个新的平砂轮,修整成如图4所示的砂轮,一侧是一个一定半径、一定弧度的圆弧。这个圆弧的半径和弧度是根据待加工工件的圆弧的半径和弧度计算所得,待加工工件如图4中所示。
o0005
G65 P#460 L3 A#342 B2.
G65 P#464 L31 A12.5 B4200
G65 P#465 L32 A12.5 B4200
G65 P#466 L03 A12.5 B#465
G65 L1 P#461 A0
G00 Y-#460
X-#341
G01 V-2. F#345
N10
G03 U-#466 V#464 R12.5
G02 U#466 V-#464 R12.5
V-16.
V15.960
G65 L2 P#461 A#461 B1
G65 P10 L84 A#461 B250
G01 V-0.01
G03 U-#466 V#464 R12.5
G02 U#466 V-#464 R12.5
V-10.
V10.
G01 V0.005
G03 U-#466 V#464 R12.5
G02 U#466 V-#464 R12.5
V-10.
V10.
M02
(2)工件2加工程序: 因为加工工件的砂轮一侧有圆弧型,所以需使用刀具半径补偿的指令G40、G41、G42。需要在MCM参数中做出设定:00012500 ;022 Tool #1 radius compensation(第一组R刀具半径补正值设定)。
o0002
G65 P#430 L3 A#322 B20.
G65 P#431 L2 A#321 B12.5
G65 P#432 L3 A#431 B#326
G65 L1 P#433 A0
N20
G00 Y-#430
X-#321
G41 X-#431 Y-#430 D1
U-#328 V-#328
G01 V-35. F#331
G03 U#326 V-#326 R#326
G01 V#326
G40 X-#432 Y-#430
G65 L2 P#433 A#433 B1
G65 L84 P20 A#433 B#332
U-#329 V-#329
G01 V-35. F#331
G03 U#326 V-#326 R#326
G01 V#326
G40 X-#432 Y-#430
U-#330 V-#330
G01 V-35. F#331
G03 U#326 V-#326 R#326
G01 V#326
G40 X-#432 Y-#430
M02
|