Menu

#139 arcs with large radius result in wrong motion

open
5
2008-03-21
2008-03-21
Chris Radek
No

This valid arc should generate nearly a straight line move. This program previews correctly in AXIS. When run, the tool heads in the correct direction but goes too far. In AXIS the DTG shows about 16542232161 inches. It should be about 1.

g17 g20
g0 x0 y0
g3 y1 i-2632778018.2 j.5 f10
m2

Discussion

  • Michael

    Michael - 2009-06-07

    I've done some tracking for this bug:
    in tp.c : tpAddCircle() there is surely wrong calculate
    helix_length = pmSqrt(pmSq(circle.angle * circle.radius) +pmSq(helix_z_component));
    in my tests there is calculated 11 digit number and should be 1.
    should be added some radius/angle checking.

     
  • Chris Radek

    Chris Radek - 2011-03-17

    I don't think the bug is where the previous comment says. I suspect the TP is trying to make a full circle because the radius is large compared to the distance between endpoints. Notice the DTG is 2pi * (I word)

     
  • imp

    imp - 2011-04-03

    We've encountered a similar problem, see the attached file (test.ngc). EMC displays everything alright, until you run the program. Starting at line 15 it performs a full circle (if it's inside the machines limits). Tested with 2.4.6 and 2.6 from git (last pulled commit was 2cde0fe800ccd34b48c3df454085640eac8018a6).
    The displayed motion differs from the motion performed while simulation and the actual machine motion.

     
  • imp

    imp - 2011-04-03