Thanks for the link! It's going to take me a little while to wrap my head around the g-codes and whatnot, but it does look like it'll do what I was asking.