Official Luthiers Forum! http://mowrystrings.luthiersforum.com/forum/ |
|
Mach 3 / Mastercam X4 help! I am losing my mind... http://mowrystrings.luthiersforum.com/forum/viewtopic.php?f=10106&t=42587 |
Page 1 of 1 |
Author: | Jim Watts [ Thu Jan 30, 2014 10:13 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
Which holes does it miss? It's been a while since I've dealt with post, but a G81 is a straight drill not a peck drill, not that that really matters, it should still drill the hole. |
Author: | AlexanderJamesGuitar [ Fri Jan 31, 2014 8:39 am ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
Jim Watts wrote: Which holes does it miss? It's been a while since I've dealt with post, but a G81 is a straight drill not a peck drill, not that that really matters, it should still drill the hole. It is drilling the furthest right hole in the wrong position (level with the whole a little bit to the left of it, though it shouldn't be level). As well, it is completely missing the furthest hole to the left of the screen. I noticed I posted the wrong drill toolpath, so yes, it is a normal drill toolpath, not peck. I am still having the same issue with either drill or peck drill toolpaths. |
Author: | arie [ Fri Jan 31, 2014 3:38 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
sorry you're having troubles. -have you done this successfully with this post before? -write the code out, save it as a .txt or .nc and backplot. what happens? -try another post |
Author: | AlexanderJamesGuitar [ Fri Jan 31, 2014 4:24 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
arie wrote: so your're drilling 4 holes with two different depths correct? -have you done this successfully with this post before? -write the correct code out, save it as a .txt and run. what happens? -try another post I have tried every possible router post that Master cam provides. None of them have remedied the issue in Mach 3. Yes I have done this type of tool path before successfully. Any tool path I do after a drill tool path now does not line up properly in Mach 3. (Maybe I accidently changed something in Master cam? I wrote out the G Code to make it correct. I changed the first line of new coordinates after the first G80. To the line of coordinates, I added "G00". This made Mach 3 understand the toolpath properly. I know you could consider this as fixing the issue but I still have a post in Mastercam writing G code wrong (fOr Mach 3). It would be preferable if I could fix that issue so that I do not have tp manually enter G code. |
Author: | arie [ Fri Jan 31, 2014 4:42 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
AlexanderJamesGuitar wrote: arie wrote: so your're drilling 4 holes with two different depths correct? -have you done this successfully with this post before? -write the correct code out, save it as a .txt and run. what happens? -try another post I have tried every possible router post that Master cam provides. None of them have remedied the issue in Mach 3. Yes I have done this type of tool path before successfully. Any tool path I do after a drill tool path now does not line up properly in Mach 3. (Maybe I accidently changed something in Master cam? I wrote out the G Code to make it correct. I changed the first line of new coordinates after the first G80. To the line of coordinates, I added "G00". This made Mach 3 understand the toolpath properly. I know you could consider this as fixing the issue but I still have a post in Mastercam writing G code wrong (fOr Mach 3). It would be preferable if I could fix that issue so that I do not have tp manually enter G code. cool, that makes sense. it doesn't necessarily have to be a "router" post though, try generic 3X mill or mpmaster. hacking posts used to be pretty easy until X7 came along. |
Author: | AlexanderJamesGuitar [ Fri Jan 31, 2014 4:47 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
I tried mills in Mastercam X4 as well. Didn't change the G80 problem. The issue was still there. Any idea on how I can edit my post to either replace G80 with G00 or put G00 on the next line of coordinates? I have no clue how to edit posts. |
Author: | arie [ Fri Jan 31, 2014 5:39 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
imo, if the problem is happening in every post you try then it isn't the post's fault. maybe look at both your machine and control definition files first for configuration issues. |
Author: | Jim Watts [ Fri Jan 31, 2014 6:05 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
You need to find some documentation on the techno controller and how it's set up. The G80 cancels the canned cycle (drilling in this case) you shouldn't need to put in a G00 though as that's just a rapid and should remain modal until it see's a G01, which is not necessary here, as you are just positioning for a drill cycle. The other thing that looks odd is the use of a g52 and a g54, I believe a g52 is a offset from the g54 and the g54 is your actual set point. Are your holes off by X3.2258 Y.9709? Are you are indicating in the fixture on your machine and using this point as the set point (X0Y0)? If you are not this would explain the difference between the Mach and master cam plots. |
Author: | arie [ Fri Jan 31, 2014 6:29 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
Jim Watts wrote: You need to find some documentation on the techno controller and how it's set up. The G80 cancels the canned cycle (drilling in this case) you shouldn't need to put in a G00 though as that's just a rapid and should remain modal until it see's a G01, which is not necessary here, as you are just positioning for a drill cycle. The other thing that looks odd is the use of a g52 and a g54, I believe a g52 is a offset from the g54 and the g54 is your actual set point. Are your holes off by X3.2258 Y.9709? Are you are indicating in the fixture on your machine and using point as a X0,Y0, point? If you are not this would explain the difference between the Mach and master cam plots. I think his machine is using G52 as a tc position (N106) and then at N108 he changes his tool, N110 he goes from G54 which should be his part zero. G52 in older machines is usually reserved as a toolchange position referenced from machine home (either upper right or table center) and positioned at upper left by the carousel. |
Author: | SonusAngelorum [ Fri Jan 31, 2014 8:58 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
Hello, G52 is the old way CNC controllers would reference machine home. Most use G28 now. I would get rid of the G52 line. Make sure that your work coordinate system (X0Y0) (G54) is the same for your Mastercam program and the X0Y0 position you have set in Mach3. For example, It looks like your Mastercam X0Y0 is the lower left corner of the part. Make sure you set your work offset (G54) on your Techno to the lower left corner (maybe offset inside the material .050" or so). Also, I would get rid of the G8 P1 if you are contouring. It sets a pause at each line that you don't need. Also, also, the spindle speed and feedrate are probably faster than you need. Maybe set the spindle speed to 5000 and feedrate to 20ipm depending on the wood. It will work the way you have it, but you might add a few years to your machine if you slow it down. Other than that I'd say it looks good. ps. If you are using the MPROUTER post. You can edit it in notepad or one of the mastercam editors. Search for sg52. You can edit it like I did in the last line below to use G28 instead or you can put a # symbol in front of it and get rid of it all together. The # symbol is for comments and the system won't read past it. ------------------------------------ psof$ #Start of file for non-zero tool number if translate_err = 1, [ stranslate_err, e$ exitpost$ ] pcuttype toolchng = one pcom_moveb if read_md, pcheckaxis prog_is_main = not(mi7$) if ntools$ = one, [ #skip single tool outputs, stagetool must be on stagetool = m_one !next_tool$ ] pbld, n$, *sgplane, *smetric, *sgabsinc, scc0, sg80, sg64b, sg49, sg00, "M05", e$ if use_g8, pbld, n$, "G8", "P1", e$ pbld, n$, *sgabsinc, "M05", e$ # removed -->"Z0", e$ 11-28-13 Tony if prog_is_main, pbld, n$, sg28, "X0.", "Y0.", e$ # changed from -->if prog_is_main, pbld, n$, sg52, "X0.", "Y0.", "Z0.", e$<-- |
Author: | AlexanderJamesGuitar [ Sat Feb 01, 2014 12:49 am ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
arie wrote: imo, if the problem is happening in every post you try then it isn't the post's fault. maybe look at both your machine and control definition files first for configuration issues. I will look at those and report back. |
Author: | AlexanderJamesGuitar [ Sat Feb 01, 2014 1:48 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
SonusAngelorum wrote: Hello, G52 is the old way CNC controllers would reference machine home. Most use G28 now. I would get rid of the G52 line. Make sure that your work coordinate system (X0Y0) (G54) is the same for your Mastercam program and the X0Y0 position you have set in Mach3. For example, It looks like your Mastercam X0Y0 is the lower left corner of the part. Make sure you set your work offset (G54) on your Techno to the lower left corner (maybe offset inside the material .050" or so). Also, I would get rid of the G8 P1 if you are contouring. It sets a pause at each line that you don't need. Also, also, the spindle speed and feedrate are probably faster than you need. Maybe set the spindle speed to 5000 and feedrate to 20ipm depending on the wood. It will work the way you have it, but you might add a few years to your machine if you slow it down. Other than that I'd say it looks good. ps. If you are using the MPROUTER post. You can edit it in notepad or one of the mastercam editors. Search for sg52. You can edit it like I did in the last line below to use G28 instead or you can put a # symbol in front of it and get rid of it all together. The # symbol is for comments and the system won't read past it. ------------------------------------ psof$ #Start of file for non-zero tool number if translate_err = 1, [ stranslate_err, e$ exitpost$ ] pcuttype toolchng = one pcom_moveb if read_md, pcheckaxis prog_is_main = not(mi7$) if ntools$ = one, [ #skip single tool outputs, stagetool must be on stagetool = m_one !next_tool$ ] pbld, n$, *sgplane, *smetric, *sgabsinc, scc0, sg80, sg64b, sg49, sg00, "M05", e$ if use_g8, pbld, n$, "G8", "P1", e$ pbld, n$, *sgabsinc, "M05", e$ # removed -->"Z0", e$ 11-28-13 Tony if prog_is_main, pbld, n$, sg28, "X0.", "Y0.", e$ # changed from -->if prog_is_main, pbld, n$, sg52, "X0.", "Y0.", "Z0.", e$<-- I will definitely try this and let you know how it goes! |
Author: | arie [ Mon Feb 03, 2014 12:10 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
AlexanderJamesGuitar wrote: I tried mills in Mastercam X4 as well. Didn't change the G80 problem. The issue was still there. Any idea on how I can edit my post to either replace G80 with G00 or put G00 on the next line of coordinates? I have no clue how to edit posts. i wouldn't try to replace the G80 because you need to cancel that cycle before starting a new one with a different drill depth. if you need a rapid then add "G00" to your post in the appropriate area. you could also add a blkdel in front of the G00 like "#G00". this will allow you to bypass the commmand in your control by turning blkdel on. you need to add the quote marks -this will force the command as anything within quotations is protected. you can edit posts in mcedit or any text editor that doesn't re-format the file. i used to use cimco edit which came with mc. a couple of things about posts though: -do make a back up copy before you change anything. -only change one thing at a time and backplot/dry run at the machine unless you really know what you are doing. |
Author: | arie [ Mon Feb 03, 2014 12:21 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
-regarding G52, machines in the early 80's used G52 as a tool change position while still using G28 to return to home. This was one of the early Yasnac conventions. nowadays it's just another part offset to choose from. one of the guys in our shop still does this out of habit. -regarding G8 P1, you're correct -it's a switch. in the Fanuc style control this envokes block look ahead. if your control has this option you can set how many blocks to look ahead if not the control will stutter. G8 P0 turns it off. ime older "delicate" machines prefer clean code i might suggest: % O1234 G90 G80 G49 G40 G17 G52 X0. Y0. T1 M6 G54 G0 X3.2258 Y.9709 S16000 M3 G43 H1 Z.5 G98 G81 Z-.12 R.25 F108. X17.2943 Y2.0822 G80 G0 X.375 Y1.375 G98 G81 Z-.25 R.25 F108. X20.625 G80 M5 G91 G28 Z0. G52 X0. Y0. M30 % feeds and speeds are your call |
Author: | AlexanderJamesGuitar [ Mon Feb 03, 2014 5:58 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
arie wrote: -regarding G52, machines in the early 80's used G52 as a tool change position while still using G28 to return to home. This was one of the early Yasnac conventions. nowadays it's just another part offset to choose from. one of the guys in our shop still does this out of habit. -regarding G8 P1, you're correct -it's a switch. in the Fanuc style control this envokes block look ahead. if your control has this option you can set how many blocks to look ahead if not the control will stutter. G8 P0 turns it off. ime older "delicate" machines prefer clean code i might suggest: % O1234 G90 G80 G49 G40 G17 G52 X0. Y0. T1 M6 G54 G0 X3.2258 Y.9709 S16000 M3 G43 H1 Z.5 G98 G81 Z-.12 R.25 F108. X17.2943 Y2.0822 G80 G0 X.375 Y1.375 G98 G81 Z-.25 R.25 F108. X20.625 G80 M5 G91 G28 Z0. G52 X0. Y0. M30 % feeds and speeds are your call I appreciate your help! And every one else's as well. This may sound silly, but at the point of almost completely editing my post processor, I decided to first try updating Mach 3... It works!!! After the upgrade, Mach 3 started reading the non edited g code how I intended. |
Author: | AlexanderJamesGuitar [ Mon Feb 03, 2014 5:58 pm ] |
Post subject: | Re: Mach 3 / Mastercam X4 help! I am losing my mind... |
arie wrote: -regarding G52, machines in the early 80's used G52 as a tool change position while still using G28 to return to home. This was one of the early Yasnac conventions. nowadays it's just another part offset to choose from. one of the guys in our shop still does this out of habit. -regarding G8 P1, you're correct -it's a switch. in the Fanuc style control this envokes block look ahead. if your control has this option you can set how many blocks to look ahead if not the control will stutter. G8 P0 turns it off. ime older "delicate" machines prefer clean code i might suggest: % O1234 G90 G80 G49 G40 G17 G52 X0. Y0. T1 M6 G54 G0 X3.2258 Y.9709 S16000 M3 G43 H1 Z.5 G98 G81 Z-.12 R.25 F108. X17.2943 Y2.0822 G80 G0 X.375 Y1.375 G98 G81 Z-.25 R.25 F108. X20.625 G80 M5 G91 G28 Z0. G52 X0. Y0. M30 % feeds and speeds are your call I appreciate your help! And every one else's as well. This may sound silly, but at the point of almost completely editing my post processor, I decided to first try updating Mach 3... It works!!! After the upgrade, Mach 3 started reading the non edited g code how I intended. |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |