WWW.DANCAD3D.COM (sm): THE OFFICIAL DANCAD3D (tm) "BETA TEST" WEB SITE.

TERMS OF USE, HOME, INDEX, SHORTCUT, WHAT'S NEW, DOWNLOADS, GET MAIN ZIP, DOCUMENTATION, VIDEO, HOOKUP#1, #2, #3, KEYWORDS

FEATURE FILM 4K+ DIGITAL CINEMA UNCOMPRESSED EDITING AND SOUND MIXING
PLUS DIY MOVIE 35mm FILM SCANNING AND DIY 35mm FILM RECORDER SOFTWARE.
"FREEISH" DI (DIGITAL INTERMEDIATE) SOFTWARE TO DOWNLOAD FOR MAKING
FEATURE MOTION PICTURES FOR CINEMA THEATRE, ULTRA-HD, HD, AND BROADCAST.
WORKS WITH FOOTAGE FROM DIGITAL CINEMA CAMERAS AND MOVIE FILM SCANS.
HIGH DEPTH COLOR CORRECTION. FRAME ACCURATE EDITING. HI-FI SOUND MIXING.

DANCAD3D (tm) DRAWING EDITOR, click on image for more info. and larger images. 3D ROBOTIC ANIMATION, click on image for more info. and larger images. 3D CONTOUR SURFACE, click on image for more info. and larger images. 3D CAM TOOL PATH, click on image for more info. and larger images. STEPPER MOTORS FOR CAM, click on image for more info. and larger images. DANCAM.EXE (tm) OPERATING 3D MILL, click on image for more info. and video. IM HELP STATUS, click on image for more info. and IM address.
Kodak (tm) LAD film negative scan image made with Canon XTi (tm) DSLR. Kinema Edit list Grading Levels #1 color correction tool . Kinema Edit list Grading Curves #1 color correction tool. Kinema Edit list Grading chroma Masking tool Vector display. Kinema Edit list Grading chroma Masking tool Waveform display. Kinema Edit list Grading Sharp/Soft filter tool. Kodak (tm) LAD image color corrected positive.
Click on these thumbnails for related information about my current software, features, and IM support. Hold [Shift] and click [Reload] to refresh IM thumbnail.

If are helping "Beta Test" you should report bugs and feel free to ask questions about the program's commands, it is best to e-mail me at tempnulbox (at) yahoo (dot) com and put "DANCAD3D (tm) 24x7 SUPPORT SUBMISSION" in the email subject line so your mail is not deleted as junk. See Section: 8 for more information about support related issues. I want you to ask questions so long as they are on the subject and relate to the current program's commands. If you do not get some kind of reply assume I did not get your message and resend. All submissions and correspondence become the sole property of Daniel H. Hudgins to do with as he sees fit, so stay on subject.

SECTION: 7.10.20.0
Programming tool paths for a CAM machine.
This Section, G & M codes and other ways of programming tool paths, Example tool path file made using G & M codes, Tool path file converted from G code into my ASCII file type, Color display of the example tool path file's movement lines, and Color display of a typical tool path file's movement lines.

Copyright (C) 1986-2009 by Daniel H. Hudgins, All Rights Reserved.

No part of "This Web Site" (HTML document), including associated files, may be: distributed, sublicensed, transmitted, copied, archived, mirrored, modified, bundled, embedded, sold, given away, rented, loaned, or shared in any form without express written permission in a formal Vendor agreement contract dated and signed in ink obtained directly from Daniel H. Hudgins by registered postal mail. All agreements for permission to distribute expire after a period no greater than one year from the date of the signing of the agreement by Daniel H. Hudgins. See the current "EULA" for information regarding limited copying and storage for the purpose of "Beta Testing" "This Web Site."

