Identification of workpiece and data for control, inspection, safety, calibration