how to set MCS?

I want to do program for drilling of 20mm thickness plate, I can do only vertical setting on machine so the holes axis is changing instead of z axis i has to do drilling in y axis. Machine is CME with heidenhain controller we can adjust the spindle head