Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

well I have just taken the codes form your script and give it a try. The code looks ok to me and working as well. Just for sake of Trial here is 

"secondary-spindle-return" :
writeBlock(gMotionModal.format(1), "Z3=" + spatialFormat.format(cycle.pullingDistance),conditional(cycle.feedrate,TransfeedOutput.format(cycle.feedrate)));

The problem here is you have "F
EED_MODE_UNIT_REV" as "ON" i.e mm/rev. Is it  necessary to have feed in mm/rev for part transfer operation ??? Let me know your thoughts on it. May be we could try another way to fix this from roots.