Originally Posted by
Superman
I assume your custom ream is not a G code..
Normally the speed and feeds are stated after toolchanging.
Your initial positioning move is done before any bore work. Why are all modal conditions need to be repeated ?
Why not use standard G code ?
Normally XY position, Z Feed is G17 mode.
Why not use G19 which is YZ positions, feeds in X axis ?
Your sub would be just ZC addresses for each bore.
I would consider the time effort
.. how much time to program using an untested methods, diagnose glitches, etc.
Verses
... use standard methods, less problems, easy to fault find, quicker to get job completion.
Get it to work using easy methods, then start to shorten, introduce macros etc.