Hi TPS
thanks very much for your help, sometimes things just drive you mad and you can't see the wood for the trees
1) i've ended up with a conveluted bit of logic to get a cycle stop LED to work; taking, single block, cycle and feed hold into consideration. It seem to work well, confirmation of no stop mode led ok, i will stop looking
3) would have been nice but thinking about it there is only spindle, coolant and a few others that are standard so its best forgotten about, should maybe put my brain into gear before engaging a shout for help
4) That works a treat, dont know why i did not come to that conclusion, thanks a lot
5) The code works great in the VB editor but does not work from a tranparent button image with code 33 or 34
any idea's . I cut and pasted the code just to make sure it was not finger trouble.
i'm getting there slowly but surley; between "Brains" and "MachScreen" its a bit of a learning curve
thanks again for all your help
servomac