Originally Posted by
kstrauss
Stop unwinding!
G92 A0 ( reset rotary)
G92 will simply add an offset to the current position in order to make DRO read zero (or some other value). That might be fine if the previous op ended at a integral number of full rotations, if not you'll lose track of the zero reference position. The offsets are also lost after a G92.1.
To "unwind" the actual work offset and then return to zero (optional) you'd probably need something more like this:
Code:
#<new_A> = [#<_a> MOD 360]
o<unfold> if [#<new_A> GT 180]
#<new_A> = [#<new_A> - 360]
o<unfold> endif
G10 L20 P0 A[#<new_A>]
G0 A0 (optional return to zero)
Unfortunately I haven't used Sprut for quite a few years so can't help with manual code insertion.
Step