> If anyone needs translation from Russian:
> The way this works is a g-code filter, which generates a "reverse"
> g-code for a particular g-code line and inserts it _before_ this
> particular g-code line with a "/" symbol in front of it.
> It seems like a change in Axis GUI script to redefine "zoom-in" and
> "zoom-out" buttons, so that it starts taking into account all the
> lines with "/" symbol in front of it, when asked to reverse.
> 
> A little comment from me:
> It is obvious that this approach can easily reverse _current_ line
> being executed. But it is not clear to me, how to back up more than
> one line - it might be necessary if the code consists of really tiny
> G1 moves.
> 
> -- 
> Viesturs
> 

Thanks Viesturs - now I understand what this code was doing:
it set/resets block delete
it abort execution
then restarts a line behind or a line in front 
It's a really smart bit of thinking!

    def zoomin(event=None):
        c.set_block_delete(0)
   s.poll() 
        c.abort()
   c.wait_complete()
   c.auto(linuxcnc.AUTO_RUN , (s.motion_line-1))

    def zoomout(event=None):
        c.set_block_delete(1)
   s.poll() 
   c.abort()
   c.wait_complete()
   c.auto(linuxcnc.AUTO_RUN , (s.motion_line+1))
                                          
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to