Skip to main content

addMeasurement

Short summary

This command creates a new measurement entry and queues it for the database insection.

Parameters

NameTypeCommentKind
partIdentifierTc2_System.T_MaxStringproduct identifier for that specific partinput
nameTc2_System.T_MaxStringname of the measurement, e.g. label position, cell voltage, oven temperatureinput
unitUnitStringunit of the measurement, e.g. mm, V, °Cinput
rangeMeasurementRangeStructPermissible value range of the measurement for OK partsinput
valueLREALvalue of the measurementinput

Code

Declaration

METHOD addMeasurement :CNM_CommandInterfaces.ISingleAttempt
VAR_INPUT
(* product identifier for that specific part *)
partIdentifier :Tc2_System.T_MaxString;
(* name of the measurement, e.g. label position, cell voltage, oven temperature *)
name :Tc2_System.T_MaxString;
(* unit of the measurement, e.g. mm, V, °C *)
unit :UnitString;
(* Permissible value range of the measurement for OK parts*)
range :MeasurementRangeStruct;
(* value of the measurement *)
value :LREAL;
END_VAR