Hi Michael,
neptunier2 wrote:
is there a way to get the tool after the tool change position is reached to the old x y position and then lower z after that? do i have to change the post processor or is there a nice way in msm. i have a zx45 with lots of z travel, so it will be safe for x y movement after tcp is reached.
thanks,
michael
Let's start with noting the basic reality of the Mach tool change situation:
A Mach3 tool change sequence often involves some X,Y,Z movement. Also,
Mach3 allows jogging during the tool change. Therefore, a Mach3 TC can not assume that the
position at the start of a TC is the same as the position at the end of the TC sequence.
With Mach3 and MSM, using "auto TCP" moves position in XY - so an MSM feature
specifically causes Tool movement.
A key issue is that MSM can’t (automatically) “put the tool back to the TC start position” as part of TC
sequence. Doing so during the TC sequence is not possible because the control (Mach) does
not (and can not) know the TLO value of the newly mounted tool, or even if the G-Code will
want any TLO value applied.
Remember that the M6 code does not apply TLO as part of a tool change sequence, the G43
preparatory command has to be executed to apply TLO. It is
unsafe for the M6 TC code to make any assumptions about tool TLO. Making any such
assumption in the M6 scripts will/can cause a tool crash – so MSM doesn't don’t do it.
In addition to the above, the CNC control (mach) has no knowledge of where within the machine's work envelope things like vises and clamps may exist. So it's essentially impossible for the CNC control to be moving the tool tip around while avoiding clamps etc.
Now then there is an experimental macro feature provided as part of MSM that **may*** (or may not) be of interest to you:
Section 15.9.4 of the user manual describes a user M code that can be invoked after a tool change is completed - that macro will attempt to move the tool tip (including accounting for the TLO of the newly mounted tool) to the same XYZ location as the tool tip of the previous tool.
Note: this m-code was invented back when MSM was first written and we asked for user input - but I don't remember ever receiving any.
Frankly, I am not sure anyone but me has ever used it, and I only used it for some initial development testing way back when.... But is was invented as an attempt to address this whole issue.
You are welcome to give M1706 a try. If you do, please let me know how it works out for you.
Dave