While not knowing much about PCDMIS I do know that the software and Mitutoyo's GeoMeasure6000 software uses basically the same command structure. Instead of looping, can you use a program repeat function?? I don't know if PCDMIS has this but the MTI does.