Change over the rotary indexing table DHTG to reciprocating motion – this tutorial explains how it's done.