I have a 5-axis Mori Seiki vertical. I'm familiar with how to loop a block of code, but I'm now trying to loop a block of code 5 times while changing the work offset from G54, G55, G56, so on. I'm wanting to do this so that when I alter code at the mill, I don't have to change a ton of copied code OR macro code OR subprogram code. I've searched everywhere and can't seem to find an answer. Does anyone have an idea on how this could be done? Thanks in advance!