CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Basic G-Code Question

Posted by Jon Elson
on 2001-10-18 22:44:16 UTC
Dan Statman wrote:

> I have a very basic G-Code question. My CNC has only been up and running
> for about 10 days, and I have about 10 days experience with G-Code, ;-).
>
> I was programming a series of moves to create a Greek-Key pattern which is a
> sequence of horizontal and vertical lines only (although arranged in an
> interesting pattern). I was able to complete the task and the result can be
> viewed at the following link:
>
> http://members.rennlist.com/statmandesigns/P2_Close.jpg

Very NEAT!

> I generated the coordinates in a Microsoft Excel document and then converted
> that to a G-Code program. The successive data points are always redundant
> in one of the two coordinates since you always move in either a vertical or
> horizontal straight line. If you are sitting at the point (0,0) and you
> want to move to (0, .250) then the G-code would simply be:
> G01 Y0.250
>
> But is it wrong to specify both the X and Y coordinate if the X coordinate
> is not moving. In other words, will this line of G-code result in the same
> movement:
> G01 X0 Y0.250
>

The two lines are equivalent, and specifying the same coordinate the machine
is already at is NOT an error at all.

>
> When converting the Excel data I ended up with both coordinates on every
> line of G-code even though one of the two was always redundant. I am using
> TurboCNC to control my stepper motors and it would not work with both
> coordinates specified. It would do nothing until the next line of G-code
> and then it would connect with a diagonal line, which is not what I wanted.
>
> Is this the way all G-Code programs work or is there something peculiar
> about TurboCNC??

No, it appears that TurboCNC does not follow the RS-274D standard, which
specifically allows what you are having trouble with. My Allen-Bradley
7320 and EMC will both accept it either way.

Jon

Discussion Thread

Dan Statman 2001-10-18 17:39:11 UTC Basic G-Code Question Art Fenerty 2001-10-18 18:32:48 UTC Re: [CAD_CAM_EDM_DRO] Basic G-Code Question ccs@m... 2001-10-18 19:01:01 UTC Re: [CAD_CAM_EDM_DRO] Basic G-Code Question wanliker@a... 2001-10-18 19:16:04 UTC Re: [CAD_CAM_EDM_DRO] Basic G-Code Question Dan Statman 2001-10-18 20:37:55 UTC Re: [CAD_CAM_EDM_DRO] Basic G-Code Question Jon Elson 2001-10-18 22:44:16 UTC Re: [CAD_CAM_EDM_DRO] Basic G-Code Question dkowalcz@d... 2001-10-19 06:37:09 UTC Re: Basic G-Code Question Dan Statman 2001-10-19 07:01:34 UTC Re: [CAD_CAM_EDM_DRO] Re: Basic G-Code Question wayne_j_hill@y... 2001-10-19 08:37:01 UTC Re: Basic G-Code Question Jon Elson 2001-10-19 11:09:40 UTC Re: [CAD_CAM_EDM_DRO] Re: Basic G-Code Question Ray 2001-10-19 14:43:31 UTC Re: Re: Basic G-Code Question