587,307 active members*
3,780 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Display off after loading g-code, z goes up to limit, new machine
Results 1 to 9 of 9
  1. #1

    Display off after loading g-code, z goes up to limit, new machine

    Hiya, getting kinda frustrated. New k2 machine setup using provided profile. Display in inches works fine until I load aspire generated gcode. Very simply part, just cuts out a circle. After I load and run the z goes up till it hits the limit, then I notice the numbers don't move very much when I jog. I restart mach3 and all is normal again. I removed this

    N100G00G20G17G90G40G49G80
    N110G70G91.1

    from the G code and it no longer screwed up the display but it made some unplanned moves in a spot on the circle.

    Please help me.

  2. #2

    Re: Display off after loading g-code, z goes up to limit, new machine

    I used the Mach2/3 ATC arc post processor so I could combine two toolpaths even though the machine does not have ATC.

  3. #3

    Re: Display off after loading g-code, z goes up to limit, new machine

    I changed it from mm to inches. I did it in two places. I don't understand why the g20 or g21 wouldn't just take care of this automatically. I read I was supposed to change steps per unit, velocity, and acceleration. One thread said to divide, multiply, multiply by 25.4 and one thread said divide them all by 25.4. I divided them all, but they changed back to what they were and it's still working. I'm running in inch mode and the values are 10160, 199.98, and 30. I will do all of my gcode in inches and hopefully I will never have to mess with it again. What a confusing mess.

  4. #4
    Join Date
    Jan 2005
    Posts
    15362

    Re: Display off after loading g-code, z goes up to limit, new machine

    Quote Originally Posted by Robot Dude View Post
    Hiya, getting kinda frustrated. New k2 machine setup using provided profile. Display in inches works fine until I load aspire generated gcode. Very simply part, just cuts out a circle. After I load and run the z goes up till it hits the limit, then I notice the numbers don't move very much when I jog. I restart mach3 and all is normal again. I removed this

    N100G00G20G17G90G40G49G80
    N110G70G91.1

    from the G code and it no longer screwed up the display but it made some unplanned moves in a spot on the circle.

    Please help me.
    Taking this out would not of changed very much, nothing in this will make the Z go up to the limit switch, you would have to show the whole program to see where the problem is

    %
    G17G80G40G91.1
    G20 or G21
    Then the rest of your program

    The G20 or G21 did not work because it wants to be on it's own line, not mixed up with a bunch of code

    If the number is metric like 20mm and you want inches 20/25.4=.78740"

    If the number is Inch .750 x 25.5=19.05mm
    Mactec54

  5. #5

    Re: Display off after loading g-code, z goes up to limit, new machine

    Hi Mactec, Yes in fact it will and did. What was happening is the machine was moving 1" for every unit it was interpreting as mm. The result is it tried to move the Z axis up to .8" which would have been .8 x 25.4 = 20.32" and it hit the limit switch. I sit here still confused about this even after I have fixed it. My biggest angst is that after all these years of evolution of Mach3 this is still a problem. Why on earth is a machine control program brought to it's knees by a simple conversion from inches to mm and vice versa? It should read the g20/g21 and make all appropriate changes transparent to the user. If the problem is as you have mentioned you might want to let the creators of Aspire know, because that code is generated that way. Another issue is it generated a g20 and in the second line it generated a g70 which does the same thing. And there is no mention of needing to be on a separate line in the Mach3 gcode reference manual.

  6. #6
    Join Date
    Jan 2005
    Posts
    15362

    Re: Display off after loading g-code, z goes up to limit, new machine

    Quote Originally Posted by Robot Dude View Post
    Hi Mactec, Yes in fact it will and did. What was happening is the machine was moving 1" for every unit it was interpreting as mm. The result is it tried to move the Z axis up to .8" which would have been .8 x 25.4 = 20.32" and it hit the limit switch. I sit here still confused about this even after I have fixed it. My biggest angst is that after all these years of evolution of Mach3 this is still a problem. Why on earth is a machine control program brought to it's knees by a simple conversion from inches to mm and vice versa? It should read the g20/g21 and make all appropriate changes transparent to the user. If the problem is as you have mentioned you might want to let the creators of Aspire know, because that code is generated that way. Another issue is it generated a g20 and in the second line it generated a g70 which does the same thing. And there is no mention of needing to be on a separate line in the Mach3 gcode reference manual.
    It was nothing to do with the control, the code that your post processor puts out, can be control by you, the code needs to be like what I said, or the control can't read it, this, code may work on another control, but I doubt that, the post processor in most cases needs adjusting to the user's requirement, why Aspire write them like this I don't no, A G70 is a cnc lathe code, not a mill or router code, so should not even be in there

    If your machine is set up in inch and you want to run a metric program, G21 and the control will do this, if you have the program correct, just the same if you have the machine setup with metric units, and have a program in inch you would have a G20 that will tell the control to run the program in inches, how a Program is formated/Laid out, is the key to reliable running of your program, this all starts by knowing how a program should look before you press the button

    Contact Vectric and see if they can write a decent post processor for Aspire
    Mactec54

  7. #7
    Join Date
    Mar 2003
    Posts
    35538

    Re: Display off after loading g-code, z goes up to limit, new machine

    I read I was supposed to change steps per unit, velocity, and acceleration.
    Did you change the Native Unit setting? If not, than that's the source of your problem

    My biggest angst is that after all these years of evolution of Mach3 this is still a problem
    For the most part, it does. I believe your issue is due to setup.

    Mach3 stopped evolving many years ago, when it got too complex to fix anything without breaking anything else.

    As for the post processor, it works fine just the way it is. Thousands of people are using it.

    I just tested a file with just these two lines:

    N100G00G20G17G90G40G49G80
    N110G70G91.1

    And yes, it does change a mm setup to inches.
    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)

  8. #8

    Re: Display off after loading g-code, z goes up to limit, new machine

    Hi guys thanks for your replies.
    It's good to know it is supposed to work. I had a problem with the computer so I replaced it with another. It's also running XP. I also downloaded the latest version of Mach3, I was running 2.62. I ran the test program and it works well. So I'm starting over tomorrow with a new install. I have a config file provided by K2 and it makes everything work correctly, but could it have incorrect settings? I will try different files in inch and in mm modes and post what happens. Thanks

  9. #9

    Re: Display off after loading g-code, z goes up to limit, new machine

    So a new pc and upgrading to the latest version on Mach3 solved all the problems. I load the gcode with no changes and it moves properly.

Similar Threads

  1. Toolpath display and soft-limit problems when using offsets
    By GTFreeFlyer in forum Machines running Mach Software
    Replies: 2
    Last Post: 01-10-2014, 09:32 PM
  2. Loading g-code from BobCAD
    By flyzoome in forum Mach Mill
    Replies: 4
    Last Post: 04-03-2012, 01:58 AM
  3. Mach3 - G code loading problem
    By rainnydayx in forum Mach Mill
    Replies: 0
    Last Post: 03-21-2011, 04:40 AM
  4. why? CAM For machine Limit size G-Code 130kB.
    By pnpdesign in forum Okuma
    Replies: 4
    Last Post: 07-13-2009, 09:22 AM
  5. Loading Limit
    By martindugdale in forum CNC Machining Centers
    Replies: 0
    Last Post: 05-08-2007, 01:06 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
  •