OK, but it would rotate 9 times to CW or CCW direction.
Don't tell me that the direction does not matter, because if you want to use that code for machining as you told me then the movement direction matters.
BTW, in Mach3 that code will not rotate either.