generate the cam and setup seperate work offsets for each then tag the code on after each one calling g55, g56 ect.