# Unload Feeder from Position ## Overview Unload the Consumable Feeders from Station Position. ### 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 | | [IoTFujiNeximUnloadComponents](../../artifacts/dees.md#iotfujineximunloadcomponents) | DEE | Yes | | Parses the data of UNLOADCOMP event and then calls UnloadComponents service with proper inputs. | | UnloadComponents | Service | Yes | | Detach reel from feeder and then feeder from the resource, if no other reel is present in the feeder.| ## How It Works When a `UNLOADCOMP` event is received from a Fuji NXT III machine, the following process is executed: ### Area Feature Checks - Resolves the MES Sub-Resource Name using `FUJI_LineNameMachineNameModuleNo_`. ### Resource Feature Checks - It checks whether the `UseFujiToUnloadComp` feature is enabled for the MES Sub-Resource in `ST_IoTMetadataDefinition`. ### MES Operations - If the feature is enabled, the Automation Controller calls the DEE [IoTFujiNeximUnloadComponents](../../artifacts/dees.md#iotfujineximunloadcomponents), passing: - The MES Sub-Resource Name - A list of components to be unloaded - The DEE performs the following actions: - Parses the data - Calls UnloadComponents service - The UnloadComponents service performs the following actions: - Detaches the **Reel from Comsumable Feed** - Detaches the **Consumable Feed from Resource if no other Reel is present in the feeder (Spliced)** Sends a `UNLOADCOMP_ACK` message back to the equipment, which includes: - A list of components - A result (`0 (Ok)` or `1 (NOk)`) for each component **Error Handling** If any component fails during the DEE or service operation, the entire set operation is considered failed. **Bypass Condition** If `UseFujiToLoadComp` is set to `False` or not defined, the DEE call is bypassed entirely. ### Assumptions SmartTable IoTMetadataDefinition is configured with the following entry for each station: | Resource | ResourceType | Area | Name | Value | | --------------------------- | ------------ | ---- | ------------------- | ----- | | | | Fuji Line Area | FUJI_LineNameMachineNameModuleNo_{EquipmentLineName}_{EquipmentMachineName}/{EquipmentModuleNumber} | MES Sub Resource Name | | MES Fuji Station X Resource | | | UseFujiToUnloadComp | True |