Hi

I'm working on a custom user interface based on gscreen. Part of it involves 
adjusting/fine-tuning axis offsets via a small MPG, and watching the preview 
move in response. I have the mpg moving a spinbutton that contains the axis 
offset. After the user stops twiddling the mpg for a reasonable amount of time, 
I issue a linuxcnc MDI G10L2P1 with the spinbutton value for axis offsets. 
Finally, I refresh the gremlin by calling gremlin.reloadfile(None). 

This has the effect of moving the workpiece origin marker to the current offset 
position, and moving the gcode preview to the *previous* offset position. Upon 
running the program, the live plot correctly plots the path at the new offset.

After struggling with this for a while, I finally got it to work as I want by 
issuing the G10 MDI command twice in succession. This caused both the workpiece 
origin markers and the gcode preveiew to move to the new offset.

This appears to be a bug in gremlin.

_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to