Look at the source code below. It rotates the A axis the the first position when the subroutine starts at 22.5 degrees. As it exits the subroutine the first time it increments the A Axis value to 67.5 and moves correctly. But upon exiting the subroutine for the third time the pointer goes back to the start of the program at line #1 with the error "sub called with no sub in effect... looping"
What am I doing wrong? v1.90.081
(#1001 = X Axis)
(#1002 = A Axis)
#1001=0
#1002=22.5
M98 P1001 L #8
O1001
g0 x#1001 A#1002
G73 z-.15 r.1 q.02 f3
#1002=[#1002+45]
M99