![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| TurboCNC Discuss TurboCNC controller software here! |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
| Trying to make this work- G code Hey guys, Maybe someone out here can figure this one out. I have a program that is suppose to move my x axis 4 inches one way and then back again 50 times! But I cant seem to get it to repeat? Anybody have any ideas? F10 G20 G90 M98 P1234 Q50 o1234 G1 x4 G1 x0 m99
__________________ My little piece of the web! http://users.adelphia.net/~wjdupont |
|
#2
| |||
| |||
| I don't understand g-code that well, but I'll tell you what I know! Firstly, you cannot have 2 g's on the same line, so you will have to seperate G20 and G90. Secondly, I have just looked through the turbocnc manual, and it does not mention M98 and M99. In the turbocnc example (sample.cnc) the writer uses M60 and M62 to call sub-routines, so maybe this should be used instead. Like I said, I do not know g-code, I have only read the instructions! |
|
#3
| ||||
| ||||
| Re: Trying to make this work- G code
Do this; Code: % O1 F10. G20 G90 M98 P1234 Q50 M30 O1234 G91 G1X4. X-4. M99 % The G90 and G20 are ok on the same line, G20 is (likely, depending on the control,) Inch programming, the G90 is Aboslute. :edit: If you're typing this in at the controller, you'll need to remove the "%"'s, and seperate the program. Create a new program, using 1234 as the number, and put the "lower" code in that program. :/edit: 'Rekd teh B.U.M.A. |
|
#4
| ||||
| ||||
| Still cant get it to work. Stops at m30 code?
__________________ My little piece of the web! http://users.adelphia.net/~wjdupont |
|
#5
| |||
| |||
| Rekd, when you say it's ok to have the two g's on the same line, are you talking about TurboCNC, or g-code in general? Also, I have re-read the instructions, and I have also noticed this:
|
| Sponsored Links |
|
#6
| ||||
| ||||
| You have to read the manual ![]() There is no way we could possibly guess what gcodes and associated parameters will work unless you can quote the relevant pages from your manual. Computers are very unforgiving of syntax errors!
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#7
| ||||
| ||||
Try replacing the "Q" with an "L" and see if that works.
__________________ Matt San Diego, Ca ___ o o o_ [l_,[_____], l---L - □lllllll□- ( )_) ( )_)--)_) (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#8
| ||||
| ||||
| What Rekd Said
__________________ Wee aim to please ... You aim to ... PLEASE. |
|
#9
| ||||
| ||||
| nope! no go. like I said it doesnt seem to be on that line. its the M30 line that it stops at.
__________________ My little piece of the web! http://users.adelphia.net/~wjdupont |
|
#10
| ||||
| ||||
| :edit: Keep in mind, you need two programs to do this. The first program, O1, calls the second program, O1234 via M98 P1234 L50 (The L50 repeats 50 times.) The M30 is the end of all programs. The M99 is the end of sub program, with loopback to the calling program, O1 in this case. When it stops at the M30, has it gone thru the 2 X moves? :/edit: Do you have a sample program? Perhaps a sample with sub programs or sub routines? 'Rekd |
| Sponsored Links |
|
#11
| ||||
| ||||
| No this is just something I found on the internet and was trying to get it going in turbocnc..
__________________ My little piece of the web! http://users.adelphia.net/~wjdupont |
|
#12
| ||||
| ||||
| stops and says what? Any error? Eric
__________________ I wish it wouldn't crash. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft | troyswood | Ability Systems - LPT Indexer and G-Code | 2 | 12-24-2006 10:21 PM |
| How do you make Bridgeport execute program? | Bill Gillen | Bridgeport and Hardinge Mills | 10 | 06-14-2005 09:26 AM |
| parametric programming | Karl_T | CamSoft Products | 21 | 05-24-2005 03:58 PM |
| Time to make it work | DESERT RAT | DIY-CNC Router Table Machines | 8 | 02-22-2005 08:30 AM |
| Work Holding Methods | InventIt | DIY-CNC Router Table Machines | 13 | 09-14-2004 04:13 AM |