Mach skips over G31 command

Anyone had a problem with mach3 skipping over the g31 gcode? If I type it in the comment box like G31 z-100.0 f500 works if I make a file with sheet cam send it tho skips over G31 z-100.0 f500 everytime…any help would be much appreciated