G40 cancels tool diameter offsets and the machine will then ignore them until you program either G41 Dnn or D42 Dnn.
At the top of your program you should have a 'safety line' to cancel all offset values and set iitial conditions. We use G00 G17 G20 G40 G49 G80 G90 G98