G28 Position

On my previous machine, I programmed a G28 position and when a job was completed, the machine went to this position instead of g30. Two questions:

  1. How do you program a G28 position in Pathpilot?
  2. Do you simply change the post as show below from G30 to G28?

Richard

From what I read in the operator manual:

  • G28.1 to store current absolute position
  • G28 to go to the stored position

I’m sure you know. It moves straight there not up and then across, straight through anything.

I want to automate more default behaviors to my preferences given the modifications I have planned for my 440 as I am going to want a (safe) move of the machine toward the front right of the enclosure at the end of every cycle.

G28 X~ Y~ Z~ moves to the stored absolute position through an intermediate position, any axis not specified will not move, so you just need the right Z value for the G28 command to force a Z move first…in this case, I would understand it is looking for an absolute Z value?

If that is the correct interpretation, then what is needed is to modify the Fusion post processor to ensure that a safe Z is included in G28 when you select that drop-down, you should be executing a “safe” G28?

Probably want something like this to deal with absolute coordinates (this assumes that you don’t have a tool loaded that is so long that it will hit even if you are at Z0 absolute)

G53 G0 Z0
G91 G28

Check out the video in this list that covers g28

Thanks guys. Looks like what I really wanted to do is change the g30 position. Now it is working as I wanted:

Thanks for the video reference.

That’s what I’m trying to do…move the mill front right at the end of all operations to load/unload parts instead of having to manually move it there but keep G37 for where I have bolted the ETS to the mill (back left) and G30 at a place where the ATC can change tools safely that is near the ETS and not all the way on the other side of the table and crosses over my vise [edited after Richard Salzman pointed out as written G30 is not G37 as I originally wrote but I was bundling the two together as related for my machine setup]

Dr. Jones says it does a diagonal move and Jason’s video seems to confirm that, so a post processor modification appears to be in order.

Ashraf,

Perhaps I am mistaken, but I believe the ETS does not use G30 as its reference position. Check out the ETS G37 Position setup below:

You are correct.

I had them confused (because G30/G37 were rolled up together in my mind).

  • G37 - XY centered on the ETS and at a Z at a safe height for your longest tool you would touch off
    • but if it’s Z0 for the machine absolute, it’s a long way down to the ETS
    • might not be able to use for tools you don’t want to leave in the ATC or won’t clear the ETS
  • G30 - safe tool change location
  • G28 - end of cycle location

For what it is worth, I was on the phone with tech support today for another issue and I was told to use G30 as the end of cycle position. They did not recommend G28.

I am sure that tech support knows their stuff and their answer is probably more correct.

G30, as defined by LinuxCNC, which is what PP is built on, is the specified location for tool changes and they have protections built into PP for G30.

G28 has an almost identical definition and use case, save for the fact that G30 is specified and used in the tool change chain of moves.

The absence of a safe Z axis move being built into G28 as identified here, appears to be the one limitation to using G28 with “reckless abandon”.

I’ll proceed with my modifications to the provided Tormach Fusion post-processor and keep an eye on it and report back (and probably time to take a look at the Xoomspeed post-processor to see if this is already covered in it).

When I last messed with the post on my 1100 I had it output in the end-code

G53 G0 Z(whereever works for you absoute-Z-wise)
G30

everything I did was Z-safe and it solved any issues with running into stuff in X or Y on the way to G30

I recently put in a suggestion to tormach to add an option to have user defined buttons to run a macro or gcode etc.

This would be a good example why someone would want such a thing. So they can push a button and the table goes to a defines location. Without typing in the MDI, which I hate.

If you go to tormachtips.com he has a python plugins that will add another tab and it has WCS data & buttons. I tweaked the python code to add more buttons & I added some canned routines like move the table to the center, or front center, a button to set G28 and another to go to G28. He has lots of different python plugins. It really speeds things up & is a nice creature comfort. I use universal gcode sender on my cnc router which you can make your own macros, so I got spoiled on that. Disappointed PP doesnt have that option, but I am a fan of PP dont get me wrong.

I would like a way to attach the macros to the function keys. I know F1 shows the status tab but that’s the only one I use. I think that’s the only one that does anything as far as I know.

I agree, 100%. There should be hot keys for amy functions & theu should be programmable.

@brian_satterlee @Dr_Harold_Jones

Is the feature request to map a Fn key to run a NC file stored on the controller (provided that you are in a state where it can be run when the Fn key is pressed) and/or that the Fn key could be assigned to existing functions in PP?

I’d settle for function keys that do things. Things I do the most that could be convenient.
F2- measure tool
F3- G28
F4- coolant toggle
F5- midi line (I hate having to select it, then type g00, then select again X0 Y0)
F6- iso view
F7- copy current tool to conversational field
F9 run (subroutine 1)
F8 - run (subroutine 2)
F10- run (subroutine 3)

There’s others like copy probed location to drill table
I also do a lot of probing somethings width and then take that and type it in to the A field/2 then copy and paste that into the conversational -X, X fields then repeat with Y. Lots of godly things that could be made easier, quicker.
Probably not in that order either. I just threw out the first 9 I thought about.

Earlier idea

I wish Tormach built those functions into PP. Seems weird they build in more shortcuts.

A alternative would be to go to Tormachtips.com and there is a plugin with instruction to create scripts & assign them to keys &/or buy a seperate macro board to assign functions too. It uses xdotool that is into linux.

@Dr_Harold_Jones alt-enter gets you mdi line no matter where you are, if the machine is idle