![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
ok i recently acquired a syil x4+ and am getting back in the whole programming thing, for the last few year i have been operating but not programming and fortunately for us as operator the programmer is really good so we dont have to fiddle much with the code in the machine so now that i have my own cnc i have to figure out a bunch off thing that i forgot how to take care of. so here is my problem i am currently trying to do a test part to see if the machine does what its suppose to do and if the tolerance are respected now here is the problem. the first operation seem to go fine machine starts from its home position goes to its g54 to do the contour of the part then it does the central pocket all with the same tool ounce this is done it goes back to it home position to call a tool change to do the to little pocket in the central pocket and this is where it bugs N5200 G1 Z.1 F6.33 N5210 G0 Z2. N5220 M5 N5230 G91 G28 Z0. M9 N5240 G28 X0. Y0. A0. N5250 M01 ( 15/64 LEFT SIDE CENTER POCKET TOOL - 3 DIA. OFF. - 3 LEN. - 3 DIA. - .234375 ) N5260 T3 M6 N5270 G0 G90 G54 X1.3271 Y1.3464 A0. S3000 M3 N5280 G43 H3 Z2. M8 N5290 Z.1 N5300 G1 Z-.38 F6. N5310 X1.3264 F10. N5320 X1.3242 Y1.3522 now normally what its should do is ask for tool change, which it does, then i press cycle start and it should go to its g54 which should be its work zero but instead it seem to be trying to go to X1.3271 Y1.3464 from its home position and then from there well to machine goes over travel does anybody have an idea as to why it does that...???
__________________ The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne |
|
#2
| |||
| |||
| It wants to go there because you have it programmed to go there. N5270 G0 G90 G54 X1.3271 Y1.3464 A0. S3000 M3 If G54 is the center of the pocket then the code above is telling it from G54 go X1.3271 Y1.3464. What you want to do is G0G90G54X0Y0A0S3000M3 This will take you to G54 position. Stevo |
|
#3
| ||||
| ||||
| i am not sure i get what you are saying in this case if i am reading it right it should be from the g54 ,position your self at X1.3271 Y1.3464... no! so g54 x0 y0 would just put it in the corner of the block but my problem is that instead of going to the block it try to make its move from the home position and not from the work offset position so i guess then my code is right its mach3 that does not make the good move
__________________ The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne |
|
#5
| |||
| |||
| Hmm. Ok so your G54 X0Y0 is the corner of the block and your center of the pocket is X1.3271 Y1.3464 from G54. Is your G54 set up properly? When you found the corner of the part you put the "machine" position in the G54 offsets. If so then yes your code should be correct. As like Beege I do not have any experience on a Mach3 control if thats what it is. Try doing what Beege said. In a seperate line before your X and Y movement put the G54. It might be that it is not instating the G54 until the next line of code. I have seen that before. I have had to set parameters in the Fanucs that are for instating an offset in the same line or the next exacuted line. Worth a shot. N5260 T3 M6 N5265G0G90G54 N5270X1.3271 Y1.3464 A0. S3000 M3 N5280 G43 H3 Z2. M8 Stevo |
| Sponsored Links |
|
#6
| ||||
| ||||
| yep ill try this out, for now family mater call, got to take care of the kid and do my father duty will post back later.
__________________ The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne |
|
#7
| ||||
| ||||
| G54 is Mach3's default coordinate system, so calling G54 probably doesn't actually do anything, because you're probably already in G54.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#8
| ||||
| ||||
| N5310 G03 X3.6442 Y2.7049 I-.0625 J0. N5320 G01 Z.1 F6.33 N5330 G00 Z2. M09 N5340 M05 N5350 T3 M06 (15/64 LEFT SIDE CENTER POCKET) N5360 (MAX - Z2.) N5370 (MIN - Z-.62) N5380 G00 Z2. M08 N5390 G00 X1.3271 Y1.3464 S2000 M03 N5400 Z.1 N5410 G01 Z-.38 F6 but then i dont get it from what i get you only have 2 inches in between your part and the quill to do your tool change??... oh no now i get it what i have to do is set my clearance to something like 8" but then again i dont get it how does it figure were the part is if it does not take note of the g54...
__________________ The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne |
|
#9
| ||||
| ||||
| Executing a G54 doesn't cause any movement. It sets the machine offsets to the G54 coordinate system. Looking at this line of code: G0 G90 G54 X1.3271 Y1.3464 A0. S3000 M3 It is basically saying: G0 (Set modal rapid motion) G90 (Use absolute coordinates) G54 (Use the G54 coordinate settings) X1.3271 Y1.3464 A0. (Move to these coordinates) S3000 M3 (Turn the spindle on and set the speed to 3000rpm) You have to decide where you want the origin for the part, set the G54, G55 or which ever coordinate system you want to run in and then program the cuts relative to that origin. I set my G54 origin with this line of code: G10 L2 P1 X0.0 Y0.0 Z0.0 (set to home P1==G54, P2==G55, etc) Then you could set your G55 origin with something like this: G10 L2 P2 X1.3271 Y1.3464 Z0.0 A0 (but where ever you want it to be) Then you could invoke: G55 G0 X0 Y0 A0 (do some operations) G54 (restore home coordinates) I am running EMC2 but since Mach originated in EMC also, I would expect that the code for this would be similar. Alan
__________________ http://www.alansmachineworks.com Last edited by acondit; 10-24-2008 at 09:51 PM. |
|
#11
| ||||
| ||||
| I understand the g54 is not a movement code but were the zero or origin of my part is but you have to call it if i am not mistaking or else the machine is just going to start its move from were its is... no? from what i got from the post of ger21 i do not need to call a g54 in mach as mach will automatically consider a move with no work offset as a move using g54... no? to be honest with you G10 L2 P2 its the first time i see this code and i never got to use this so you sort of lost me there, but ill have a look at how to use it and if mach3 use it. Didnt know about mach3 originating from emc! As for this: G0 (Set modal rapid motion) G90 (Use absolute coordinates) G54 (Use the G54 coordinate settings) X1.3271 Y1.3464 A0. (Move to these coordinates) S3000 M3 (Turn the spindle on and set the speed to 3000rpm) I totally agree its just that in the case of my current problem seem to be like beege is saying so instead of go to its g54 and positioning its self X x.xxx and Y y.yyy from the work offset (g54) it try to do it from home position (g28) effectively going over travel also as i said my g54 is good as the two first operation it does with tool 2 are good its just that ounce its done and the tool change as been done it, it seems to be trying to go to the X and Y before it takes into consideration the g54.
__________________ The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne |
|
#12
| ||||
| ||||
| I'd be surprised if G54 is Mach's default coordinate system, it might be the default workshift, but the real coordinate system that belongs to the machine (and where G28 references) is G53. That call for G28 X0 Y0 A0 at the tool change bothers me a bit. That is a command to move to machine zero through points X0 and Y0. Since G91 was not commanded on that line, it may have attempted to move through the current workshift's X0Y0. Without being there and experimenting with the machine, its tough to guess what the control would try to do. So perhaps try G00 G91 G28 X0 Y0 as the 'fully written out' command. Also as a safety, after a tool change it is a good habit to insert a safety line like this: /G0 G54 X0 Y0 This sends the tool to the workshift X0Y0 where you can do a visual check that indeed the tool is at the datum. Once you get into running the program repeatedly, you can then skip this move with the block delete switch.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| KMB1 gcode problem | mmachining | HURCO | 2 | 10-06-2008 10:58 PM |
| Need Help!- GUESS: Home Limit or Both | Mr.Chips | General Electronics Discussion | 8 | 03-20-2008 11:03 AM |
| Cam to gcode problem | Sonicmook56 | General CNC (Mill and Lathe) Control Software (NC) | 3 | 12-24-2007 07:01 AM |
| I have a problem with my gcode or my conversion to gcode , everything is tiny? | NickLatech | G-Code Programing | 0 | 03-10-2005 12:46 PM |
| dxf to gcode problem... | freezer | General CAM Discussion | 9 | 02-19-2004 12:02 AM |