Correction, modification program by detection type workpiece