User Tools

Site Tools


mp:mst_dev

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mp:mst_dev [2024/05/22 15:46] – [CQL Posts - Future updates/improvements - Mass Updates] russellmp:mst_dev [2024/06/03 16:55] (current) – [CQM Posts - Future updates/improvements - Mass Updates] russell
Line 144: Line 144:
         ]         ]
 </code> </code>
 +
 +== Shortest direction 0-360 causes infinite loop with axis subs (pcoutrev) ==
 +\\
 +
 +Change found to fix:
 +
 +Before:
 +
 +<code>
 +pcoutrev        #Rotary axis revolution calculation (Modify for wind-up)
 +      cdelta = csav - prv_csav
 +      rev    = last_move_rev    #Reset rev  - MU-0068, rjj
 +      ...
 +      ...
 +      ...
 +      if index <> 1 & (rot_type > 0 | (one_rev & gcode$ = zero & (cuttype <> one | opcode$ = 3 | opcode$ = 16))),
 +        [
 +        while fmtrnd(cabs) >= 360,
 +          [
 +          cabs = cabs - 360
 +          rev = rev - 1
 +          ]
 +        while fmtrnd(cabs) < 0,
 +          [
 +          cabs = cabs + 360
 +          rev = rev + 1
 +          ]
 +</code>
 +
 +After:
 +
 +<code>
 +pcoutrev        #Rotary axis revolution calculation (Modify for wind-up)
 +      cdelta = csav - prv_csav
 +      rev    = last_move_rev    #Reset rev  - MU-0068, rjj
 +      ...
 +      ...
 +      ...
 +      if index <> 1 & (rot_type > 0 | (one_rev & gcode$ = zero & (cuttype <> one | opcode$ = 3 | opcode$ = 16))),
 +        [
 +        while fmtrnd(cabs) >= 360,
 +          [
 +          cabs = cabs - 360
 +          if cuttype <> one, rev = rev - 1   #MU??
 +          ]
 +        while fmtrnd(cabs) < 0,
 +          [
 +          cabs = cabs + 360
 +          if cuttype <> one, rev = rev + 1   #MU??
 +          ]
 +</code>
 +
 ===== CQL Posts - Future updates/improvements - Mass Updates ===== ===== CQL Posts - Future updates/improvements - Mass Updates =====
  
mp/mst_dev.1716392768.txt.gz · Last modified: 2024/05/22 15:46 by russell