Hello Guest it is November 15, 2019, 04:42:51 AM

Author Topic: Is there a way to change G00 G43 H3 Z0.2  (Read 4570 times)

0 Members and 1 Guest are viewing this topic.

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Is there a way to change G00 G43 H3 Z0.2
« on: August 13, 2008, 07:49:20 PM »
Hello, i need my mill to bring Z axis down after X and Y are in postion.
Below is example of a Bolt Circle Program by Mach NFS...

(Code by Newfangled Wizard, 8/13/2008)
(Program Posted for Aluminum )
G0 G49 G40.1 G17
G80 G50 G90 G98 
G20 (Inch)
(***** Circular Hole Pattern *****)
M6 T3
M03 S4000
M9
G00 G43 H3 Z0.2<(Need this removed)
G81(Need G99 added here for drill cycles) X2 Y0 Z-0.3 R0.1 F7.9
 X1.6235 Y0.7818
 X0.7775 Y0.9749
 X0.099 Y0.4339
 X0.099 Y-0.4339
 X0.7775 Y-0.9749
 X1.6235 Y-0.7818
G80
M5 M9
M30

As for milling operation i need Z to come down to ref position AFTER X & Y are in position.
Is there a way to have Mach do this automaticaly?Like with VB or Brain,I dont know. :)
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
Re: Is there a way to change G00 G43 H3 Z0.2
« Reply #1 on: August 14, 2008, 11:11:36 AM »
The wizard sets G98 in the init code. Im not sure why it was designed to use G98 instead of G99, but it does. I will talk to Brian and see if he has a good reason for this.

The G43, H3 line is complicated. The wizards are designed to let you build a complex job by using several of the individual functions. There is code in each function to see if the tool has been changed in this function, and if so it add the G43 H(tool num). However, if this is the first function in this session,  its going to insert this code- in your example you are using tool 3, and the wizard cannot tell if you have previously set tool3 so it must do it to be safe.

If you do not use tool table values be sure to set the tool number to Zero in the tool screen. If you are using tool offset then it is important to have the  offset applied. If it happens that the offset was already applied before the wizard ran there is no danger in doing it over.

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: Is there a way to change G00 G43 H3 Z0.2
« Reply #2 on: August 14, 2008, 12:23:52 PM »
I use tool offsets,but i turn them on with a altered VB on the M6 macros.

Or maybe move the line to be after the X & Y move,would that still effect how the wizards work?
I tried this with a Circle Pocket and works,but the Drill cycles still need to have the line removed and G99 added to the Drill cycle line.
Could there be somthin added to Mach to look for these in a generated G code and automaticaly change them to what the user needs before the code is posted to be run?

Thanks again
Troy
« Last Edit: August 14, 2008, 12:36:57 PM by TDAY »
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com
Re: Is there a way to change G00 G43 H3 Z0.2
« Reply #3 on: August 15, 2008, 09:40:45 PM »
Are you sure you are using the 2 Z fields correctly?

Traverse height is a safe height, meant to be OK to  make any XY move, it should be above clamps, etc.

Rapid Height should probably be called something like Retract height. It is the R word in the drill cycle.

Moving the Z down to the Traverse height before moving to the first XY location will be safe if you have used a safe Traverse height.

Re: Is there a way to change G00 G43 H3 Z0.2
« Reply #4 on: August 16, 2008, 09:29:21 PM »
Ok, I talked to Brian and I understand why he put the G98 mode on the drill cycles. It is a safer option. If you use G99 the tool only comes up to the retract height between moves.  With G98 it comes up to either retract or the rapid height, whichever is higher. That can take more time, but if you want to get fast, and are sure the retract height is high enough, then simply program the Rapid height to be something like .001 higher that retract. That will operate exactly like the G99 option.

Since wizards are meant to be simple, and for beginners we always try to make them as safe as possible, so this one will stay with G98

Offline TDAY

*
  •  165 165
    • View Profile
    • Home CNC Stuff
Re: Is there a way to change G00 G43 H3 Z0.2
« Reply #5 on: August 18, 2008, 09:05:28 AM »
Ok.I agree with the newwbie set up,and for saftey its not good or standard to have a newbie to learn that Z axis movement is the first.No movement of Z should happen until X & Y are in position.(Safe to say for 95% of typical programs for vertical type mills.).Not trying to nit pick as i truly like the NFS,iam just used to the "protocall" programing done in a job shop, day in day out.And got a few newbies here that iam trying to set up a screen set for,and make as simple as possable but still have a clean fast G code generated, without any adjustment needed to G code.(The Best of ALL worlds :)Is there a way to have somthing in MACH to look at a NFS program that is generated and make it automaticaly convert or change certain lines and code to what ever the user wants?Like some CAM softwares do.
Thanks again
Troy
« Last Edit: August 18, 2008, 09:25:57 AM by TDAY »
"I try to put forth the effort,before asking a dum question"
http://homecncstuff.elementfx.com