The DefectReasonType describes a defect reason that is monitored by a SensorFunction. The DefectReasonType is formally defined in the following table.
Table 62 – DefectReasonType Definition
| 
 Attribute  | 
        
 Value  | 
||||
| 
 BrowseName  | 
        
 DefectReasonType  | 
||||
| 
 IsAbstract  | 
        
 False  | 
||||
| 
 References  | 
        
 Node Class  | 
        
 BrowseName  | 
        
 DataType  | 
        
 TypeDefinition  | 
        
 Other  | 
| 
 Subtype of the BaseObjectType defined in OPC 10000-5 - Part 5: Information Model, i.e. inheriting the Instance Declarations of that Node.  | 
|||||
| 
 0:HasProperty  | 
        
 Variable  | 
        
 DetectionMode  | 
        
 0:Boolean  | 
        
 0:PropertyType  | 
        
 M, RW  | 
| 
 0:HasComponent  | 
        
 Variable  | 
        
 DetectionCountMasterTotal  | 
        
 0:UInt64  | 
        
 0:BaseDataVariableType  | 
        
 M, RO  | 
| 
 0:HasComponent  | 
        
 Variable  | 
        
 DetectionCountTotal  | 
        
 0:UInt64  | 
        
 0:BaseDataVariableType  | 
        
 M, RO, HR  | 
| 
 0:HasComponent  | 
        
 Object  | 
        
 UIInfo  | 
        
 
  | 
        
 UIInformationType  | 
        
 O  | 
| 
 0:HasComponent  | 
        
 Method  | 
        
 SetDetectionMode  | 
        
 See below.  | 
        
 O  | 
|
| 
 0:GeneratesEvent  | 
        
 ObjectType  | 
        
 DetectionModeChangeLogType  | 
        
 
  | 
        
 
  | 
        
 
  | 
| 
 0:GeneratesEvent  | 
        
 ObjectType  | 
        
 DefectDetectedLogType  | 
        
 
  | 
        
 
  | 
        
 
  | 
| 
 Conformance Units  | 
|||||
| 
 TMC Quality Assurance and Control  | 
|||||
The components of the DefectReasonType are further described below.
| 
 BrowseName  | 
        
 Description  | 
| 
 DetectionMode  | 
        
 When DetectionMode is True, the defect reason is triggered. When DetectionMode is False, the defect reason is not active, i.e. never triggered.  | 
| 
 DetectionCountMasterTotal  | 
        
 The total number of times the defect reason occurred. The total is never reset to zero.  | 
| 
 DetectionCountTotal  | 
        
 The total number of times a defect reason occurred. The total is reset to zero only when the ResetProductionTotals method in the MachineModuleProductionType is executed successfully.  | 
| 
 UIInfo  | 
        
 The visualization resources to display the DefectReasonType on the User Interface.  | 
The Method SetDetectionMode enables or disables the defect detection sensor.
The signature of this Method is specified below. Table 63 specifies the Arguments representation.
Signature
SetDetectionMode (
[in] 0:Boolean Enable,
[out] MethodExecutionFeedbackType ExecutionFeedback);
Table 63 – SetDetectionMode Method Arguments
| 
 Argument  | 
        
 Description  | 
| 
 Enable  | 
        
 Specifies if the method enables, when True, or disables, when False, the defect reason.  | 
| 
 ExecutionFeedback  | 
        
 The extended feedback returning a detailed message in case of execution failure.  |