To view or use the current version of this Web page you may need to reload or refresh the display of this page by your browser. Just clicking on the browser's [Reload] or [Refresh] icon may not be enough to insure that all of the page's most current contents have been cached and displayed. Some browsers may have additional commands to help display the page's most current contents such as: holding down the [Shift] key and clicking on the [Reload] icon, holding down the [Control] key and clicking on the [Refresh] icon, holding down the [Control] and [Shift] keys and clicking on the [Refresh] icon, pressing the [Control] and [F5] keys, pressing [Control] and the [R] key, or some other combination of keys or clicks. Check to see which commands your HTML browser uses to load the most current page contents into its cache and then to display them onto the screen.

This Web site is dedicated to the thousands of "users" of my programs, those who have helped test my programs over the last 23 or so years, and especially those who shared their experiences with me.

You must read this notice: This is a licensed Web site (HTML document and associated files). You must read and agree to be legally bound in contract by the Terms of Use and conditions given in the End User License Agreement ("EULA"), Legal Notices, Instructions, Warnings, Disclaimers, and all other text in "SECTION: 0" of "This Web Site" (HTML document and associated files) before reading or using any of the information, software programs, and or files, contained in, linked to, and or associated with, "This Web Site" (HTML document and associated files). Any use or "Beta Testing" of "This Web Site" constitutes your acknowledgment of your full agreement with the current End User License Agreement ("EULA") and your decision to have this current license supersede all prior and contemporaneous agreements and understandings. Information and files in "This Web Site" (HTML document and associated files) have been placed here so that long time users of "The Author's" programs DANCAD3D.COM (tm) , DANCAD87.EXE (tm), DANCINEL.EXE (tm), DANCINES.EXE (tm) , DANCAM.EXE (tm) , or DANPLOT.EXE (tm) could help proofread the text of the documentation files or screens displayed, and also help test data files, example files, and or any software programs that might be made available from time to time, to aid "The Author" in finding mistakes, bugs, and other errors, omissions, defects, mistakes, and faults. Everything in "This Web Site" (HTML document and associated files) is "Beta Test", "Beta Code", Experimental, Preliminary, requires proofreading, or is being evaluated for possible revision, and is NOT warranted to be free of defect. To help "The Author" report any bugs, foul-ups, defects, or mistakes that you find, see "SECTION: 8" for instructions. "This Web Site" (HTML document and associated files) and all other files and programs by Daniel H. Hudgins are made available "AS IS" without warranty of any kind express, expressed, or implied. All offers and specifications are subject to change or discontinuation without notice of any kind. Please look over "SECTION: 8" of "This Web Site" before contacting "The Author."


Click here to go back to SECTION 7.0.0.0 Index for Machine Design and Operation pages.
Click here to go back to SECTION 7.10.0.0 Index for What is a CAM Machine Information pages.
Click here for top of DANCAD3D.COM (tm) Web site home page or here for home page INDEX.
Click here to check the current internet document if you are viewing this from a disk copy.
Note: If you want to go back to the previous link use the [Back] button in your browser.

This Section.

SECTION: 7.10 is for some "general" information about CAM, CNC, or NC type automated machine tools, see also the program files in the current distribution of my programs, the other parts of this HTML documentation, and the current On- Line version of this Web site for information more specifically about my programs. Any comparisons of my programs or methods to some others is only given as a vague generality of my opinion and is not intended as a recommendation or reference to any particular products, always make your own evaluations and comparisons before taking any action.

Click here to go back to the top of this page.

G & M codes and other ways of programming tool paths.

The tool path that the CAM machine's computer software will read in order to operate the CAM machine tool via the drive electronics is a set of coordinates. If you remember the "connect the dots" coloring books of your childhood that is basically what the tool path is, a set of dots or points, the CAM machine's computer and software use to figure out how to draw a line between the points, and send signals to the drive electronics to have the CAM machine follow those motions. The motion is carried out in very small steps that are counted off one by one at high speed, so that the motions of the machine seem almost continuous. The size of the motion steps used would generally be from 0.01 inch to 0.0001 inch for typical machine tools and might be much smaller for working on very tiny parts. Each movement between the coordinates of the points is made by having the motors move so many small steps left or right versus how many steps up or down and so on. In three dimensional CAM operations, such as when using my program DANCAM.EXE (tm), the points in the tool path to connect can be anywhere in a three dimensional volume of space, and my program can connect the points by going along a line using linear motion through the volume of space between those points. In some other CAM systems the motion might only be in flat planes, and so even though those other CAM systems can input points located in 3D space their movements to go from one point to another are only 2D, i.e. only two of the axis can move at the same time.

