grblHAL / RP2040

grblHAL driver for RP2040 (Pi Pico)
Other
103 stars 44 forks source link

Automatic tool probing issue #25

Closed jafgraphics closed 2 years ago

jafgraphics commented 2 years ago

Hi, I've set up a tool probe at G59.3 and TLO probing works OK but when I try to use automatic probing during a program the controller stops processing commands. This is the process the controller goes through during a tool change.

  1. Raise Z axis Up and waits for cycle_start press. ( Tool changed here)
  2. Moves to the G59,3 location.
  3. Performs probing cycle.
  4. Moves Z axis up and moves back to the XY location where the tool change was called.
  5. Pauses for 3-4 seconds ( Not sure why?)
  6. Moves Z down to return cutter to original position.

Now the controller state is "IDLE" and nothing happens, I would assume the controller should continue running the program. Pressing "cycle_start" does nothing. Pressing "unlock" allows the program to continue but the toolchange block if marked as "go"

I've debugged the tool change sequence and everything seems OK, the only driver related issue I could find was that there was no hal.irq.enable or disable functions set. As I don't fully understand how the interrupts are handled in grblhal I couldn't possibly comment.

Any ideas?

andrewmarles commented 2 years ago

This is likely this issue (was not actually related to IOSender, just where it was reported): https://github.com/terjeio/ioSender/issues/195

For me was fixed in the latest commit to the core.

jafgraphics commented 2 years ago

Sounds very similar, i'll update tomorrow and test. Thanks.

jafgraphics commented 2 years ago

Thanks, that fixed the issue.