Hi Brett i appreciate your patience.
I am using that Zero tool as is, i have made a touch plate that is nearly 13mm thick as i also use the probe by a guy over in the USA i am sorry i have forgotten who.
"So my plate touches when it breaks contact".
All the coding is inside the script, i just touch down then i am at Zero.
But i want a dro on the screen so that if it says 0.0000 then when i use my touch tool then i am at zero on the top of my workpiece.
But i want this dro to add an offset so that if i enter 12 then when i zero i am actually 12 mm "PART THICKNESS NOT PLATE THICKNESS"
As i say in my original post i want to add to the script so that i can set an offset either in the plus or minus direction.
This is how i do it at the moment
What i am doing is touching top of workpiece "Z reads Zero"
I move away use MDI G0 Z0 my tool is at zero according to the touch plate then change the Z dro to what i actually want, 12mm in this case but it could be 3mm 15mm 1.mm or Zero if dro is empty
So this is maybe how it works i have a dro on my desktop it has 12 in it i run the standard script and at the end after going to the retract height it then says does "Z=Z+dro" or something to that effect to reach my goal of adding a figure in my dro the the z figure.
Does that make sense.
Phil_H