Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 09:05:17 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  G-Code, CAD, and CAM
| |-+  G-Code, CAD, and CAM discussions
| | |-+  Simple G code example needed
Pages: 1 2 »   Go Down
Print
Author Topic: Simple G code example needed  (Read 1249 times)
0 Members and 1 Guest are viewing this topic.
Kristin D
Active Member

Offline Offline

Posts: 203


Take that you LazyCam, next stop the glue factory!


View Profile
« on: July 21, 2008, 07: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, 07:24:45 PM by Kristin D » Logged
Hood
Active Member

Online Online

Posts: 4,904


Carnoustie, Scotland


View Profile
« Reply #1 on: July 21, 2008, 08: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 Wink
Hood
Logged
Kristin D
Active Member

Offline Offline

Posts: 203


Take that you LazyCam, next stop the glue factory!


View Profile
« Reply #2 on: July 21, 2008, 08: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 Cheesy
Logged
RICH
Global Moderator
*
Online Online

Posts: 512



View Profile
« Reply #3 on: July 21, 2008, 08: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
 

* kristin_TURN_OD.txt (0.35 KB - downloaded 19 times.)

* kristin_WIZARD_TURN_OD.jpg (33.95 KB, 640x378 - viewed 220 times.)

* kristin_MACH_SCREEN.jpg (38.1 KB, 640x361 - viewed 217 times.)
Logged
Overloaded
Global Moderator
*
Online Online

Posts: 1,148




View Profile
« Reply #4 on: July 21, 2008, 08:41:19 PM »

 Smiley



Good timing Rich  Cheesy

Here is the code too...ready to go. (cept maybe the feed rates, I run fast as I can)


* ScreenHunter_09_Jul._21_21.35.gif (21.33 KB, 1042x522 - viewed 215 times.)
* Turn.tap (1.39 KB - downloaded 16 times.)
« Last Edit: July 21, 2008, 08:42:51 PM by Overloaded » Logged

You must learn from the mistakes of others. You cant possibly live long enough to make them all yourself.
Kristin D
Active Member

Offline Offline

Posts: 203


Take that you LazyCam, next stop the glue factory!


View Profile
« Reply #5 on: July 21, 2008, 08: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
Logged
Overloaded
Global Moderator
*
Online Online

Posts: 1,148




View Profile
« Reply #6 on: July 21, 2008, 08: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, 08:49:40 PM by Overloaded » Logged

You must learn from the mistakes of others. You cant possibly live long enough to make them all yourself.
Kristin D
Active Member

Offline Offline

Posts: 203


Take that you LazyCam, next stop the glue factory!


View Profile
« Reply #7 on: July 21, 2008, 08: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
Logged
Overloaded
Global Moderator
*
Online Online

Posts: 1,148




View Profile
« Reply #8 on: July 21, 2008, 09: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


* ScreenHunter_11_Jul._21_21.58.gif (12.83 KB, 531x315 - viewed 222 times.)

* ScreenHunter_12_Jul._21_21.59.gif (13.83 KB, 512x353 - viewed 221 times.)
Logged

You must learn from the mistakes of others. You cant possibly live long enough to make them all yourself.
Kristin D
Active Member

Offline Offline

Posts: 203


Take that you LazyCam, next stop the glue factory!


View Profile
« Reply #9 on: July 21, 2008, 09:13:52 PM »

Nope it's just not there. Loaded the lset screen and nothing in the wizards looks like you discribe.

Kristin
Logged
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!