Problem with Post Processor

I am the new on SheetCam. My problem auto z zero. the Gcode from sheetcam is G28.1 but mach3 need G31 and i do not know how to edit Gcode please help me