So, without changing anything else, I added a G28 to home after the Z offset probing commands. With just the G28 the system homes but the probe still does not retract. However, if I add a M402 command after the G28, the system does the G30 probes, then the G28 homes, then M402 forces the probe to retract. I also added manual G1 commands to the end of the file to retract the probe and those work as well. Not sure if that helps understand what is going on, but I hope it means something to somebody here because I should not need the last G28/M402 or the manual movements to retract the probe in this macro. At least I have a work around for the issue but I would like to understand why macro does not work as it should. Thanks for any help anyone might have.
;Z Offset Calibration Finish
M98 P"Check to see if probe is attached.g"
G90 ;set absolute
M401
G1 Z20 ;raise Z up 20 mm
G30 S-1 F150 ;(G30) home z (S-1) record z height
G4 P500 ;pause .5 sec
G1 Z20 ;raise Z up 20 mm
G30 S-1 F150 ;(G30) home z (S-1) record z height
G4 P500 ;pause .5 sec
G1 Z20 ;raise Z up 20 mm
G30 S-1 F150 ;(G30) home z (S-1) record z height
G4 P500 ;pause .5 sec
G1 X175 Y175 Z25 ;move Hot End to X175 Y175
M291 P"Check Consule for Results of Probing " S2 ;instruct user to check results in Consol
G1 X63 Z20 F20000
G1 Y345
G1 X175
G1 Y175
;G28 Z
;M402