G codes and plot codes

      The differences between and attributes of each. August 13, 2002

Why are G-codes preferable to plot codes in CNC work? I'd like to know more about each.

Forum Responses
Plot codes are generally lacking "Z" data for machining. They usually only define XY movement.

If by plot codes you mean HPGL (Hewlett-Packard Graphics Language...?), that is actually used by some of the lower cost router manufacturers. As you get into higher priced machines, the switch is made to G-code.

There are pros and cons to both systems. HPGL, by design, does not support Z axis commands and does not support multiple I/O commands. With that said, most people run a modified version of HPGL that supports the Z commands and supports I/O.

Why support HPGL? Most of the software in the POP and graphic arts industries is designed to support HPGL, AI and many other graphic formats. To integrate easily with these systems, it helps to support HPGL.

Why support M and G Codes? Metal working, woodworking and most manufacturing in general supports standard M and G codes. I guess "standard" is kind of a funny word here. The G Codes are standard, but about every machine manufacturer uses different M Codes.

G-Code is usually in user units. So if your machine is set up to run in inches, the code that it is looking for will be in inches. If your machine is set up in metric, the code that it is looking for will usually be in metric. One major advantage of this is that it makes it easier to read the code files if you need to.

HPGL is set up in HPGL units. For example, 1 inch usually equals 1016 HPGL units. It does not matter if your machine is set up in inches or metric - an HPGL unit is still an HPGL unit. Trying to read a file and edit it manually is more difficult in HPGL since most people do not think in HPGL units.

Is one language better than the other? Not really. Modified HPGL and G-Codes can produce the same parts with the same accuracy. It is kind of like saying that English is better than French. French is better if that is the language you speak. But the rest of us reading this page obviously believe English is better. We set up the MultiCam to interpret 3 languages directly. M and G codes, HPGL, and uCito, our own native language. This way, no matter what software you want to use, most likely we will support it. G-Codes are perceived to have the better value just because they have been used on machine tools forever and they are socially accepted.

CNC has been evolving for a while now. I think that we, the machine manufacturers, should get together and create a new language that is built on a standard. That way, it would not matter what machine you used or what controller you had - you could run the same file on any machine. Odds of this are pretty slim, but it is a nice thought. Would it not be cool to get a new software program and only need one post processor, the one that ran all the systems? It is a job shop dream.

Would you like to add information to this article?
Interested in writing or submitting an article?
Have a question about this article?

Have you reviewed the related Knowledge Base areas below?
  • KnowledgeBase: Computerization

  • KnowledgeBase: Computerization: Software

  • KnowledgeBase: Knowledge Base

    Would you like to add information to this article? ... Click Here

    If you have a question regarding a Knowledge Base article, your best chance at uncovering an answer is to search the entire Knowledge Base for related articles or to post your question at the appropriate WOODWEB Forum. Before posting your message, be sure to
    review our Forum Guidelines.

    Questions entered in the Knowledge Base Article comment form will not generate responses! A list of WOODWEB Forums can be found at WOODWEB's Site Map.

    When you post your question at the Forum, be sure to include references to the Knowledge Base article that inspired your question. The more information you provide with your question, the better your chances are of receiving responses.

    Return to beginning of article.

    Refer a Friend || Read This Important Information || Site Map || Privacy Policy || Site User Agreement

    Letters, questions or comments? E-Mail us and let us know what you think. Be sure to review our Frequently Asked Questions page.

    Contact us to discuss advertising or to report problems with this site.

    To report a problem, send an e-mail to our Webmaster

    Copyright © 1996-2018 - WOODWEB ® Inc.
    All rights reserved. No part of this publication may be reproduced in any manner without permission of the Editor.
    Review WOODWEB's Copyright Policy.

    The editors, writers, and staff at WOODWEB try to promote safe practices. What is safe for one woodworker under certain conditions may not be safe for others in different circumstances. Readers should undertake the use of materials and methods discussed at WOODWEB after considerate evaluation, and at their own risk.

    WOODWEB, Inc.
    335 Bedell Road
    Montrose, PA 18801

    Contact WOODWEB

  • WOODWEB - the leading resource for professional woodworkers

      Home » Knowledge Base » Knowledge Base Article