jooher

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: tinyg interprets G2/G3 code incorrectly #10614
    jooher
    Member

    UPD: I just got my DUE card, programmed it in Chilipeppr, and launched simulation. Tool tracking shows that the tool goes not along lines in Chilipeppr’s preview!!! The DUE’s program interprets G2 / G3 exactly as intended in the stock post-processor. So the bug was NOT in tinyG.cps, but in Chilipepper 3dpreview widget. Arrgh…

    in reply to: tinyg interprets G2/G3 code incorrectly #10598
    jooher
    Member

    Yes, it is a stock tinyg.cps from Fusion360 with two upfated lines of code, as described in my previous post

    in reply to: tinyg interprets G2/G3 code incorrectly #10596
    jooher
    Member

    By the way, “use radius” actually was NOT a solution for this problem – it does NOT make the arc “correct” – it only makes it “less obviously wrong”: it is not a weird circle anymore, but its direction is still wrong – concave instead of convex and vice versa. My fix from previous post solves this.

    in reply to: tinyg interprets G2/G3 code incorrectly #10595
    jooher
    Member

    Having noticed, that clockwise is only misinterpreted for arcs in ZX plane, i made a small dirty hack to the post processor, that seems to work: in two places of the tinyg.cps i changed
    gMotionModal.format(clockwise ? 2 : 3) ==> gMotionModal.format(!clockwise ? 2 : 3)

    IMPORTANT: make sure to only make this change for case PLANE_ZX: that is, in lines 715 and 729

    Or, get updated tinyg.cps here: https://yadi.sk/d/DVg4cdUc3NLm8h

    in reply to: tinyg interprets G2/G3 code incorrectly #10591
    jooher
    Member

    The problem seems to be with clockwise misinterpretation. I tried to add this line

    clockwise=!clockwise

    as first line to onCircular and the wrong arcs came to their exact right shape. But other arcs, respectively, broke up.

    • This reply was modified 7 years, 1 month ago by jooher.
    • This reply was modified 7 years, 1 month ago by jooher.
Viewing 5 posts - 1 through 5 (of 5 total)