Hi, lazimolur
Don't really now what your trying to do, Trying to cut slots and testing tool & fixture offset's or just cutting slot's ?
These post's really should be in "G-Code, CAD, and CAM discussions".
A word or two would help, The M40 in the code is used for probing in Mach, What are your tool & Fixture setting's ?
Is it that the G40 isn't canceling the tool cutter radius compensation ?
Let us now, Chip