I will go out at lunchtime and check the script but for now I can say the ohmic is basically connected as my Z "home switch". So for instance if I go into diagnostics and place a piece of metal against my torch tip my Z home lights up. I do have an ACTUAL switch as an emergency stop, but that doesnt really factor in to this I dont believe.
To clarify I want to physically find the metal surface each time an M3 is commanded. This is due to the fact some of my thin metal is very wavy and even though my table is level, my material is not. So I want to do the following:
Every time M3 is called:
- Torch is lowered until the ohmic (Z home switch) senses metal.
- Auto zeros out as this is the 0 point.
- Comes up .003 inches as this is what it takes to slide a piece of paper under the tip.
- Auto zeros out again
- Comes up .08 inches (pierce height)
- Turns on torch (there is no pierce delay for my metal)
- Lowers to .002 inches (work height off metal surface)
- Then my DTHC will take over and x and y will do their thing.
Then for a torch off M5 command:
- Turn off torch
- Raise to 1 inch or so (so I dont snag going to my next piece).
Hopefully I am stating this clearly, I am fairly new to this, but I am sure you hear that a lot. I appreciate you being so patient with me.
Thanks,
Jason