Ok, thats good advice, but I have no idea how to find out why it will not release until stop is pressed, there is no "Terminating Script..." message etc.
All i can figure out is that it works if Stop is pressed first??
Having said that, I need to test again since moving to a UserDRO instead of the Oem803 one i was using, it may just be the DRO causing the hang.
Will have to test this tomorrow night as there was an issue with the DRO chosen which is being fixed now, this will give me a DRO that is totally isolated from the general Mach system so should be safe.
I am doubtful though as I am pretty sure it was the same when I had the code cut down so far there was no DRO at all - it just read the value and poked it straight into the tool table.
Will find out tomorrow hopefully.