If the control allows the changing of retract planes during a canned cycle you must adjust the post with the following steps:
For example, for Fanuc, the G98 and G99 G-codes are entered in the NC Codes dialog, and a sample drilling cycle would be:
{N<SEQ> }<CYCLE> <CYCLE-RTRCT> Z <ABS-DEPTH> R <ABS-ZCLEAR> F <FEED><EOB> {N<SEQ> }{X<X-COORD>}{ Y<Y-COORD>}<EOB>