enable
Short summary
Enables stepping mode for the current cycle manager step.
Purpose and usage
This method enables the stepping mode functionality for the current step only, overriding the sequence default if necessary. When stepping is enabled for a step, execution pauses after entering the step, requiring manual trigger or auto-step delay before proceeding.
Enabling stepping at the step level is useful for:
- Critical steps requiring verification in automated sequences
- Decision points where operator input is needed
- Steps where results should be inspected
- Debugging specific steps in production sequences
typical usage patterns
- Verification steps: Force stepping for result checking
- Decision points: Require manual confirmation
- Critical operations: Enable stepping for careful execution
- Override sequence: Enable stepping for specific steps only
When to use
- For steps requiring operator verification or decision
- During critical operations needing manual control
- At inspection or quality check points
- When specific steps should use stepping regardless of sequence settings
Example
// Enable stepping for verification step
CASE cycleManager.steps.current OF
MySteps.PERFORM_OPERATION:
// Normal automated execution
IF operationComplete THEN
cycleManager.steps.next := MySteps.VERIFY_RESULTS;
END_IF;
MySteps.VERIFY_RESULTS:
// Force stepping for manual verification
cycleManager.configuration.configuration.step
.stepping.enable();
displayResults();
// Operator must trigger next step manually
IF resultsApproved THEN
cycleManager.steps.next := MySteps.CONTINUE;
END_IF;
END_CASE
// Conditionally enable stepping
IF criticalOperation OR requiresInspection THEN
cycleManager.configuration.configuration.step
.stepping.enable();
END_IF;
// Force stepping in production for specific steps
IF isQualityCheckStep(currentStep) AND productionMode THEN
cycleManager.configuration.configuration.step
.stepping.enable(); // Override sequence default
END_IF;
Parameters
none
Code
Declaration
METHOD enable
Implementation
THIS^.cycleManager.currentSteppingEnabled := TRUE;