This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mp:mst_dev [2024/05/22 15:46] – [CQL Posts - Future updates/improvements - Mass Updates] russell | mp:mst_dev [2024/06/03 16:55] (current) – [CQM Posts - Future updates/improvements - Mass Updates] russell | ||
|---|---|---|---|
| Line 144: | Line 144: | ||
| ] | ] | ||
| </ | </ | ||
| + | |||
| + | == Shortest direction 0-360 causes infinite loop with axis subs (pcoutrev) == | ||
| + | \\ | ||
| + | |||
| + | Change found to fix: | ||
| + | |||
| + | Before: | ||
| + | |||
| + | < | ||
| + | pcoutrev | ||
| + | cdelta = csav - prv_csav | ||
| + | rev = last_move_rev | ||
| + | ... | ||
| + | ... | ||
| + | ... | ||
| + | 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 | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | After: | ||
| + | |||
| + | < | ||
| + | pcoutrev | ||
| + | cdelta = csav - prv_csav | ||
| + | rev = last_move_rev | ||
| + | ... | ||
| + | ... | ||
| + | ... | ||
| + | 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?? | ||
| + | ] | ||
| + | </ | ||
| + | |||
| ===== CQL Posts - Future updates/ | ===== CQL Posts - Future updates/ | ||