CAD CAM EDM DRO - Yahoo Group Archive

[CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?)

Posted by Chuck Rice
on 2004-11-02 08:04:17 UTC
Interesting. What I have been doing is writing a macro language for
gcode. I have written a set of macros that allow you to insert a line
like:

engrave({0.5},{0.5},{0.9},{Part #2X534C 10/31/2004})

Where the first two parameters are and x and y offset to use as the
start point, the third parameter is the scaling factor, and the
fourth is the text to be engraved. You can insert this macro into a
normal EMC program and it will generate the thousands of gcode lines
to engrave the part. The example I sent earlier was the output
generated to engrave two characters. The #nnnn calculations allow the
macro to start at the x and y offsets and increment them based on the
max width of each character as it is drawn.

It seems to work and work well, but as you saw, it does use #nnnn
variables to do it's job. To define a variable, I created a macro

defineVar({maxCutPerPass})

That generates a new #nnnn number and defines a macro, in this case
maxCutPerPass, that you can use anywhere in your gcode program.
maxCutPerPass will then expand out to the proper #nnnn variable.

This is all done with a standard macro pre-processor called m4. m4 is
available on all UNIX machines and I think that it runs on PCs too
since it is used by the 'make' process when you do a ./configure.

The news that many gcodes do not support #nnnn variables is thus not
great news.

That is why I was asking the question about standards. Sounds like
the answer is that only the basic stuff is standard and beyond that
there is nothing. Thanks for your insight. -Chuck-



At 10:17 AM +0000 11/2/04, Fred Smith wrote:
>--- In CAD_CAM_EDM_DRO@yahoogroups.com, Chuck Rice <Chuck@W...> wrote:
>> At 1:11 PM -0800 11/1/04, Chris DeHut wrote:
>
>If you have written a G-code program over 30-40 lines, you are
>wasting time that could be better spent designing parts, planning
>process and making chips. DXF converters are free and cad-cam
>programs are very inexpensive.
>
>G-code is supposed to be man-readable. It started out as all hand
>coded.
>
>> #4708=[#4708+[#4706*0.8379]]
>
>Use of varables and expression evaluation is not standard g-code.
>This is the EMC developer's isolated interpretation of a machine
>controller, selecting the features he wanted. Fanuc Macro language
>(an expensive optional add-on) uses the cryptic # symbol for
>variables, but in many versions does not permit mixed expression
>evaluation and motion commands on the same line. It was a hardware
>issue when all the controller logic circuits were hand wired,
>discrete components and simple logic chips.
>
>Most controllers use subroutines and repeat statements, with absolute
>and incremental modes to make hand written code more legible, thus
>eliminating a lot of the need for cryptic code. EMC does not support
>subroutines or repeat commands.
>
>A decent cad-cam program will permit you to produce many more parts
>per hour spent developing programs, reduce your mistakes, and permit
>much more efficient changes to your part designs. It will also
>permit you to connect your drawing and design skills directly to the
>CNC controller, without restricting your programming to the speed at
>which you type.
>
>For example, Engraving Text is a very simple process with a CAD
>system, but a gut wrenching task when manually programming.
>
>3D surfaces can easily be processed by nearly any hobby class
>controller. I doubt 1 in 10,000 would even try to manually program
>these parts. Pocketing, the process of clear cutting a closed shape
>to a defined depth, is a very tedious manual process. With a cad-cam
>program, a perfect toolpath and the associated g-code can be created
>in a few seconds.
>
>In addition to the commands that others have mentioned as
>standardized, also learn (for milling)
>
>G90 Absolute mode
>G91 Incremental mode
>G41, G42, G40 cutter comp control
>
>G81 and G83 are drilling cycles that are very similar between
>controllers, with an ocassional swapping of letters for the various
>parameters. All the other drill cycles will be more
>machine/controller manufacturer dependent.
>
>Fred Smith - IMService - Vote Early and Often
>
>hobby and group discounts are at:
>http://www.cadcamcadcam.com/hobby
>
>
>
>
>
>Addresses:
>FAQ: http://www.ktmarketing.com/faq.html
>FILES: http://groups.yahoo.com/group/CAD_CAM_EDM_DRO/files/
>Post Messages: CAD_CAM_EDM_DRO@yahoogroups.com
>
>Subscribe: CAD_CAM_EDM_DRO-subscribe@yahoogroups.com
>Unsubscribe: CAD_CAM_EDM_DRO-unsubscribe@yahoogroups.com
>List owner: CAD_CAM_EDM_DRO-owner@yahoogroups.com,
>wanliker@..., timg@...
>Moderator: pentam@... indigo_red@...
>davemucha@... [Moderators]
>URL to this group: http://groups.yahoo.com/group/CAD_CAM_EDM_DRO
>
>OFF Topic POSTS: General Machining
>If you wish to post on unlimited OT subjects goto:
>aol://5863:126/rec.crafts.metalworking or go thru Google.com to
>reach it if you have trouble.
>http://www.metalworking.com/news_servers.html
>
>http://groups.yahoo.com/group/jobshophomeshop I consider this to
>be a sister site to the CCED group, as many of the same members are
>there, for OT subjects, that are not allowed on the CCED list.
>
>NOTICE: ALL POSTINGS TO THIS GROUP BECOME PUBLIC DOMAIN BY POSTING
>THEM. DON'T POST IF YOU CAN NOT ACCEPT THIS.....NO
>EXCEPTIONS........
>bill
>List Mom
>List Owner
>
>
>Yahoo! Groups Links
>
>
>
>

Discussion Thread

tigershark_b 2004-10-31 06:50:11 UTC easy to learn use cad/cam cnc software? R Rogers 2004-10-31 07:04:50 UTC Re: [CAD_CAM_EDM_DRO] easy to learn use cad/cam cnc software? caudlet 2004-10-31 08:49:17 UTC Re: easy to learn use cad/cam cnc software? Tyson S. 2004-10-31 11:00:16 UTC Re: [CAD_CAM_EDM_DRO] Re: easy to learn use cad/cam cnc software? caudlet 2004-10-31 12:08:09 UTC Re: easy to learn use cad/cam cnc software? Alan Marconett 2004-10-31 14:20:21 UTC Re: [CAD_CAM_EDM_DRO] easy to learn use cad/cam cnc software? Kim Lux 2004-10-31 14:23:39 UTC Re: [CAD_CAM_EDM_DRO] easy to learn use cad/cam cnc software? Tom Hubin 2004-10-31 15:36:48 UTC Re: [CAD_CAM_EDM_DRO] easy to learn use cad/cam cnc software? Greg Jackson 2004-10-31 18:48:33 UTC RE: [CAD_CAM_EDM_DRO] Re: easy to learn use cad/cam cnc software? Tyson S. 2004-10-31 20:17:11 UTC RE: [CAD_CAM_EDM_DRO] Re: easy to learn use cad/cam cnc software? caudlet 2004-11-01 06:41:38 UTC Re: easy to learn use cad/cam cnc software? Chuck Rice 2004-11-01 09:50:16 UTC Gcode standards (Was: easy to learn use cad/cam cnc software?) lcdpublishing 2004-11-01 11:05:27 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Chuck Rice 2004-11-01 13:03:19 UTC [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Chuck Rice 2004-11-01 13:20:16 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Raymond Heckert 2004-11-01 17:37:05 UTC Re: [CAD_CAM_EDM_DRO] easy to learn use cad/cam cnc software? Fred Smith 2004-11-02 02:18:24 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) doug98105 2004-11-02 05:11:29 UTC Re: easy to learn use cad/cam cnc software? caudlet 2004-11-02 07:02:47 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Chuck Rice 2004-11-02 08:04:17 UTC [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Fred Smith 2004-11-02 08:55:35 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Chuck Rice 2004-11-02 09:19:53 UTC [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Jon Elson 2004-11-02 10:16:49 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) R Rogers 2004-11-02 17:44:41 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Ron Ginger 2004-11-02 18:38:03 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Greg Jackson 2004-11-02 19:45:39 UTC RE: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) wthomas@g... 2004-11-02 22:08:22 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode stand_from Mechanical Desktop Fred Smith 2004-11-03 06:34:54 UTC Re: Gcode stand_from Mechanical Desktop Fred Smith 2004-11-03 07:07:21 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Chuck Rice 2004-11-03 07:59:50 UTC [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Steven Ciciora 2004-11-03 08:31:16 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) turbulatordude 2004-11-03 09:02:36 UTC Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Jon Elson 2004-11-03 09:33:44 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Paul 2004-11-03 10:23:05 UTC Re: [CAD_CAM_EDM_DRO] Re: Gcode standards (Was: easy to learn use cad/cam cnc software?) Chuck Rice 2004-11-04 17:59:05 UTC Gcode standards (more info) Ron Kline 2004-11-04 18:35:29 UTC Won't do that again -Gecko Roy J. Tellason 2004-11-04 20:01:44 UTC Re: [CAD_CAM_EDM_DRO] Won't do that again -Gecko R Rogers 2004-11-05 05:13:37 UTC Re: [CAD_CAM_EDM_DRO] Gcode standards (more info)