Turning head programmable pattern machine