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
-
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
-
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
-
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
-
Kristin,
Try using one of the wizards to generate the code and the add the dwell in after each pass.
See attached files.
RICH
-
:)
Good timing Rich :D
Here is the code too...ready to go. (cept maybe the feed rates, I run fast as I can)
-
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
-
Wizards/Pick Wizard/Turning/Run/OD Turning, OD Fillet
If you leave the Radius at 0.000, it will turn to a square corner.
-
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
-
Which screen set are you using ?
Click: View/Load Screens/then at the bottom,files of type, Turn files.lset/1024.lset
-
Nope it's just not there. Loaded the lset screen and nothing in the wizards looks like you discribe.
Kristin
-
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
-
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?)
-
NO NO NO....No hammer necessary.....I tried that...only made matters worse. :D
rc
-
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 >:(
:)
-
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
-
(keep that hammer handy)
-
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
-
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