Today computers use many different data formats to store line drawings, i.e. tables of coordinates. My CAD and CAM software programs have several drawing file data formats which are used for different purposes. In the early days of "Numerical Control," or NC, the codes used in the tool path "punch tape" needed to be very simple and brief because the tool path "program" was punched as holes into a paper tape like the ones used for teletypes of that time. The codes used on those paper tapes were generally "G" plus two numbers or "M" plus two numbers, e.g. G01 or M06 and so on. So these codes are sometimes called "G codes" even though today some other codes have been added.

Because many of the early NC type CAM machines used G codes many of the CAM machines and software programs used for CAM have some way to share tool path data in this format. Sometimes plotter languages such as HPGL are also used to operate CAM machines that work like a pen plotter.

My CAD programs DANCAD3D.COM (tm) v2.7 and DANCAD87.COM (tm) v2.7 can read and write files that use a sub- set of G codes for the interchange of tool path data. G code tool path data loaded into my CAD programs can be edited and converted into the ASCII tool path file type that my CAM programs normally use.

The G code command set has special commands for "arcs" generally segments of a "quasi circle." I put quasi circle in quotation marks, since all shapes are of limited resolution on NC machines and "true" circle motion is not made by the incremental motion. The motion to make a shape on a CAM machine is actually produced by, and limited by, the stepwise motion of the motors or encoders on the motors. If you make a set of points very close together, say 0.0001 inch (0.0025 mm), you can get something close enough to the curve that you want. All tool path movements in my programs are made up of line segments, but these line segments can be very short which lets you alter or edit odd shapes, and irregular quasi curves, to be cut in ways that could difficult using the simple "arc" G02 and G03 commands. It is possible to use G01, linear motion, to make arcs if the individual points are spaced close together, you just get a larger tool path file, which is not necessarily a problem since computers today generally have large harddisks capable of storing larger files, i.e. in the old days you could probably not make a paper tape long enough to machine detailed surfaces made of irregular quasi curves by using millions of G01 movements. Some of my programs can work with disk files up to about fifty million line segments when about 2.1GB of disk space is available on the workspace drive and on the drive the programs are in.

Feed rate control is controlled by the "F" variable in G code files. When using v2.7 of my software to draw tool path files, the drawing line color can be used to control various machine operations, such as feed rate, dwell, relay on or off, and pause for operator intervention. When G codes are loaded into my CAD programs the feed rates set by the "F" variable are converted into various line colors according to the way the configuration was set up in the Files Load Industry G code command. When G code files are saved from my CAD programs the feed rates are converted from line colors into commands using the "F" variable in the G code file according to the configuration that was set up in the Files Save Industry G code command.

Sometimes it is desirable to mark out points along the final shape of the part you wish to cut out, and then use radius compensation to offset the coordinates of the points in the tool path file so that the size of the radius of the tool is used to have the tool follow along side the line marked out. In G code files the G code commands G41, G42, and G40 are used to select the radius compensation mode, follow left side or follow right side, and to turn off the compensation. My CAD programs offer support for these radius compensation modes, with the extension that the compensation can be used on arcs and free form quasi curves made of short line segments.

Although there is a standard for G codes the controller or control software used for various CAM machines may interpret the G codes somewhat differently, so conversion of a G code tool path from use on one machine to use on another machine may require some editing. In my programs the tool path is converted from G code into a drawing file, so you can view the tool path file in my drawing editor, and use the various editing commands to make various changes as needed, before saving the edited tool path file for use with my CAM programs, or perhaps as a G code sub-set file for use with another CAM system. G code files saved from my programs may not work with any particular CAM system, but you may be able to write a computer program to "process" the file to make the needed corrections. For use with my CAM programs the needed changes would be made in the drawing editor before the ASCII tool path file is saved.

