Originally Posted by
ducatidragon916
I got this nc code from using mastercam software and used it in the unit to cut. I thought maybe an offset tool height was wrong but I think that the MDX 500 ignores this command 49. The cutter plunges right after it gets to the first cut xy coordinate line N170. Even though i used the zero sensor to zero the z axis and it does register as 0 just touching workpiece, still goes about 1/4 inch down into the material. The number on the lcd screen after the plunge is -1186. I am not sure about the tool reference as it is what the software has set from using a 1/8 end mill etc...Thanks for your desire to help me out on this much appreciated!!
WOTDesigns is 90% there
A few problems with your use of Mastercam & the machine, that you need to familiarise yourself with
- setting part origin in the machine
- tool offset registers & their use ( not sure if your machine uses H offset )
There is no part origin call-up in your program, ie missing G92 or G54---these are methods to set the part origin in respect to the machine origin (machine home)
( G54 is output to the NC code when "Miscellaneous Integer #1" = 2 , in the Mastercam operations)
T232 = tool number 232
H0 = H0 can only be zero, usually it must be greater than one, it looks up the value in the offset tables to set tool length
D0 = H0 can only be zero, usually it must be greater than one, it looks up the value in the offset tables to adjust tool diameter when using G41/G42
H0 & D0, in the machine, are set to zero & cannot be altered.
Just glanced thru the NC Code manual for the machine. it ignores any unsupported M-codes
- it seems to set G54 as the default in the machine ( even if not stated in the NC code) , so you did set G54(XY) at the beginning & then set G54(Z) after each manual toolchange ( unless they are all set to the same distance out )
- did you use "sensor mode" correctly ? .....for each tool ?
- G43 H0 seem to be not used, try running the program with those items deleted from the NC code
- use "Single block" & a slower feedrate (at the beginning) to make sure your tool runs to the correct height ie cycle thru to line N170, is tooltip at Z0.25" ?.....yes.....then remove single block & increase feedrate, & continue the program
Code:
/ N130 G28 X0. Y0.
( 1/8 FLAT ENDMILL TOOL - 232 DIA. OFF. - 0 LEN. - 0 DIA. - .125 )
N150 T232 M6
N160 G0 G90 X3.2625 Y-3.43 A0. S4278 M3
N170 G43 H0 Z.25
N180 Z.1
N190 G1 Z-.09 F6.16