Graham,
I tried the code that you recommended and unfortunately no joy. The code would work if it were a milling machine, however, since it isn't, the quilter only recycles to the front of the pattern and starts over at the datum. I have been fighting this issue for about 6 months now, and I know that there is a way to do it, I just can't find it.
Larry