588,531 active members*
9,076 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Why does this program make the machine crash? - with video
Results 1 to 20 of 139

Hybrid View

  1. #1
    Join Date
    Aug 2020
    Posts
    95

    Re: Why does this program make the machine crash? - with video

    OK, So I did another experiment today. This time I setup a proper tool offset and set the work offset to a real location. The result was exactly the same, the arc does not go as expected.

    What I have managed to prove I think is that the arc center is not taking the tool length compensation into account. The arc Z center is always at work offset Z - radius. This suggests that K is absolute. But even absolute should use tool height compensation? Also, I did a test and proved that I and J are incremental. I also found a printout from factory of all the machine parameters and checked they are as per factory.

    I have prepared a better example program and a drawing showing what happens. Maybe this will better help people understand what I am seeing. See attached picture and pdf for higher resolution.

    I did not run this program on the machine, just on the controllers tool path simulator, but I know from experience it will make it go bang! I suspect the bang is caused when it tries to perform an arc that does not lie on both the start and end points. The simulation shows the arc start point disconnected from machines current position. In practice the machine starts moving from its actual position then sometime later packs a sad.

  2. #2
    Join Date
    Jan 2005
    Posts
    15362

    Re: Why does this program make the machine crash? - with video

    Quote Originally Posted by ashes-man View Post
    OK, So I did another experiment today. This time I setup a proper tool offset and set the work offset to a real location. The result was exactly the same, the arc does not go as expected.

    What I have managed to prove I think is that the arc center is not taking the tool length compensation into account. The arc Z center is always at work offset Z - radius. This suggests that K is absolute. But even absolute should use tool height compensation? Also, I did a test and proved that I and J are incremental. I also found a printout from factory of all the machine parameters and checked they are as per factory.

    I have prepared a better example program and a drawing showing what happens. Maybe this will better help people understand what I am seeing. See attached picture and pdf for higher resolution.

    I did not run this program on the machine, just on the controllers tool path simulator, but I know from experience it will make it go bang! I suspect the bang is caused when it tries to perform an arc that does not lie on both the start and end points. The simulation shows the arc start point disconnected from machines current position. In practice the machine starts moving from its actual position then sometime later packs a sad.
    Now you have it set up basically how it should be, try this I'm not sure what your radius ( R ) is but change it to suit what you need

    Your first X Y move into position also needs to be used with a G17 you have G17 active so nothing to worry about

    G18G3X50.Z-50.R50.F175.
    Mactec54

  3. #3
    Join Date
    Aug 2020
    Posts
    95
    Quote Originally Posted by mactec54 View Post
    Now you have it set up basically how it should be, try this I'm not sure what your radius ( R ) is but change it to suit what you need

    Your first X Y move into position also needs to be used with a G17 you have G17 active so nothing to worry about

    G18G3X50.Z-50.R50.F175.
    Thanks for the idea. I have tried radius instead of ijk but got exactly the same behavior. I also tried with a feed rate too. Nothing I try changes anything, I am going mad!!!

  4. #4
    Join Date
    Jan 2005
    Posts
    15362

    Re: Why does this program make the machine crash? - with video

    Quote Originally Posted by ashes-man View Post
    Thanks for the idea. I have tried radius instead of ijk but got exactly the same behavior. I also tried with a feed rate too. Nothing I try changes anything, I am going mad!!!
    Another thing to try that you have not tried

    If your tool is Z0 on the top of the part then the program should be like this

    G18G3X50.Z0.R50.F100.

    G2 if you are going clockwise G17
    G3 if you are going anti clockwise G17

    Depending on how it is used through the X axis
    Attached Thumbnails Attached Thumbnails G17 G18 G19 X Y Z.PNG  
    Mactec54

Similar Threads

  1. Replies: 35
    Last Post: 04-25-2017, 09:56 AM
  2. program crash
    By Cartel, LLC in forum BobCad-Cam
    Replies: 10
    Last Post: 05-26-2013, 09:17 PM
  3. Make Machine Beep During Program?
    By behindpropeller in forum Haas Mills
    Replies: 17
    Last Post: 12-13-2011, 07:43 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
  •