586,106 active members*
3,125 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2015
    Posts
    23

    How to make Mach3 go line by line in the g-code?

    Hello, I have a g-code loaded in mach3 with 240 "g1" lines (just x,y,z-coordinates) I need mach3 to go for exampel to line five and then hold it and then to line 10 and then hold it and so on. The reason for this is that I am controlling a camera controller system and doing a stop motion animation video. So I shall move the camera the same path several times but stop it in different positions to take a picture. So after the first round I maybe want the camera to stop on line 6, 11, 16 and so on. Is there a way to do this?

    best regards: Flyingpickles

  2. #2
    Join Date
    Oct 2008
    Posts
    2100

    Re: How to make Mach3 go line by line in the g-code?

    You can manually enter M0 codes, and setup Mach 3 to stop on an M0 until start is pressed.

    Simply duplicate the code and insert the M0 in the appropriate different places on each duplication.

    An alternative might be to insert a G4 P(x) at every point you might want to stop and take a picture. Set (x) to whatever length of time you need. When it pauses you can either take a picture or not.

    If you want to magically have Mach 3 read your mind and automatically stop at differing random points along the way, you don't have enough computing power for that kind of Artificial Intelligence.
    Bob La Londe
    http://www.YumaBassMan.com

  3. #3
    Join Date
    Jan 2015
    Posts
    23

    Re: How to make Mach3 go line by line in the g-code?

    Ok, yes that might be a solution. I did something like this for a couple of years ago. Back then I wanted mach3 just to go to the next line and pause. I remember that I did this with just one mouse click but I can not remember how. Do you have a clue? It would be great if I did not need to rewrite the code for every time just make a macro that click like fime times on the right button...

  4. #4
    Join Date
    Mar 2003
    Posts
    35538

    Re: How to make Mach3 go line by line in the g-code?

    You can use Single Block mode to go line by line, with one click.
    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)

  5. #5
    Join Date
    Jan 2015
    Posts
    23

    Re: How to make Mach3 go line by line in the g-code?

    YES! That was the button I was searching for, thanks again Gerry! The only problem now is that if I want to go like 5 lines down I have to wait for mach3 to stop on every lines coordinates. The best thing would be if I could make mach3 go 5 lines directly and then stop because I have two computers with mach3 controlled by a third with a macro. Then the macro could make mach3 go five lines and then make the other computer do the same thing so they was working at the same time.

  6. #6
    Join Date
    Mar 2003
    Posts
    35538

    Re: How to make Mach3 go line by line in the g-code?

    I don't think that there's any way to get Mach3 to do exactly what you want, without adding commnads to the g-code.
    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)

  7. #7
    Join Date
    Jul 2013
    Posts
    230

    Re: How to make Mach3 go line by line in the g-code?

    Commands are Cool!
    Print out the command codes and keep em by your machine... Study them too ! It'll help


    Sent from my iPhone using Tapatalk

Similar Threads

  1. KMB1 - Air line / oil line purposes routing.
    By Bob La Londe in forum HURCO
    Replies: 1
    Last Post: 06-25-2012, 01:42 AM
  2. no line number in comment line in mpos
    By MSFAB in forum Surfcam
    Replies: 5
    Last Post: 02-13-2012, 11:51 PM
  3. Replies: 3
    Last Post: 04-08-2011, 01:48 AM
  4. Line conditioners for CNC Equipment and poor line conditions
    By WSS in forum Waterjet General Topics
    Replies: 0
    Last Post: 01-14-2011, 03:07 AM
  5. Broken lube line - how to make new one?
    By SRT Mike in forum Uncategorised MetalWorking Machines
    Replies: 0
    Last Post: 07-21-2007, 05:56 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
  •