cguerrero1205 / LCD_GRBL

Offline controller for CNC with GRBL 1.1
GNU General Public License v3.0
65 stars 27 forks source link

Can you add a step backwards function ? #8

Open Ams-Laser opened 2 years ago

Ams-Laser commented 2 years ago

need this function for embroidery, i woud be happy to compensate for your work,

please contact me at Whatsapp+521 331 119 6406

Eduardo

cguerrero1205 commented 2 years ago

Hello, Eduardo. Please give me more information about what you need, then I will analyze if I can implement your request. Thank you for your comment.

Ams-Laser commented 2 years ago

Thanks for tour prompt response,

Workflow as follows

1 setup a tread detection pin (i use the hold/pause pin on grbl

2 if this pin is triggered motion stops meaning we have a tread brake

3 we need to home Z (to lift the needle)

4 each time the stepback button is pressed we go one line back on gcode and move according to coordenates except Z axis we ignore those moves (to keep needle up)

5 on resume trigger we execute the resume comands (mostly gcode to stitch de to 5 times before continuing

6 once resume code is executed we set the z positiom using g92zxxx to the value on the line we are resuming OR the line Just before that

7 continĂșe runing code

Ams-Laser commented 2 years ago

@cguerrero1205 you think this is possible ?