# Load Feeder to Position ## Overview This feature enables the load of Consumable Feeds with Consumables to 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 | | [IoTFujiNeximLoadComponents](../../artifacts/dees.md#iotfujineximloadcomponents) | DEE | Yes | | Its purpose is to Attach feeders from a specified MES resource | | /IoT/AllowReelCreationOnComponentLoad | Config | Yes | | Determines whether reels can be created in MES if they do not already exist | ## How It Works When a `LOADCOMP` event is received from a Fuji NXT III machine, the following steps are executed: ### Area Feature Checks - Resolves the MES Resource Name using `FUJI_LineNameMachineNameModuleNo_`. ### Resource Feature Checks - It checks whether the `UseFujiToLoadComp` feature is enabled for the MES Resource in `IoTMetadataDefinition`. ### MES Operations If the feature is enabled, the Automation Controller calls the DEE [IoTFujiNeximLoadComponents](../../artifacts/dees.md#iotfujineximloadcomponents), passing: - The MES Resource Name - A list of components to be loaded, including their positions The DEE: - Sets the **Consumable Feed relations** - If Material and Feeder already exist, they are attached to the corresponding Resource. - If Material does not exist: - When the `AllowReelCreationOnComponentLoad` configuration is set to `true`, the Material is created during the transaction and then attached. - When the `AllowReelCreationOnComponentLoad` configuration is set to `false`, an exception is thrown. - Updates the **quantity of the consumables** Sends a `LOADCOMP_ACK` message back to the equipment, which includes: - A list of components - A result (`0 (Ok)` or `1 (NOk)`) for each component - Remaining Floor Life time (if already started in MES) **Error Handling** If any component fails during the DEE 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 | | --------------------------- | ------------ | ---- | ----------------- | ----- | | MES Fuji Station X Resource | | | UseFujiToLoadComp | True |