You are programming with Fanuc format ... the OSP is different :
M98 P1234 would be CALL O1234
No G98 ... you need :
G71 Z ( this is your initial plane ... this block is prior to your canned cycle call )
M53 is G98
M54 is G99
Hope this helps ...
Real World machine Shop Software at ... Kentech Inc. - Real World Machine Shop Software
Want to convert your Fanc programs to OSP ... or OSP ones to Fanuc ??
Check out CNC XChange from Kentech Inc.