Newbie Is this correct when writing G-codes?


Results 1 to 3 of 3

Thread: Is this correct when writing G-codes?

  1. #1
    Registered ArturDB's Avatar
    Join Date
    Dec 2018
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Is this correct when writing G-codes?

    Hello!

    I want to know if my G-code will work if instead of this:

    G90;
    G1 F9000 X220 Y215;
    G1 F1000 X232;
    G4 P700;
    G1 F9000 X220

    I write it like this:

    G90; G1 F9000 X220 Y215; G1 F1000 X232; G4 P700; G1 F9000 X220;

    The reason is because I want to use Cura plug-in to search and replace. So I will replace tons of lines for this single line, so I'll not be able to separate them.

    Much appreciated!

    UPDATED: Yes, it does work, I made a quick test. It also works if, after all the line of code, there's a lost number there, like:

    G90; G1 F9000 X220 Y215; G1 F1000 X232; G4 P700; G1 F9000 X220;2

    This is helpful since I can replace ";LAYER:" without referencing a single layer specifically.

    Similar Threads:
    Last edited by ArturDB; 12-13-2018 at 08:32 AM.


  2. #2
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Is this correct when writing G-codes?

    What control are you using?

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

    JointCAM - CNC Dovetails & Box Joints
    [URL]http://www.g-forcecnc.com/jointcam.html[/URL]

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered ArturDB's Avatar
    Join Date
    Dec 2018
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default Re: Is this correct when writing G-codes?

    I'm not sure how to answer, I'm using Cura software and using the Post-Processing plug-in to edit the G-code, where I'll use the "Search and Replace" tool and replace all ";LAYER:" by this line of code I just posted.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Is this correct when writing G-codes?

Is this correct when writing G-codes?