Recipe Download#
Overview#
Recipe Download transfers the process settings resolved by MES to the machine during Track In. The standard defines where parameters are written, but it does not prescribe the process-specific parameter names.
Recipe.<ParameterName> is a placeholder. A real machine uses actual names such as ProductCode, TargetSpeed, TemperatureSetpoint, or TorqueTarget.
Node Mapping#
Root recipe parameters use:
Sub-recipe parameters use:
Example:
| MES artifact | OPC UA segment | Rule |
|---|---|---|
| Main recipe Parameter name | <ParameterName> | Exact, case-sensitive match with the machine node Tag Name |
| Sub-recipe display name | <ResourceRecipeName> | Exact match with the OPC UA Folder Name |
| Sub-recipe Parameter name | <ParameterName> | Exact match below the sub-recipe folder |
IndEqOpcUaParameterDataType | OPC UA value type | Must exist in IndEqOpcUaDataTypes and be compatible with the target node |
Communication Flow#
sequenceDiagram
autonumber
participant E as Critical Manufacturing MES
participant I as Connect IoT
participant S as OPC UA Server
E->>E: Perform Track In within transaction and resolve RecipeContext
E->>E: Build main and sub-recipe parameter set
E-->>I: Parameter names, hierarchy, values, and data types
loop Each recipe parameter
I->>I: Build relative node path
I->>I: Validate and convert to the OPC UA data type
I->>S: Write recipe value
S-->>I: Write status
end
alt All required writes succeed
I-->>E: Recipe download succeeded, continue Track In handshake
else A required write fails
I-->>E: Recipe download failed with node diagnostic
end Step-by-Step Process#
- Track In is initiated either by the machine or by the operator.
- MES verifies that
Recipe Management Enabledis enabled for the Resource. - MES resolves
RecipeContextand selects the Recipe and respective Sub-recipes, if applicable. - Connect IoT receives the Parameter names, values, hierarchy, and configured OPC UA data types.
- For each main Parameter, Connect IoT builds
Recipe.<ParameterName>. - For each Sub-recipe Parameter, it builds
Recipe.<ResourceRecipeName>.<ParameterName>. - Connect IoT writes each OPC UA node and checks the returned write status.
- Connect IoT issues the Track In performed signal only after every required Parameter has been written successfully.
- The machine confirms the performed signal within
MachineReplyTimeout; MES commits Track In only after that confirmation.
Configuration Requirements#
- Resource
Recipe Management Enabledis enabled. RecipeContextresolves a valid recipe.- Recipe Parameter names, sub-recipe display names, and sub-recipe Parameter names match the OPC UA structure exactly.
EnableAutomationScenariosis set totrue.
Validation and Assumptions#
- Main recipe parameters are written to the correct nodes.
- Sub-recipe folders and parameters resolve correctly.
- A missing or non-writable required node causes a clear failure.
- Operator-initiated Track In also downloads the recipe when enabled.