# Automatic Track-In ## Overview This feature enables automatic material **Track-In** into the MES Main Resource. **Track-In** is available for Pick and Place and Solder Paste Printer machines (`PCBCHECKIN` and`PCBCHECKINP`). ### Behavior Handle Tracking messages `PCBCHECKIN` and `PCBCHECKINP`, Those events are received at Machine level, not by module. Will use `PCBCHECKIN`,`PCBCHECKINP` and respond with `PCBCHECKIN_ACK`,`PCBCHECKINP_ACK` with: - `Result = 0` (OK) if material is successfully tracked in - `Result = 1` (NOK) if material could not be tracked in ### Configuration Options - Allow the user to **enable or disable** the Track-In functionality - Allow the user to **validate BOM** at start of production ## Relevant Artifacts The table below describes the properties for this entity type: | Name | Type | Is Mandatory | Data Type | Description | | --------------------- | ---------- | ------------ | --------- | ------------------------------------------------ | | IoTMetadataDefinition | SmartTable | Yes | | Metadata configuration for equipment integration | ## How It Works ### Area Feature Checks - Resolves the MES Main Resource Name using `FUJI_LineNameMachineName_{EquipmentLineName}_{EquipmentMachineName}`. ### Resource Feature Checks - Checks if `UseFujiToTrackIn` is enabled. - Checks if `UseTrackInOperation` is defined: - If defined, uses the specified operation. - If not, defaults to **ComplexTrackIn**. ??? info "Track-In Operations" - TrackIn - ComplexTrackIn - ComplexDispatchAndTrackIn - ComplexDispatchAndTrackIns ### Material Operations Calls the DEE `IoTMaterialOperation` unless `UseFujiToTrackIn` is not set, in which case the DEE call is bypassed. ## Track-In Configuration SmartTable `IoTMetadataDefinition` should be configured with the following entries: ??? example "Sample Configuration" | Resource | ResourceType | Area | Name | Value | | ----------------- | ------------ | -------------- | ------------------------------------------------------------------- | --------------------- | | | | Fuji Line Area | FUJI_LineNameMachineName_{EquipmentLineName}_{EquipmentMachineName} | MES Main ResourceName | | MES Main Resource | | | UseFujiToTrackIn | True | | MES Main Resource | | | UseTrackInOperation | *TrackInOperation* | ## BOM Pre-Check Validation - Enable BOM validation by setting `usebomvalidation = true` - Define the MES service to be used via `useBOMValidationService` !!! note "**<Input object>, <Namespace> | <url>**" default value: Cmf.SMT.IoT.Utilities.Orchestration.InputObjects.ValidatePlacementListInput, Cmf.SMT.IoT.Utilities.Orchestration | api/IoTUtilities/ValidatePlacementList ??? Example | Resource | ResourceType | Area | Name | Value | | ----------------- | ------------ | ---- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | MES Main Resource | | | usebomvalidation | true | | MES Main Resource | | | useBOMValidationService | Cmf.Custom.ProjectName.Orchestration.InputObjects.CustomValidatePlacementListInput, Cmf.Custom.ProjectName.Orchestration\|api/ProjectName/ValidatePlacementList | !!! Warning "BOM Validation is not available for Solder Paste Printer machine event, so it should be disabled."