G code question

This forum is for general discussion regarding VCarve Pro
Post Reply
mcamp001
Posts: 10
Joined: Thu Oct 07, 2021 4:40 pm
Model of CNC Machine: Mill Right Mega V

G code question

Post by mcamp001 »

I'm relatively new to this, so please bear with me;
When setting your home location (G92 X0 Y0 Z0 ) and then wanting to raise the bit before starting the cut, is there anyway to move a fraction of an inch? example: G90 G0 Z1 raises one full inch, What about a half inch? ( i know I can use MM, but don't want to in this case)

I tried .5, but doesn't like the decimal.

Thanks for any insight.

User avatar
SteveNelson46
Vectric Wizard
Posts: 2310
Joined: Wed Jan 04, 2012 2:43 pm
Model of CNC Machine: Camaster Stinger 1
Location: Tucson, Az.

Re: G code question

Post by SteveNelson46 »

I don't know how your controller handles the gantry and head movement but in WinCNC there is a command line at the top of the control screen. I just type "Z-.5" (no quotes) and press enter to move the spindle down 1/2 inch. Similarly for the X and Y movements.
Steve

mcamp001
Posts: 10
Joined: Thu Oct 07, 2021 4:40 pm
Model of CNC Machine: Mill Right Mega V

Re: G code question

Post by mcamp001 »

Thanks Steve. In my case the spindle would be moving up, so I don't think the "-" is good. I tried "G90 G0 Z .5", but it doesn't like the decimal point. This is the NGC interface that MillRight supplies.

User avatar
SteveNelson46
Vectric Wizard
Posts: 2310
Joined: Wed Jan 04, 2012 2:43 pm
Model of CNC Machine: Camaster Stinger 1
Location: Tucson, Az.

Re: G code question

Post by SteveNelson46 »

Try just entering Z.5 and press enter
Steve

User avatar
TReischl
Vectric Wizard
Posts: 4655
Joined: Thu Jan 18, 2007 6:04 pm
Model of CNC Machine: 8020 48X36X7 RP 2022 UCCNC Screenset
Location: Leland NC

Re: G code question

Post by TReischl »

Or, if all that fails, try G0Z0.5

That may not work either, LOL.

Or, it may be finicky in that it wants all the decimal places. eg.: Z0.5000
"If you see a good fight, get in it." Dr. Vernon Johns

User avatar
martin54
Vectric Archimage
Posts: 7354
Joined: Fri Nov 09, 2012 2:12 pm
Model of CNC Machine: Gerber 48, Triac PC, Isel fixed gantry
Location: Kirkcaldy, Scotland

Re: G code question

Post by martin54 »

Once you have set your 0 positions do you need to move your spindle up an exact amount? Just manually jogging the spindle up a little is enough, the machine knows where it is in relation to the work piece so it really doesn't matter.

mcamp001
Posts: 10
Joined: Thu Oct 07, 2021 4:40 pm
Model of CNC Machine: Mill Right Mega V

Re: G code question

Post by mcamp001 »

thanks all. I can just jog it up as suggested, but the question was more of wondering how to translate a fraction of an inch in a command. No Worries, all good!

User avatar
rink
Vectric Craftsman
Posts: 188
Joined: Tue Jul 07, 2020 3:45 pm
Model of CNC Machine: OpenBuilds LEAD 1510 / VCarve Pro
Location: USA
Contact:

Re: G code question

Post by rink »

Good evening.
I’m not the expert here, but just a thought…

In the toolpaths you run, doesn’t the gcode move the z-axis by fractions of an inch all the time throughout the job?

Have you looked to see how your post processor spits out those commands?

Thx, rink.
I want to be unique like everyone else.

User avatar
adze_cnc
Vectric Wizard
Posts: 4379
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008
Location: Vancouver, BC, Canada

Re: G code question

Post by adze_cnc »

mcamp001 wrote:
Thu Oct 21, 2021 6:31 pm
I tried .5, but doesn't like the decimal.
I'm a bit late to the party but...

How doesn't "it" like the decimal? i.e. what response are you getting that shows you that "it" like the decimal?

For that matter what is "it"? I'm presuming you're enter these numbers via some pendant but what are you entering the numbers into (GRBL, Mach 3, etc.)?

User avatar
martin54
Vectric Archimage
Posts: 7354
Joined: Fri Nov 09, 2012 2:12 pm
Model of CNC Machine: Gerber 48, Triac PC, Isel fixed gantry
Location: Kirkcaldy, Scotland

Re: G code question

Post by martin54 »

rink wrote:
Tue Oct 26, 2021 2:22 am
Good evening.
I’m not the expert here, but just a thought…

In the toolpaths you run, doesn’t the gcode move the z-axis by fractions of an inch all the time throughout the job?

Have you looked to see how your post processor spits out those commands?

Thx, rink.

Not really, the z axis (or any other axis) will only move when it is instructed to do so & it will move at the speed it is instructed to a distance it is instructed to. Not sure instructed is the right word but not sure how else to describe it :lol: :lol:
On a profile cut for example without ramping the z axis will plunge to a depth that it has been instructed to move to & will then remain at that depth for the complete pass.
On something like a detailed 3D finish pass then the z axis can often be moving almost continuously which is what you might be thinking about :lol: :lol:
Gcode is just a series of instructions that the CNC control software reads & then takes the appropriate action :lol: :lol:

Just to add, the OP was trying to move the z axis a set amount using the control software before running a toolpath for the project :lol: :lol:

Post Reply