Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Kristin D on July 21, 2008, 08:20:27 PM

Title: Simple G code example needed
Post by: Kristin D on July 21, 2008, 08:20:27 PM
Ha, thought I knew what I was doing almost, finally got the X & Z axis motors mounted on my Taig,

Wrote a bit of code:

g0 z0

g1 z .25

g0 z0

g1 x .01

g1 z .25

g0 x 0

g0 z0

g1 x .2


g1 z .25


etc...



Sure there is an easier way with loops but can't find the examples I have seen here.


All I want to do at the moment is say take a piece of round stock in the lathe, and turn say .5 long with repeat passes off .010" for the purpose of taking a video, I also seem to have forgotten how to put a dwell time in as I would like to have say 15-30 seconds to man the camera after I hit cycle start. Think that is g4 but can't remember the syntax like g4 P30?


Thanks

Kristin
Title: Re: Simple G code example needed
Post by: Hood on July 21, 2008, 09:17:02 PM
yep G4 P30 would be a 30 second delay, unless however you have it set for millisecond, check on the general config page.
And just use a wizard, put in start and finish Dia, Start and finish Z and DOC for a pass and you will get all the code written for you ;)
Hood
Title: Re: Simple G code example needed
Post by: Kristin D on July 21, 2008, 09:22:11 PM
using the demo version and I don't find any wizards for that (darn wizards!) I think Jimpinder had an example of a loop & repeat thing but unable to locate the thread.

Kristin :D
Title: Re: Simple G code example needed
Post by: RICH on July 21, 2008, 09:34:33 PM
Kristin,
Try using one of the wizards to generate the code and the add the dwell in after each pass.
See attached files.

RICH
 
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 09:41:19 PM
 :)



Good timing Rich  :D

Here is the code too...ready to go. (cept maybe the feed rates, I run fast as I can)
Title: Re: Simple G code example needed
Post by: Kristin D on July 21, 2008, 09:41:40 PM
Rich,

Where are the wizards located? When I click wizards in Mach turn I don't recognise which one may be the one you used.

Kristin
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 09:48:00 PM
Wizards/Pick Wizard/Turning/Run/OD Turning, OD Fillet
If you leave the Radius at 0.000, it will turn to a square corner.
Title: Re: Simple G code example needed
Post by: Kristin D on July 21, 2008, 09:53:25 PM
Wizards/Pick Wizard/Turning/Run/OD Turning, OD Fillet
If you leave the Radius at 0.000, it will turn to a square corner.

Turning is not there! Only Teach, Teach rev 1.4 and Thread milling, I am running the demo version.

Kristin
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 10:01:20 PM
Which screen set are you using ?

Click: View/Load Screens/then at the bottom,files of type, Turn files.lset/1024.lset
Title: Re: Simple G code example needed
Post by: Kristin D on July 21, 2008, 10:13:52 PM
Nope it's just not there. Loaded the lset screen and nothing in the wizards looks like you discribe.

Kristin
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 10:19:33 PM
Hmmmm. maybe you need the .Lic file to get the wizards..but I'm pretty sure that I had them befor I got the Lic, they just would not post code.
Anyway, I posted the code for you earlier...the .tap file.
Yoyu can tweak it as you need.
RC

 
Title: Re: Simple G code example needed
Post by: Kristin D on July 21, 2008, 10:21:58 PM
probably true, I did run the file you posted and can work off of that.

Thanks a bunch

Kristin

(now wandering off more confused than ever, where the heck is that big hammer?)
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 10:27:06 PM
NO NO NO....No hammer necessary.....I tried that...only made matters worse. :D
 
rc
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 10:37:48 PM
DANG, I'm almost CERTAIN that I fooled with the wizards befor the Lic.
Maybe you need to dwnld Mach again ? ? ? ?
Good Luck.
Let me know when you are done with that HAMMER >:(
 :)
Title: Re: Simple G code example needed
Post by: Kristin D on July 21, 2008, 11:10:51 PM
Just downloaded the "unstable" version and sure enough the wizard('s) are there! Sneaky Wizzards, a bad lot all of them always promising to turn lead into gold or some such!

Kristin ;D
Title: Re: Simple G code example needed
Post by: Overloaded on July 21, 2008, 11:18:38 PM
(keep that hammer handy)
Title: Re: Simple G code example needed
Post by: trev36 on July 21, 2008, 11:34:38 PM
Kristin

I wrote a short sub routine I think will work .

G90
G01X0.0Z.100F50.
Z0.0
M98 P1 L25
G90
G01X0.0
Z0.0
M30
%

O1
G91
G01X-.010F25.
G01Z-.500
G01X0.010
G01Z0.500
G01X-.010
M99
%



Travis
Title: Re: Simple G code example needed
Post by: Kristin D on July 22, 2008, 02:38:07 PM
Travis,

That does the trick, now I need to beef up my motor mount as I can see it flexing so I need to box in the third side of my L shape bracket.

Kristin