by beefy » Mon Dec 25, 2017 1:52 am
That's along the lines of what I'm going to do.
The initial prep movement window seems to automate a thing or two, e.g. if you want to rapid to the run from here position via scripting, you'll have to command G0 then afterwards command G1 again because G0 is modal.
I'm trying to automate plasma restarting but with a dry run and the torch firing during the dry run. Already did it some time ago using your bounding box idea, but was manually doing the Run From Here and clicking the OK button in the initial movement prep pop up window. I'm working towards a single button click solution for plasma mid cut restart but with various goodies built in.
In the new year I might ask Balazs if it's possible to create a function that does the opposite of the RemoveRunfromhere(); function, i.e. it automatically "clicks the OK button" in the initial movement prep window when you do a Cycle Start after pressing Run From Here. You just have to manually do the setup once in the initial movement prep window then it seems to retain those settings each time, and therefore you could automate the initial movement prep work if there's a function to run it. I'd guess that should be quite easy to implement in UCCNC, as everything is already there, just need a function to allow automation in a macro/plugin.