Re: Learning G Code
Posted by
ballendo
on 2001-12-24 07:09:42 UTC
Brian, list,
A properly written G code interpreter will ignore "white space".
Therefore the lines (called blocks in g code):
G01 x5 f12
G01x5f12
G 0 1 x 5 f 1 2
G01 x5 f 1 2
will all be treated the same way.
G code is also SUPPOSED to ignore case, but many interpreters require
the use of upper case letters to work correctly. MaxNC is one example.
Hope this helps.
Ballendo
P.S. Yes, most gcode interpreters use ( ) around comments, and
everything within the parenthesis is ignored. An exception to this is
EMC's messaging system, which reads into the left "(", looking for
the letters MSG. This is something added by Tom Kramer while writing
the interpreter used in EMC, and is NOT standard g code...
A properly written G code interpreter will ignore "white space".
Therefore the lines (called blocks in g code):
G01 x5 f12
G01x5f12
G 0 1 x 5 f 1 2
G01 x5 f 1 2
will all be treated the same way.
G code is also SUPPOSED to ignore case, but many interpreters require
the use of upper case letters to work correctly. MaxNC is one example.
Hope this helps.
Ballendo
P.S. Yes, most gcode interpreters use ( ) around comments, and
everything within the parenthesis is ignored. An exception to this is
EMC's messaging system, which reads into the left "(", looking for
the letters MSG. This is something added by Tom Kramer while writing
the interpreter used in EMC, and is NOT standard g code...
--- In CAD_CAM_EDM_DRO@y..., "ka1bbg" <ka1bbg@w...> wrote:
> Hi, i am a bit rusty but got a few things you should be able to do.
first use the jog and move
<snip>
> all commands have a space as i have shown you.
> g00spacex.5spacey.5spacef00space
> a simple program to move axis
> g01 f02 x.5 y.5 move x,y .5inch
> g00 x.5 y0 rapid y to 0
> g00 x0 rapid x to 0
> g01 z.5 move z .5
inch
> g00 z0 rapid z
back to 0
>
> now you may use "mdi" or manual execute mode from the keyboard. or
you may
> type this simple program up in notepad but make sure you save the
file as
> "ascii text mode" or text only file.
> do not enter the explaination i gave as part of the program. I
think you
> must use ( ) or " " to tell program to ignore comments otherwise it
may give
> you an error or make a move you do not want!. cul brian f.
>
Discussion Thread
woodknack
2001-12-23 05:34:18 UTC
Learning G Code
cncdxf
2001-12-23 06:08:56 UTC
Re: Learning G Code
Richard Konnen
2001-12-23 06:13:05 UTC
Re: [CAD_CAM_EDM_DRO] Learning G Code
Scot Rogers
2001-12-23 09:04:03 UTC
RE: [CAD_CAM_EDM_DRO] Learning G Code
wanliker@a...
2001-12-23 10:26:38 UTC
Re: [CAD_CAM_EDM_DRO] Learning G Code
Michael Milligan
2001-12-23 12:14:39 UTC
RE: [CAD_CAM_EDM_DRO] Learning G Code
ka1bbg
2001-12-23 15:23:52 UTC
Re: [CAD_CAM_EDM_DRO] Learning G Code
Chris L
2001-12-23 18:19:54 UTC
Re: [CAD_CAM_EDM_DRO] Learning G Code
ballendo
2001-12-24 05:27:50 UTC
Re: Learning G Code
ballendo
2001-12-24 07:09:42 UTC
Re: Learning G Code
doug98105
2001-12-24 08:58:09 UTC
Re: Learning G Code
ballendo
2001-12-25 00:26:51 UTC
G code standard vs. opinion was Re: Learning G Code
Paul
2001-12-25 04:03:25 UTC
Re: [CAD_CAM_EDM_DRO] G code standard vs. opinion
ballendo
2001-12-25 05:09:55 UTC
Re: G code standard vs. opinion
Matthew King
2001-12-25 05:36:32 UTC
Re: [CAD_CAM_EDM_DRO] G code standard vs. opinion was Re: Learning G Code
wanliker@a...
2001-12-25 09:52:01 UTC
Re: [CAD_CAM_EDM_DRO] G code standard vs. opinion was Re: Learning G Code
Paul
2001-12-25 13:58:30 UTC
Re: [CAD_CAM_EDM_DRO] Re: G code standard vs. opinion