Skip to main content

partProcessingDone

Short summary

This command creates a part counter dataset for the currenttly processed part. The part will be counted as OK part if the nokReason is set to 0 and not OK otherwise. The additionalMessage can be used to provide additional information, e.g. SPC part or measurements that are out of the permissible range.

Parameters

NameTypeCommentKind
partIdentifierTc2_System.T_MaxStringthe part number as stringinput
nokReasonDWORDif <> 0, the record will be marked as not OK partinput
additionalMessageTc2_System.T_MaxStringcan be used to provide additional informations for the record, e.g. voltage too lowinput

Code

Declaration

METHOD partProcessingDone :CNM_CommandInterfaces.ISingleAttempt
VAR_INPUT
(* the part number as string *)
partIdentifier :Tc2_System.T_MaxString;
(* if <> 0, the record will be marked as not OK part *)
nokReason :DWORD;
(* can be used to provide additional informations for the record, e.g. voltage too low *)
additionalMessage :Tc2_System.T_MaxString;
END_VAR