Version 2013
I am using a Flow Control Loop to run a single program on multiple parts spaced evenly in the X and Y. It's been working fine.
Today I wanted to get back to the SUBROUTINE thoughts I've been working on so I pulled the measurement portion of the program out and created a SUBROUTINE of it.
That parts also works fine when I measure a single part.
When I add the LOOP back in, the measurement program returns to the first part every time it indexes through the loops. I correctly moves to the next part for an initial measurement when in the main program.
I've used some variable, reports and operator comments to prove to myself that the program is actually entering the SUBROUTINE correctly and indexing my variable correctly.
Anyone know what I've missed?
I even tried to change the SUBROUTINE alignment using X and Y offsets with variables to no avail.
Thanks.
I am using a Flow Control Loop to run a single program on multiple parts spaced evenly in the X and Y. It's been working fine.
Today I wanted to get back to the SUBROUTINE thoughts I've been working on so I pulled the measurement portion of the program out and created a SUBROUTINE of it.
That parts also works fine when I measure a single part.
When I add the LOOP back in, the measurement program returns to the first part every time it indexes through the loops. I correctly moves to the next part for an initial measurement when in the main program.
I've used some variable, reports and operator comments to prove to myself that the program is actually entering the SUBROUTINE correctly and indexing my variable correctly.
Anyone know what I've missed?
I even tried to change the SUBROUTINE alignment using X and Y offsets with variables to no avail.
Thanks.
Comment