Sorry for this being a very long post but wondering what the experienced plasma guys thoughts are, thats you TP, Ian, Rob, Dave and any others

I have been messing around with the servo drive to see what my options would be.
So here are a few things you can do in this drive.
You can have 2 modes of operation, so for example you could have :-
1. The main mode as Step/Dir then the override mode as Preset Velocity (RPM) .
2. The main mode as Preset Velocity then the override mode as Preset Position (encoder counts)
You can also set up an input to start the motor homing and you can have various methods of defining home. One option is a switch, another is motor current value etc etc.
Also for the Homing you can set a back off amount if desired, that would mean when the home sensor is seen it will back off a desired amount and then set the encoder count in the drive zero.
Another nice feature is you can define an input to have multiple meanings, for example I have set one up as Operation mode override and also Preset Position 0, another I have set up as Operation mode override and preset position 2.
Now that I have mentioned some of the options I have in the drive here are a couple of ways I could work this axis.
1. I could use Step/Dir as one mode and Preset Velocity as the second. I could then command the drive as the Z axis from Mach then when I want THC to take over I just use the override input and either up or down and these would get operated directly from the THC.
2. I could use Preset Velocity for one mode and Preset Position for the other and that would mean I do not use the Z Axis at all in Mach.
3. Just have Mach control the whole lot and have the THC control the axis via Machs UP/Dn commands
So in example 1. above what would happen is I command a home move, the axis would move to the surface (under the drives control) reach the current value then tell Mach it has homed and Mach would set the Z Axis as zero. Mach would then back off to pierce height and XY move to position and the torch would start, after the defined time then Mach would lower to the cut height and then pass control over to the THC and the THC would control the servo directly via the Preset Velocity inputs. Once that part of the cut was complete the THC would hand back to Mach, Mach would move to safe Z, move XY then tell the drive to home and the cycle would repeat.
In example 2 above the Z axis would not be controlled from Mach at all. A signal to home, probably from a M Code, would be sent to the drive, drive would move the motor down until it touched the material and the motors current reached the set amount. It would then back off the preset amount, call this safe Z, then Mach would be told it can continue.
Next X Y would move and then the Mode Override/Preset Position Input would send the axis to the pierce height, once pierce time is elapsed the next Input would be used to move to cut height and then control of the drive would be handed to the THC by using the Preset Velocity Inputs for Up/Down. Once cut is complete the axis would be sent back to the safe Z height and then the operation would repeat for the next cut.
I can see both 1 and 2 working and the second method would be more configurable with respect to accell and decel, as they can be set individually in the drive, but I can see that the pierce height and cut height would be fixed values in the drive. That could be overcome by having more than 1 input for pierce heights and thus I could have 2 or 3 different pierce heights. I think the cut height is normally a fixed height (1.5mm or so) after which the THC will take over and vary accordingly.
What do people think?
Any pitfalls that can be seen in any of the options?
Is this worth pursuing or am I better just letting Mach handle the whole thing?
The advantage I see with the THC controlling the drive direct is it cuts out the middle man (Machs Up/Dn), so it should be more responsive, but would it make much difference?
At the moment I am thinking Option 1 would be the best but.....
Hood