View Full Version : Rapid move axis control


mattpatt
07-24-2008, 02:23 AM
At the moment I've got the PP to output the G code [pretty much as I want it, but I'd like to know if there's a way to configure it to output a little differently.

It makes the first rapid move like this:

N106 G90 G0 X110. Y53.5 Z50. S1000 M3

But I want it to output like this:

N106 G90 G0 X110. Y53.5 S1000 M3
N107 Z50.

Is there something I can change in the .gpp or .mac files?

I tried a few things but it's not doing what I want.

I basically don't want all three axis to move at once. I'd like to rapid the x & y, and then move the z once it's in position.

Thanks.

Matt.

Brakeman Bob
07-25-2008, 03:27 AM
At the moment I've got the PP to output the G code [pretty much as I want it, but I'd like to know if there's a way to configure it to output a little differently.

It makes the first rapid move like this:

N106 G90 G0 X110. Y53.5 Z50. S1000 M3

But I want it to output like this:

N106 G90 G0 X110. Y53.5 S1000 M3
N107 Z50.

Is there something I can change in the .gpp or .mac files?

I tried a few things but it's not doing what I want.

I basically don't want all three axis to move at once. I'd like to rapid the x & y, and then move the z once it's in position.


Thats easy. Just change the line in @rapid_move in the GPP file to

{nb, 'G90 G0 X'[xpos]' Y'[ypos]' S'spin' M3'}
{nb, 'Z@zpos}

The square brackets means that the xpos or ypos variables are only output when they have changed.

A useful tool for developing a post is the trace command. Somewhere in your "@init_post" routine of the GPP file should be a line that reads thus

; trace "all":5

Try posting out a program with the semi-colon removed from the beginning of that line and you will see EVERYTHING that the CAM is passing over to the post.

mattpatt
07-30-2008, 02:44 AM
Thanks for that info. I can't give you much updated info just yet as I have carried on as I was just for now, in the interest of getting the parts made.

I'll report again when I have a free moment.

Matt.

mattpatt
08-15-2008, 10:51 AM
Seem to have got this problem sortd so big thanks to Brakeman Bob :)