As long as ModeHoming is not available, you can help yourself with a user defined operating mode.
This is described here in the online help: https://docs.automation.boschrexroth.com/document/version/01/ctrlX-PLC-Engineering_-PLC-Libraries_-Reference-Book/chapter/metadata.boschrexroth.de~iiDC~Topic-683eadabfdf851ff0a347e883fe91e5d-1-en-US~en/
ctrlX PLC Engineering, PLC Libraries, Reference Book --> CXA_MotionInterface --> AxisInterface --> AxisInterface - User extension --> Using the user-defined operation mode
Just use the MC_Home (when it is avalaible) in the method mUserModes.
Your command will then be:
arAxisCtrl_gb[AxisZ.AxisNo].Admin._OpMode.en := ModeXx_User_0;
Hth,
Klaus
... View more