Click here to go back to the top of this page.

Example tool path file made using G & M codes.

Below are some example G code type codes for a tool path to make a pocket using an end mill. The tool path starts and ends on the same point, which would be the home point generally. My CAD programs have a Files Save Industry G code command in a revision of v2.7B that can automatically create this sort of G code file from tool path lines drawn in the CAD program's drawing editor. My CAD programs can also load this sort of G code file and convert the tool path lines into ASCII format for use with my CAM programs, see the example converted tool path data below.


%
O0001
N0001M03
N0002G90
N0003G01X-6.Y6.Z-3.F10.
N0004G01X-3.Y4.
N0005G01Z-2.
N0006G01Z1.F2.
N0007G01Y1.
N0008G01X-2.
N0009G01Y5.
N0010G01X-4.
N0011G01Y0.
N0012G01X-1.
N0013G01Y5.
N0014G01X-3.
N0015G01Z-2.
N0016G01Z-3.F10.
N0017G01X-6.Y6.
N0018M02
%

See also the information about using G codes with my programs in Section: 3.1.35.0, and Section: 3.1.50.0.

The formatting and production of the G code files may be different in the version or revision you have, the examples here may have been made by a different version or revision from the one you have.

Click here to go back to the top of this page.

Tool path file converted from G code into my ASCII file type.

In this example tool path file you see the G code file from the example above converted into my ASCII tool path file for use with my CAM program DANCAM.EXE (tm). The conversion from G code into ASCII was done by loading the G code sub-set file into a revision of DANCAD3D.COM (tm) v2.7 and saving the converted lines back out as an ASCII file.

When you make such conversions you should examine the converted lines that represent the tool motions in a graphic display, such as the graphic display in the Preview command or the drawing editor in my CAD programs.

After saving the element loaded with the Files Load Industry G code command by using the Files Save ASCII command the Files Utilities ASCII Squeeze command was used to reformat the ASCII file to make it take less disk space.


VERSION v2.7A { CAD SQUEEZE } ENTER
-6 -6 -3 -3 -4 -3   3   1   0   0
-3 -4 -3 -3 -4 -2   3   1   0   0
-3 -4 -2 -3 -4  1   4   1   0   0
-3 -4  1 -3 -1  1   4   1   0   0
-3 -1  1 -2 -1  1   4   1   0   0
-2 -1  1 -2 -5  1   4   1   0   0
-2 -5  1 -4 -5  1   4   1   0   0
-4 -5  1 -4  0  1   4   1   0   0
-4  0  1 -1  0  1   4   1   0   0
-1  0  1 -1 -5  1   4   1   0   0
-1 -5  1 -3 -5  1   4   1   0   0
-3 -5  1 -3 -5 -2   4   1   0   0
-3 -5 -2 -3 -5 -3   3   1   0   0
-3 -5 -3 -6 -6 -3   3   1   0   0
 0  0  0  0  0  0   0   0   0   0

Click here to go back to the top of this page.

Color display of the example tool path file's movement lines.
Note: Be sure to look at your tool path files in the CAD program's graphic display before execution in the CAM program.
D3710202.GIF (default resolution) Color display of the example tool path.
Click here 120 640 to see if there is a bigger drawing, use the back button in your browser to return.

This color perspective drawing was saved from DANCAD3D.COM (tm)'s macro DISPLAY command as a BMP file and then converted into a GIF file in another program. The colored lines in this drawing represent the tool motions for a tool path file for an automated CAM vertical milling machine. The two line colors represent the two feed rates, i.e. from F10 and F2 in the G code, used in this tool path file.

This is a view of the example tool path file whose codes are shown in G code and ASCII above.

