buildbotics / bbctrl-firmware

Buildbotics CNC Controller Firmware
https://buildbotics.com/
Other
67 stars 24 forks source link

Display doesn't reset if program manually exited while in alternate coordinate system #256

Open kwince opened 4 years ago

kwince commented 4 years ago

If an alternate coordinate system is executed i.e. G55 and the machine is doing something in that coordinate system with a user prompt to continue or exit and exit is chosen, the display stays in g55, even if, for example, G54 is executed in another program or the MSI or the zero all axes button is clicked on the Control web page. version xx.xx.11. could not check later versions as they would not run my program that had the problem.

Try this: ;Assumes machine zeroed G17 ;xy plane G20 ;inch units g40 ;Cutter compensation off ; the first below is the default unoffset coordinate system G10 L2 P1 X0 Y0 Z0 ; erase offsets coordinate system 1 G10 L2 P2 X0 Y0 Z0 ; erase offsets coordinate system 2 g20 ; in inches g54 ;use default (P1) machine coordinate offset system coordinate system 1 G90 ;absolute distance mode using current coordinate system g92.1 ;clear and disable G92 global offset system G94 ;feeds in units per minute g0 x0 y0

G10 L2 P1 X18 Y3 Z4 G55 g0 x0 y0 (Msg, do u want stop or continue) M0 F10 G54 G1 x0, y0, z0 M2