Skip to main content

enable

Short summary

Enables pause functionality for the cycle manager sequence.

Purpose and usage

This method enables the pause functionality for the entire cycle manager sequence. When pause is enabled, the cycle can be paused at appropriate points, allowing operators to temporarily halt execution and resume later.

Enabling pause is useful for:

  • Manual control during commissioning
  • Debugging and troubleshooting
  • Operator-controlled production
  • Training and demonstration

typical usage patterns

  1. Commissioning mode: Enable pause for manual control
  2. Debug mode: Allow pausing for troubleshooting
  3. Training: Enable pause for step-by-step demonstration
  4. Semi-automatic mode: Operator-controlled execution

When to use

  • During commissioning and testing phases
  • In debug or maintenance modes
  • For operator training scenarios
  • When manual intervention might be needed
  • In semi-automatic operation modes

Example

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

// Enable pause based on operation mode
IF commissioningMode OR debugMode THEN
cycleManager.configuration.configuration.sequence
.pause.enable();
ELSE
cycleManager.configuration.configuration.sequence
.pause.disable();
END_IF;

// Use with HMI controls
IF cycleManager.pauseEnabled THEN
HMI.PauseButton.Enabled := TRUE;
HMI.ResumeButton.Enabled := cycleManager.isPaused;
END_IF;

// Handle pause request
IF HMI.PauseButton.Pressed AND cycleManager.pauseEnabled THEN
cycleManager.requestPause();
END_IF;

Parameters

none

Code

Declaration

METHOD enable

Implementation

THIS^.cycleManager.defaultPauseEnabled := TRUE;