Will be End If at the end of it, also you will need that in the macro pump so that it appears as soon as the input becomes active.
Another way to do this and probably the way I would do it is have it tied to your Start button, that way it will not appear whilst cutting but will only appear when about to start, I would do it that way as I would also have it so that I could not start any code unless the oil is topped up, I have a similar setup in the start button to detect whether I have the manual disable switch for my spindles servo drive active.
Hood