Hello Guest it is April 26, 2019, 12:30:34 PM

Author Topic: Simple G code example needed  (Read 11699 times)

0 Members and 1 Guest are viewing this topic.

Offline Kristin D

*
  •  203 203
  • Take that you LazyCam, next stop the glue factory!
    • View Profile
Simple G code example needed
« 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
« Last Edit: July 21, 2008, 08:24:45 PM by Kristin D »

Offline Hood

*
  •  25,785 25,785
  • Carnoustie, Scotland
    • View Profile
Re: Simple G code example needed
« Reply #1 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

Offline Kristin D

*
  •  203 203
  • Take that you LazyCam, next stop the glue factory!
    • View Profile
Re: Simple G code example needed
« Reply #2 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

Offline RICH

*
  • *
  •  7,313 7,313
    • View Profile
Re: Simple G code example needed
« Reply #3 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
 
Re: Simple G code example needed
« Reply #4 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)
« Last Edit: July 21, 2008, 09:42:51 PM by Overloaded »

Offline Kristin D

*
  •  203 203
  • Take that you LazyCam, next stop the glue factory!
    • View Profile
Re: Simple G code example needed
« Reply #5 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
Re: Simple G code example needed
« Reply #6 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.
« Last Edit: July 21, 2008, 09:49:40 PM by Overloaded »

Offline Kristin D

*
  •  203 203
  • Take that you LazyCam, next stop the glue factory!
    • View Profile
Re: Simple G code example needed
« Reply #7 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
Re: Simple G code example needed
« Reply #8 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

Offline Kristin D

*
  •  203 203
  • Take that you LazyCam, next stop the glue factory!
    • View Profile
Re: Simple G code example needed
« Reply #9 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