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.
- Return type: CNM_CommandInterfaces.ISingleAttempt
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| partIdentifier | Tc2_System.T_MaxString | the part number as string | input |
| nokReason | DWORD | if <> 0, the record will be marked as not OK part | input |
| additionalMessage | Tc2_System.T_MaxString | can be used to provide additional informations for the record, e.g. voltage too low | input |
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