Robertspark wrote:Yes it can be split, but you would need to go through your sequence of what you would like it to do if you would like it written for you.
That one does the following (roughly):
1) Checks to see it the machine has been homed, if not it will progress no further
2) Saves all the current co-ordinates and modal information etc
3) moves the machine to the toolchange location (in machine co-ordinates) and waits.
4) once the tool change has happened it moves to the probing location (in machine co-ordinates)
5) runs the z axis probe and sets the tool offset.
6) moves back to the co-ordinates where M6 occurred.
7) restores all the current co-ordinates and modal information
8) starts the spindle
9) hands back (returns) to the gcode from the macro
Hi Rob
I have attached "my" M6. Only thing changed is the positions for probing, and shifted to metric from imperial, other than that, some text has been translated to Danish.
I have set the tool change position under settings in UCCNC to X300 Y50. As this line"
3) moves the machine to the toolchange location (in machine co-ordinates) and waits." does not seem to work.
What happens now is, when I press M6:
1) Checks to see it the machine has been homed, if not it will progress no further
2) Saves all the current co-ordinates and modal information etc (at first run it is all 0)
4) once the tool change has happened it moves to the probing location (in machine co-ordinates)
3) see comment above.
5) runs the z axis probe and sets the tool offset. (Often the slow probing is left out.!)
6) moves back to the co-ordinates where M6 occurred. (x300 y50)
7) restores all the current co-ordinates and modal information
8) starts the spindle
9) hands back (returns) to the gcode from the macro (Often retracts Zinto top limit sensor, and therefore halts)
I cannot see any patterns in the slow probing beeing left out and the Z lift at the end. Is it my start positions that is wrong?
My Machine reference point is at the lower lefthand corner, Z zero at top.
Thanks a lot for helping me out.
Regards
Jan