--- pdfexport: true module: Electronics timetoread: True tutorial: deepdive alias: tutorials-terminate-defect-action glightbox: True --- # Tutorial: Terminate Defect Action ## Objective Learn how to configure and execute the **Terminate Defect Action** to automatically terminate defective boards and correctly track X-out scenarios in panels. --- ## Step 1: Configure Lookup Tables - Navigate to **Administration > Tables** and open the **Lookup Tables** - Configure the following: - `SMTBoardForms` – material forms representing boards - `SMTPanelForms` – material forms representing panels ![Lookup Tables](images/terminate/select_lookup_tables.png) - Add the appropriate material forms ![Update Lookup Tables](images/terminate/board_panel_form.png) > Ensure values are mutually exclusive between both tables --- ## Step 2: Configure Defect Action Context - Open the **SMTDefectActionContext** Smart Table ![Select DA ST](images/terminate/defect_action_st.png) - Create a new entry defining: - Product / Product Group - Flow / Step (e.g., SMT_AOI) - Defect Reason - Defect Action = **Terminate Material** --- ## Step 3: Configure Board Identification Logic (Required for Non-Serialized Materials) ### 3.1 Configure SMTConventionContext - Open the Smart Table and define the convention used to identify boards per resource and step ![Select CC ST](images/terminate/convention_context_st.png) --- ### 3.2 Configure SMTMapBoardIDContext - Open the Smart Table and define how `MESPositionID` maps to board identifiers ![Select MBID ST](images/terminate/smt_map_board_id_context.png) --- ## Step 4: Configure Product Defect Action - Navigate to the **Product** and open the **Defects** view ![Select defects](images/terminate/select_defects.png) - Click **Manage Defects** ![Select manage](images/terminate/select_manage.png) - Configure: - **Operation** = TrackOut - **Action** = Terminate Material ![Manage defect actions](images/terminate/manage_defect_actions.png) --- ## Step 5: Configure Loss Reason - Identify the step where defects are recorded (e.g., SMT_AOI) and configure the **loss reason** ![Loss reason](images/terminate/smt_aoi_loss.png) > There is a special case, which is in Line Flows, that requires that the loss reason needs to be configured in the step after, because the Defect Action runs after track-out. --- ## Step 6: Execute – Serialized Materials Scenario ### Initial State - Panel with multiple serialized boards - Each board has a `MESPositionID` ![Panel A](images/terminate/panel_a.png) --- ### Track-In - Track in the panel to the inspection step (e.g., SMT_AOI) ![Panel A track in](images/terminate/panel_a_trackin.png) --- ### Register Defects You can register defects in two ways: #### Option 1: Directly on the board ![Board A Defect](images/terminate/board_a_defect.png) #### Option 2: On the panel specifying sub-material ![Board C Defect](images/terminate/board_c_defect.png) > When registering defects on a panel, you must specify the sub-material --- ### Track-Out - Track out the panel Expected results: - Defective boards are terminated ![Panel minus two](images/terminate/panel_a_minus_two.png) - Panel attribute `SMTUnitsExcluded` is updated ![Panel minus two attributes](images/terminate/panel_a_minus_two_attributes.png) --- ### Additional Behavior - Manually terminating a board also updates `SMTUnitsExcluded` ![Terminate Board B](images/terminate/terminate_board_b.png) ![Panel A minus three](images/terminate/panel_a_minus_three.png) --- ## Step 7: Execute – Non-Serialized Materials Scenario ### Initial State - Panel with non-serialized boards ![Panel B](images/terminate/panel_b.png) --- ### Track-In and Register Defects - Track in the panel - Register defects using `MESPositionID` ![Panel B](images/terminate/panel_b34.png) --- ### Track-Out - Track out the panel Expected results: - Panel quantity decreases ![Panel B2](images/terminate/panel_b2.png) - `SMTUnitsExcluded` is updated with defective positions only ![Panel B2A](images/terminate/panel_b2a.png) --- ## Expected Result - Defective boards are automatically terminated - Panels track excluded units via `SMTUnitsExcluded` - Panel is terminated when all boards are defective --- ## Frequent Configuration Questions ### Why is the Defect Action not being triggered? Verify that both the Product configuration and the corresponding Smart Table configuration are correctly defined. ### Why is the panel not being updated correctly? Check that the Lookup Tables and mapping tables are properly configured and contain the expected values. ### Why do I get an error during Track-Out? Ensure that a sub-material is defined when registering defects at the panel level. ### Why is the loss reason not available? Confirm that the loss reason is configured in the step immediately following the defect detection step.