The tool path lines are superimposed over a "solid" shape rendered in DANCAD3D (tm) showing how the pocket would be made if an end mill with a radius of one unit was used with this tool path. The cyan lines show rapid linear feed across and down to a point above the work-piece, then the feed rate changes to the red lines for the cutting feed rate and the tool drops down to the bottom of the pocket, moves around in a spiral motion with some overlap at the end, then moves up, switches back to rapid feed, finishes moving up, and then goes back to the starting point.

This example tool path is somewhat over simplified, since in normal practice smaller cuts would normally be made, taking several layers off one at a time, and the tool would go around the outside taking a small finish cut, see the illustration of the typical tool path drawing below for an example showing some of these details.

Click here to go back to the top of this page.

Color display of a typical tool path file's movement lines.
Note: Be sure to look at your tool path files in the CAD program's graphic display before execution in the CAM program.
D3710201.GIF (default resolution) color display of a typical tool path.
Click here 120 640 1024 1600 to see if there is a bigger drawing, use the back button in your browser to return.

This illustration shows what a typical 3D tool path looks like when displayed by the Preview command in DANCAD3D (tm) or DANCAD87 (tm). The different line colors are used to control the feed rates or speed of the cutting tool. In DANCAM.EXE (tm) there is a feed rate table that is used to translate the line colors used in the tool path into various speeds. The feed rate table and configuration in DANCAM.EXE (tm) can also be set to have certain line colors in the tool path select rapid motion or linear motion, as well as activating a programed pause and switching on and off auxiliary relays to control such things as coolant and spindle speed. The Files Save Industry G-code command can be used to save this sort of tool path as a G-code file for use with other compatible CNC controllers. In the case of making a G-code file, there is also a translation table in the Files Save Industry G-code command to regulate the feed rate values output by the various line colors used in the tool path. Tool paths in existing compatible G-code files might also be loaded and displayed using the Preview command or the Drawing Editor. Note that in a practical tool path such as this one, the tool makes many repetitive motions, cutting a little deeper on each pass around the shape to be cut, with a somewhat larger pass around when the tool reaches the bottom of the cut to clean up the walls of the opening. Click on the links above to view this tool path at higher resolutions. You may need to use a browser that does not shrink-to-fit illustrations larger than your screen size to view the small details in the higher resolution illustrations.

This color perspective drawing was saved from DANCAD3D.COM (tm)'s main menu Preview command as a BMP file and then converted into a GIF file in another program. The lines in this drawing represent the tool motions for a tool path file for an automated CAM vertical milling machine. The various line colors represent the various feed rates used in this tool path file.

This tool path file makes two counter sunk holes and a slot between them. The radius of the holes and slot are larger than the radius of the cutter used.

Notice the slightly larger tool path outlines lines in magenta at the bottom of each stack of roughing cuts, that is the finish cut path that uses the "full" side of the end mill to smooth out the finish to the final dimension. The blue lines extending above the cutting lines are the return extensions I might some times refer to as the "telephone poles" that bring the tool up above the work-piece so that the tool can safely move to the top of the next starting point in another part of the tool path file. Under the blue extensions moving up, are the starting lines that move part of the way down for the first plunge of the end mill into the work- piece. The final radius would be about the distance of the final cut lines from the starting center line plus the radius of the end mill, plus or minus a little for the flex of the tool.

See also the video segment about making the Synchro mounting plate to see how this type of tool path was used to make the parts out of aluminum.

Click here to go back to the top of this page.

TERMS OF USE, HOME, INDEX, SHORTCUT, WHAT'S NEW, DOWNLOADS, GET MAIN ZIP, DOCUMENTATION, VIDEO, HOOKUP#1, #2, #3, KEYWORDS

WWW.DANCAD3D.COM (sm): THE OFFICIAL DANCAD3D (tm) "BETA TEST" WEB SITE.

This copy of this page was compiled on or around: Y2009.M01.D14, you might check the "On-Line" version, or come back later, to see if there is a newer compile.