Router Forums banner
1 - 4 of 12 Posts

· Registered
Joined
·
1,384 Posts
There are different G-Codes coordinate systems which might be the key to your quest. There is a machine coordinate system (G53) and G54 to G59 are work coordinate systems.

You might be able to use two (or more) different post processors where the only difference is the coordinate system they set for the job. I'm pretty sure linuxCNC remembers where 0,0,0 is set for each once you've set them. Homing the CNC sets the machine coordinate system. They should end up the same each time the machine is homed.

You can play around while in LinuxCNC by typing in G54 (or G55 through G59), setting the origin, then picking another and setting a new origin. Type in the previous G(coordinate number) and then G0x0y0 to see if the machine moves over to the appropriate location.

Google: https://www.google.com/search?q=g-c.....69i57j0l2.8511j1j7&sourceid=chrome&ie=UTF-8

4D
 

· Registered
Joined
·
1,384 Posts
You don't need to be a good programmer, but just need to know how to edit a simple text file. Post processors are text files, and not too hard to understand when opened in notepad.

I spent the last few minutes testing my own advice above. While the set origin button used on the left side of linuxCNC didn't seem to work to save x/y/z origins for different coordinate systems, the Set XY and Set Z origins on the right side did.
 

· Registered
Joined
·
1,384 Posts
Glad to hear you got it working! The more I figure out about LinuxCNC the more I love using it. I rarely do a job more than once where these tips would be handy, but knowing about them can/might help me solve future challenges. G-Code is a pretty powerful programming language.

4D
 

· Registered
Joined
·
1,384 Posts
begin HEADER

"%"
"T[T] M6"
"G0 G17 G20 G90 G40 G49 G64 G55 P0.001"
"G0 [ZH]"
"G0 [XH] [YH] M3 M8 "

I made a test file using the G55 post processor, loaded it into the CNC and used the mdi to switch to G55 coordinates.

I ran the file and it worked perfect!:grin:

Thanks again for all the help.

OK, I can go to bed now!

You should move the G55 to before the G64 as the P-0.001 is a parameter used for the G64 command. : "G0 G17 G20 G90 G40 G49 G55 G64 P0.001"

Consider P to mean "precision". G64

4D
 
1 - 4 of 12 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top