![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
As I am new to gcode, I am doing allot of reading up and trial and error in the learning proccess. I go through the time to try to get the code written just right, and when I have a problem and show it to the programmer, he whips out code that is barely recognisable (to me), but works just fine. For instance G01 he may just write as G1. He also told me how I dont really need to write out full x-y coordinants in every block as I was doing, at least not in incremental. Is this typical or special code for the machines that we use? (ESAB) I cant find "G1" in any of the texts I have on codes, or in the ESAB manuals. Example code that works: G91 G00 X0 Y.5 G42 M70 G1 X.5 G1 Y-.4 G1 X20 G1 Y2.75 G1 X-20 Y-2.25 M73 M69 russ |
|
#2
| |||
| |||
| 070617-0908 EST USA hutchndi: In the parsing of fields (like G01) into sub-parts ( G or M, and a number) some portion of the field is extracted, in this case the single alpha character is used to identify the function of the following numeric value. In the case of numeric values leading zeros are ignored. Thus, 00001, or 01, is the same as 1. So G01 and G1 produce the same result. In a typical G-code system you will find a non-numeric character, such as A, a, R, #, X, x, (, DPRNT, etc. preceeding a numeric field (in the case of DPRNT it is more complex). The non-numeric identifies what action is to be taken with the following numeric field. . |
|
#3
| ||||
| ||||
| Also in order to save memory on systems that short on mem. size, check for commands that are modal (global). Like not repeating the G1, once it is entered, the control stays in G1 until replaced by G0 or ? So in your code you only need it on the G1 X.5 Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
![]() |
| 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 |
| Alternate Motor Pulley? | giantcake | Shopmaster/Shoptask | 2 | 01-02-2008 06:35 PM |
| gas prices and alternate forms of transportation | CNCadmin | CNCzone Club House | 35 | 07-21-2006 10:00 PM |
| 80/20 Alternate | jbuskirk | 80/20, TSLOTS and other Aluminum Framing Systems | 1 | 11-04-2004 08:21 AM |
| Alternate Linear Rails?? | ehiebert | DIY-CNC Router Table Machines | 12 | 10-02-2003 09:36 AM |
| Alternate Z-axis designs | chuckknigh | DIY-CNC Router Table Machines | 4 | 04-29-2003 01:24 PM |