Skip to main content

enable

Short summary

Enables stepping mode for the cycle manager sequence.

Purpose and usage

This method enables the stepping mode functionality for the entire cycle manager sequence. When stepping is enabled, the cycle execution pauses after each step, requiring manual trigger or auto-step delay before proceeding to the next step.

Stepping mode is essential for:

  • Commissioning new sequences
  • Debugging sequence logic
  • Training operators
  • Validating step transitions

typical usage patterns

  1. Commissioning: Step through new sequences manually
  2. Debugging: Examine state between steps
  3. Training: Demonstrate sequence flow to operators
  4. Validation: Verify each step executes correctly

When to use

  • During initial commissioning of new equipment
  • When debugging sequence problems
  • For operator training sessions
  • During sequence development and testing
  • When validating modifications to sequences

Example

// Enable stepping for commissioning
cycleManager.configuration.configuration.sequence
.stepping
.enable();

// Enable stepping with auto-advance
IF debugMode THEN
cycleManager.configuration.configuration.sequence
.stepping.enable();
cycleManager.setAutoStepDelay(T#2S); // Auto advance every 2 seconds
END_IF;

// Manual step control
IF cycleManager.steppingEnabled THEN
IF HMI.StepButton.Pressed THEN
cycleManager.triggerStep(); // Advance to next step
END_IF;
END_IF;

// Show stepping controls in HMI
IF cycleManager.steppingEnabled THEN
HMI.StepButton.Visible := TRUE;
HMI.CurrentStep.Text := INT_TO_STRING(cycleManager.steps.current);
HMI.NextStep.Text := INT_TO_STRING(cycleManager.steps.next);
END_IF;

Parameters

none

Code

Declaration

METHOD enable

Implementation

THIS^.cycleManager.defaultSteppingEnabled := TRUE;