585,914 active members*
3,731 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2018
    Posts
    3

    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.

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: Is this correct when writing G-codes?

    What control are you using?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

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

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

  3. #3
    Join Date
    Dec 2018
    Posts
    3

    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.

Similar Threads

  1. G codes and M codes for Mazak Quick Turn T-2
    By sauli in forum Mazak, Mitsubishi, Mazatrol
    Replies: 0
    Last Post: 05-23-2011, 05:22 PM
  2. G codes M codes Mach3
    By eaglezsoar in forum Mach Software (ArtSoft software)
    Replies: 2
    Last Post: 02-04-2011, 12:38 AM
  3. Need full list of G CODES AND M CODES FOR FANUC 21I
    By SonnyTees.com in forum G-Code Programing
    Replies: 3
    Last Post: 02-23-2010, 05:27 PM
  4. M-codes and G-codes 4 Matsuura ES-1000V
    By maximusek in forum G-Code Programing
    Replies: 2
    Last Post: 11-27-2007, 01:41 PM

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
  •