Adapt your sequence execution to different workpiece variants (e.g. Small vs Large model) and dynamic recipe parameters.
You can use these variables directly in your sequence (they will be created automatically). If you want to specify their data type or add a description, you can do so via the Variables sidebar:
| Variable Name | Type | Description |
|---|---|---|
iCurrent_Recipe_ID |
INT |
Active product type (1 = Part Model A, 2 = Part Model B) |
tWeld_Duration |
TIME |
Dynamic timer parameter loaded from HMI recipe |
rTarget_Position_Z |
REAL |
Positioning offset for the selected workpiece |
Use integer comparison operators in transitions to route execution to model-specific processing steps:
[Step 10: Part In Position]
|
+----------------------+----------------------+
| |
(iCurrent_Recipe_ID == 1) (iCurrent_Recipe_ID == 2)
v v
[Step 11: Machine Part Type A] [Step 12: Machine Part Type B]
| |
+----------------------+----------------------+
|
(bCycle_Finished)
v
[Step 13: Next Stage]
Instead of hardcoding millisecond values into step actions, reference dynamic variables:
tWeld_Duration.