Cam system for sliding head lathes