Originally Posted by
Cellar Dweller
1995 BP Discovery with DX-32 Controller.
MasterCam X3
I am working through some problems in the mastercam forum here at the zone and I thought it would be more then relevant to post some of my questions here in the BP forum, as I don’t understand all the elements to problem yet.
Please not the code below. You will note that on lines 4820 and 4970 (a pocket op) that the Z Value is given as a neg number, i.e. “z-.542”. Now on the next op, line 4970 (a drill op) the z value is given as a positive number, i.e. “Z.95”. For now let’s forget about the problem I am having with the program and focus on helping me understand why even though these z values are opposite, they both still work, and machine cuts material away correctly as I intended the op to work.
The top of the part is Z0 and yes, both parameter depth settings in MC are set to NEG numbers. My guess, is that my controller treats drill cycles differently then contour or face. Does this sound right? Is this common? Sure makes reviewing the Gcode a pain in the butt.
Thanks,
CD
N4810 G0 Z-.3336
N4820 G99 G1 X2.0745 Y-.2968 Z-.542
N4830 G99 X2.0743 Y-.297 F12.1
N4840 G99 X2.0745 Y-.2972
N4850 G99 X2.2765 Y-.2973
N4860 G99 X2.2765 Y-.2973 Z-.442 F6.4
N4870 G0 Z.25
N4880 G0 X2.0745 Y-.2968
N4890 G0 Z-.442
N4900 G99 G1 X2.0745 Y-.2968 Z-.552
N4910 G99 X2.0743 Y-.297 F12.1
N4920 G99 X2.0745 Y-.2972
N4930 G99 X2.2765 Y-.2973
N4940 G99 X2.2765 Y-.2973 Z-.452 F6.4
N4950 G0 Z.25
N4960 G0 Z.1
N4970 G83 X2.1755 Y-.297 Z.95 Z.1 Z.1 F7.3
N4980 G80
N4990 M09
N5000 G00 M25
' .1875 SPOTDRILL - TOOL6 - DIA .188 '
N5010 T6 M6
N5020 S4889 M03
N5030 G0 X.704 Y-.297
N5040 G0 Z.1
N5050 G81 X.704 Y-.297 Z.195 F9.8
N5060 G80
N5070 G81 X2.573 Y-.297 Z.3 F9.8
N5080 X1.778
N5090 G80
N5100 M09
N5110 G00 M25
' 1/8 DRILL - TOOL4 - DIA .125 ' (PROBLEM OP!!!!!!!!!!!!!!)
N5120 T4 M6
N5130 S7334 M03
N5140 G0 X.704 Y-.297
N5150 G0 Z.1 M08
N5160 G83 X.704 Y-.297 Z.5976 Z.0375 Z0. F8.4 (keeps lopping over and over, stuck here)
N5170 G80
N5180 M09
N5190 G00 M25
' NO. 6-32 TAPRH - TOOL5 - DIA .138 '
N5200 T5 M6
N5210 S300 M03
N5220 G0 X6.1282 Y-.2959
N5230 G0 Z2. M08
N5240 M29
N5250 G84 X6.1282 Y-.2959 Z.3 F9.4
N5260 G80 M28
N5270 M09
N5280 G00 M25