# Automatic Track-Out ## Overview This feature enables Automatic MES material Track-Out to the current Resource. !!! note "Currently supported events Keys:" *551TraceDataComponentRequest (This is also used when you want to Track-Out using 550 TraceData Event) * 602MachineEvent ## How To Configure ### 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 | | IoTMaterialOperations | Service | Yes | | Service that handles Material Operations requests form equipment in MES | ### How It Works When a event that is enabled to Track-Out the material out of the resource is received we will: * Check Conditions * Wait for traceability data to be processed(If configured). * When timeout is reached will continue. * Perform Track-Out * Trigger the configured PanaCIM event (usePanaCIMToTrackIn). * Execute MES operation (ComplexTrackOut or ComplexTrackOutAndMoveNext). The Controller will call MES DEE [IoTMaterialOperation](../../artifacts/dees.md#iotmaterialoperation) to handle the tracking operation. ## Assumptions SmartTable `IoTMetadataDefinition` is configured, other than the general setup keys [(check Setup for more information)](setup.md), with the following entries for each station: | Resource | ResourceType | Area | Name | Value | Description | | ------------------------------ | ------------ | ---- | ------------------------ | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | MES PanaCIM Station X Resource | | | usePanaCIMToTrackOut | *Supported Event String* | Track In Material with the chosen event.See List at the top of this page. | | MES PanaCIM Station X Resource | | | waitForTraceToDoTrackOut | True | Activate wait for track-out to finish on previous PanaCIM module. | | MES PanaCIM Station X Resource | | | useWaitTimeout | True | Set max waiting time. (10 = 1000 ms) | | MES PanaCIM Station X Resource | | | useTrackOutOperation | True | MES Track-Out operation to be performed on the current Material. `ComplexTrackOut` or `ComplexTrackOutAndMoveNext`. Defaults to `ComplexTrackOut` if not defined. |