![]() | |
| 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 |
|
#2
| ||||
| ||||
| Use two different work offsets, like g54 and g55. I set the offset for g54 to my home position, and the g55 for the changing work zero. So you set a new G10 position for G55 and then invoke g55, when done invoke g54 again. Alan
__________________ http://www.alansmachineworks.com |
|
#3
| |||
| |||
| Mike, As Alan has stated using another workcoordinate is going to be the easiest way. If you happen to be using all of your coordinates G54-G59 for machining then you could set your home position to your common variables #100-#199 or #500-#999 then reference these to reset your home once you are finished. Stevo |
|
#5
| |||
| |||
| I'm running two vertical rows of parts, ten in each row. This is a program shell I've used before with G10 but this time I have to run top to bottom and then top to bottom again so the Y axis needs to be reset to zero instead of letting it just work its way back. Its running right now with a macro to keep track of how much it moves down and then use that number to reset, but it would be much less complicated to just reset it to zero. I've tried using G52 before and couldn't get it to work for me even though it looks easier. This is running in a HMC 5800 Mazak with a 640 Fusion control. I can program in mazatrol but G code still gives me more control and runs faster for production. |
| Sponsored Links |
|
#6
| |||
| |||
| I am not familiar with your control but can you use variables like #1-#33 or #100-#199 or #500-#999? If you can then at the beginning of the program you could set your home X,Y location to #100 and #101 then when you run the first row you could do a G10X#100Y#101 this would set it back to the original. Is there a reason that you can’t use G55 for row 1 and G56 for row 2? Or do as Alan suggested and set your original into G55 and G56 then run your program using G55 and adjusting your Y along the way then when you are done with the first row set G55 equal to G56 values and continue to the second row. There are tons of ways to do this via G54-G59 or using variables. Stevo |
|
#7
| ||||
| ||||
| Here is an example of how I use G54 and G55 with G10:
Alan
__________________ http://www.alansmachineworks.com |
|
#9
| |||
| |||
| The parts are equally spaced, sorry about the delay but I only get about an hour or two in my office these days. The rest of the time I have to run what little production there is. Just feel lucky to still have a job though. |
|
#10
| |||
| |||
| If you're on 5800 with a Fusion control, you should have all of the standard offsets (G54-G59) plus G54.1 (P1-P48).... That gives you 54 offsets to work with. You have 20 parts, you don't need to G10 this...
__________________ It's just a part..... cutter still goes round and round.... |
| Sponsored Links |
|
#11
| |||
| |||
mikey B O0001 M6T1 G0X0Y0G54S1000M13 G43Z10H1 (**ALTER VALUES OF #500-#503 ACCORDINGLY**) #500=10 (No. OF REPEATS IN Y) #501=2 (No. OF REPEATS IN X) #502=30 (PITCH SIZE AND DIRECTION (+OR-) IN Y) #503=100 (PITCH SIZE AND DIRECTION (+OR-) IN X) #504=0 (SETS PITCH IN X TO 0) WHILE[#504LT#501]DO1 #505=0 (SETS PITCH IN Y TO 0) WHILE[#505LT#500]DO2 G52X[#503*#504]Y[#502*#505] ...... your prog here ...... #505=#505+1 END2 #504=#504+1 END1 G52X0Y0 G53Z0Y0 M30 This should do what you want. I've not tested it. It's just from the top of my head. Sorry for late reply...been busy |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |