Hi to all the users out there,
I've long been using TNG, works great. My shortfall is that I'm not a script or code writer. Basic G-code, no problem, but getting a script going is my nemesis.
I have a moveable tool setter, accurate, with a trigger point measured at 67.5mm from it's base. I wish to jog to close to it, place it under the tool, and activate a script that will jog it down, trigger it, stop, set the Z-axis to 67.5mm, then jog Z up to 100mm so I can pull out the tool setter.
Probe set, high and low speed values set, switch click set, Z position set, the Measure function just does not do it. It goes down fast, triggers the switch, returns 2mm, goes down slow, triggers it again, returns back a bit to a height I cannot see where i was, then set's Z to 0. Does not help me, I want Z to be set to 67.5mm at triggering the setter on the slow measure, then go up to 100, for if I then remove the setter, the tool will be 100mm above the work surface.
I tried using the G-code program; first line M59 P1, next line G09 Z67.50, next line G00 Z100.00, it works. When I run it, it waits for Input 1 to be triggered, the Z position immediately sets to 67.50, and it then goes up to 100.0. Great, but how do I get the Z-axis to jog down and wait for the input to be triggered before activating the G09 command? I cannot use for instance G01 Z-50.00 F100, hoping for it to jog downward and hit the setter switch to then stop and execute the G09 command, as it first want to complete the downward jog to Z-50.00 before it stops, waits for the probe to be triggered, then does the correct thing from there on. I sense I need some conditional O command....
Any help out there with this issue?
Thanks, Francois.