# Recipe Management ## Overview This feature enables the automatic change of MES Sub Resource and Main Resource Recipe. ## 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 When a P&P event `PGCHANGEII` or a SPP event `PGCHANGEP` is received from the Fuji, the system takes the following actions: ### Area Feature Checks For the Pick & Place machines, the system uses `IoTMetadataDefinition` to determine the MES Sub-Resource Name through `FUJI_LineNameMachineNameModuleNo_{EquipmentLineName}_{EquipmentMachineName}/{EquipmentModuleNumber}`. For the Solder Paste Printer machines, the system uses `IoTMetadataDefinition` to determine the MES Resource Name through `FUJI_LineNameMachineNameModuleNo_{EquipmentLineName}_{EquipmentMachineName}`. ### Resource Feature Checks It verifies if the `UseFujiToPgChange` feature is enabled for this MES Resource(SPP) or Sub-Resource (P&P) in `IoTMetadataDefinition`. ### MES Operations If the feature is enabled, the Automation Manager Controller changes the recipe for the specific module and main resource when the event is coming from first module of the pick and place machine. Once the recipe is changed, the Automation Manager sends a `PGCHANGEII_ACK` or `PGCHANGEP_ACK`acknowledgment message back to the equipment. This message includes the result of the operation: - `OK` if successful - `Not OK` if it failed ## Assumptions SmartTable IoTMetadataDefinition is configured with the following entry for each station: | Resource | ResourceType | Area | Name | Value | |---------- | ------------ | ---------------- | ------------------------------------------------------------------------------- | ------------------- | | MES Fuji Station X Resource | | | UseFujiToPgChange | True | | | | Fuji Line Area | FUJI_LineNameMachineNameModuleNo_{EquipmentLineName}_{EquipmentMachineName}/{EquipmentModuleNumber} | MES ResourceName |