591,380 active members*
7,000 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 29
  1. #1
    Join Date
    Jun 2014
    Posts
    27

    Exclamation Mach3 jump lines of code

    Hi,

    I'm building a 3 axis hobby cnc router to test the machine I made a model of batman logo to my son in SolidWorks and use SolidCAM to generate the G-Code. In the first test run I was using Styrofoam, now I'm glad to choose that material. For some reason mach3 jump part of the code and the tool just open it's way in the part. The error shows up between the lines 16627 and 16634 that part was ignored.


    Regards,


    Sidney

  2. #2
    Join Date
    Mar 2003
    Posts
    35538

    Re: Mach3 jump lines of code

    It's much more likely that your machine lost steps and lost position. Mach3 does not skip lines of 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)

  3. #3
    Join Date
    Jun 2014
    Posts
    27

    Re: Mach3 jump lines of code

    Quote Originally Posted by ger21 View Post
    It's much more likely that your machine lost steps and lost position. Mach3 does not skip lines of g-code.
    In the beggining that was my thought too. But I replace everything on the machine and the problems still exists. And the strange part is that everything its normal until that line. That its completely ignored and tool goes on to the next point and in the next -z move the tool goes down and I lost the part.

    I'll try again.But this time I'll make a video to show how things happen.

    Regards,

    Sidney

  4. #4
    Join Date
    Mar 2003
    Posts
    35538

    Re: Mach3 jump lines of code

    Try reducing your acceleration by 50% first.
    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
    Jun 2014
    Posts
    27

    Re: Mach3 jump lines of code

    Here is the link to the video:

    https://youtu.be/a5QSn9uAwL0

    I left the video with almost 20 minutes so you can see that everything was alright until the lines 16627@16634. If you wanna see the trouble you can go directly to 19:00 minutes of the video.

  6. #6
    Join Date
    Apr 2013
    Posts
    1899

    Re: Mach3 jump lines of code

    I think it would be better and easier to help if you would post the part of the code which is skipped. Perhaps there is something wrong with the line or several lines. I think that might be difficult to see and also the video is 19 minutes long, so it demands a great deal of patience from anyone willing to help. Personally, I think it is too long for my patience. Other than that, you also want us to open the video and read the details elsewhere. Why? Why not just paste the relevant text here?

  7. #7
    Join Date
    Jun 2014
    Posts
    27

    Re: Mach3 jump lines of code

    Quote Originally Posted by A_Camera View Post
    I think it would be better and easier to help if you would post the part of the code which is skipped. Perhaps there is something wrong with the line or several lines. I think that might be difficult to see and also the video is 19 minutes long, so it demands a great deal of patience from anyone willing to help. Personally, I think it is too long for my patience. Other than that, you also want us to open the video and read the details elsewhere. Why? Why not just paste the relevant text here?
    In part I agreed with you. The video is long but you can click anytime to any position on the video.

    Here is the part that I agreed with you, where in the video the problem happens.

    I left the video with almost 20 minutes so you can see that everything was alright until the lines 16627@16634. If you wanna see the trouble you can go directly to 19:00 minutes of the video.
    And Here is the code generated by SolidCAM:

    This block was ignored:
    "G3 X24.243 Y-61.268 Z-8.454 R1.371 F841
    X24.377 Y-61.261 Z-7.404 R1.371
    X24.51 Y-61.242 Z-5.699 R1.371
    X24.641 Y-61.209 Z-3.404 R1.371
    X24.768 Y-61.163 Z-1.11 R1.371
    X24.889 Y-61.106 Z0.596 R1.371
    X25.005 Y-61.037 Z1.645 R1.371
    X25.112 Y-60.957 Z2. R1.371"

    And this block move the tool to the next point:

    "G1 X25.359 Y-60.81 F2000
    X25.373 Y-60.783
    X25.354 Y-60.759
    X-17.56 Y-34.877
    X-17.578 Y-34.853
    X-17.523 Y-34.804
    X-17.3 Y-34.704
    Z-7.732"

    Thanks for the comments I'll try to make it better next time.

  8. #8
    Join Date
    Jan 2005
    Posts
    15362

    Re: Mach3 jump lines of code

    SidneyABBR

    "G3 X24.243 Y-61.268 Z-8.454 R1.371 F841

    If You code is like this "G3 then it is not going to run, you will have to remove all the ( " ) from any lines of code, or they will not run

    Your Z move may be a problem also, this may have to be on a separate line, but for what you are doing it should work ok
    Mactec54

  9. #9
    Join Date
    Jan 2005
    Posts
    15362

    Re: Mach3 jump lines of code

    SidneyABBR

    Just noticed that you have the ( " ) at the beginning & End of each Block, this can not be there, seems that your post processor needs some work

    "G3 X24.243 Y-61.268 Z-8.454 R1.371 F841


    X25.112 Y-60.957 Z2. R1.371"
    Mactec54

  10. #10
    Join Date
    Jun 2014
    Posts
    27
    Quote Originally Posted by mactec54 View Post
    SidneyABBR

    Just noticed that you have the ( " ) at the beginning & End of each Block, this can not be there, seems that your post processor needs some work

    "G3 X24.243 Y-61.268 Z-8.454 R1.371 F841


    X25.112 Y-60.957 Z2. R1.371"
    Hi,

    The (") it's just to separate the code from the rest of the text on the post. The g-code file don't have them, you can see the original file on the first post.

    I need to check on the file but, I think that there is more moves like this before the error.

    Thanks for the help.

  11. #11
    Join Date
    Jan 2005
    Posts
    15362

    Re: Mach3 jump lines of code

    SidneyABBR

    The code that you posted runs fine, so like you said there may be something before these blocks, not everyone can open the file in your first post, it's always better to post it as text, then anyone can open it
    Mactec54

  12. #12
    Join Date
    Jul 2003
    Posts
    1766

    Re: Mach3 jump lines of code

    What version of mach? What is your ma velocity/accel in your config?

    I don't see an issue here with V.043

    maybe related to
    This GCODE make my cnc motor loosing steps

    sam

  13. #13
    Join Date
    Jun 2014
    Posts
    27

    Re: Mach3 jump lines of code

    Quote Originally Posted by mactec54 View Post
    SidneyABBR

    The code that you posted runs fine, so like you said there may be something before these blocks, not everyone can open the file in your first post, it's always better to post it as text, then anyone can open it
    I tryed to post the files as simple text files but the size of files is larger than the forum limit. I'm a fool, I forget the tools we have today, I put the files on google drive now everyone can access them, following the links:

    https://drive.google.com/file/d/0B_h...ew?usp=sharing

    https://drive.google.com/file/d/0B_h...ew?usp=sharing

    Have you tested the code by software or making the machine run? On mach3 simulation everything its ok but when the machine runs the problem shows up.

    Thanks for the help.

  14. #14
    Join Date
    Jun 2014
    Posts
    27

    Re: Mach3 jump lines of code

    Quote Originally Posted by samco View Post
    What version of mach? What is your ma velocity/accel in your config?

    I don't see an issue here with V.043

    maybe related to
    This GCODE make my cnc motor loosing steps

    sam
    I need to check the version. But I have the .xml file saved on line here´s the link:

    https://drive.google.com/file/d/0B_h...ew?usp=sharing

    Thanks.

  15. #15
    Join Date
    Jun 2014
    Posts
    27

    Re: Mach3 jump lines of code

    Quote Originally Posted by SidneyABBR View Post
    I need to check the version. But I have the .xml file saved on line here´s the link:

    https://drive.google.com/file/d/0B_h...ew?usp=sharing

    Thanks.
    Version 3.042.020

    Enviado de meu SM-G900M usando Tapatalk

  16. #16
    Join Date
    Jul 2003
    Posts
    1766

    Re: Mach3 jump lines of code

    If you read the link I posted - .042 seemed to have some issues with stalling on certain moves.

  17. #17
    Join Date
    Jan 2005
    Posts
    15362

    Re: Mach3 jump lines of code

    SidneyABBR

    There could be a lot of things happening, is your machine up to moving short moves at 2000mm/per/min, this may be where your problem is, feed rate, or acceleration settings set to high for your machine

    You should not have a G49 in your program, this will cancel your tool offset

    Using G91 to move the Z axes to 0 is not so good also, if your are programing in G90 absolute, then you want to keep your moves in absolute ( G90 ) wherever you can

    To move your Z to 0 just use G0Z0 is all that is needed or G0G53Z0

    There are some Z moves in the program that don't make any sense also,

    The program run right through with Mach 3 running, but I did not cut anything, so don't know if it missed any Code, it did look complete on the screen

    What cam program are you using
    Mactec54

  18. #18
    Join Date
    Oct 2005
    Posts
    1145

    Re: Mach3 jump lines of code

    Yes Mach3 CAN skip lies BUT it it is not really Mach3 doing it. These are the 4 things I have seen cause it.

    Hard drive bad sector bit
    Memory bad sector bit
    Currupt Gcode file.
    Rogue hidden charector in Gcode file

    Almost forgot one Pirated License (;-)

    Have you tried recamming the same project and see IF it reoccurs with a new file ??

    (;-) TP

  19. #19
    Join Date
    Mar 2003
    Posts
    35538

    Re: Mach3 jump lines of code

    It looks like it's skipping the spiral leadin move. Moves similar to this are known to cause lost steps due to a bug in Mach3.

    Try isolating the bad section of code to maybe 100 lines before to 100 lines after, and run it with Feedrate Override at maybe 10%. If it runs OK, keep increasing the FRO back up until you get to 100%.
    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)

  20. #20
    Join Date
    Oct 2005
    Posts
    1145

    Re: Mach3 jump lines of code

    Looking at your XML file I see we may have friends in common. Do you know Ivan Todosijevic ??

    (;-) TP

Page 1 of 2 12

Similar Threads

  1. G code line jump?
    By Epiphany in forum Dynomotion/Kflop/Kanalog
    Replies: 15
    Last Post: 08-03-2016, 09:18 PM
  2. Only running three lines of code
    By OCNC in forum NCPlot G-Code editor / backplotter
    Replies: 1
    Last Post: 02-13-2011, 10:09 PM
  3. 99999 max lines of code?
    By dingo0722 in forum Haas Mills
    Replies: 15
    Last Post: 12-17-2010, 01:43 AM
  4. Repeat G-Code lines
    By rckdef in forum G-Code Programing
    Replies: 3
    Last Post: 07-22-2010, 09:00 AM
  5. Only getting 48 lines of code?
    By Crawler374 in forum Mach Software (ArtSoft software)
    Replies: 4
    Last Post: 09-25-2009, 03:54 AM

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
  •