Hello Guest it is March 28, 2024, 04:31:20 AM

Author Topic: Spindle detection before gcode starts howto?  (Read 581 times)

0 Members and 1 Guest are viewing this topic.

Offline DAAD

*
  •  103 103
    • View Profile
Spindle detection before gcode starts howto?
« on: March 29, 2020, 04:01:01 PM »
I would like to make a macro to put in the header of my postprocessor thats chooses between router and spindle before the gcode starts running.
If possible based on tool number <=100 = Spindle,  >100 = Router

The problem is that the first tool in the gcode is supposed to be loaded, so this isn't checked before the gcode starts running.
Is there a way to get this tool checked ? Or a workaroud other method to get this toolnumber

At the moment i have an m6 basic macro that chooses between router / spindle based on tool number.
(the second tool get's picked up by the macro).

My goal is to end with loading the gcode file and the machine figuering out when to start with the router or spindle as needed from the start on.

Help is always aprecciated!

Keep Safe!

Adam