Skip to main content

disable

Short summary

Disables pause functionality for the cycle manager sequence.

Purpose and usage

This method disables the pause functionality for the entire cycle manager sequence. When pause is disabled, pause requests will be ignored and the cycle will continue running without interruption.

Disabling pause is useful for:

  • Critical operations that must not be interrupted
  • Production mode where pausing is not desired
  • Automated sequences that should run to completion
  • Safety-critical procedures

typical usage patterns

  1. Production mode: Disable pause in normal operation
  2. Critical sequences: Prevent interruption of important operations
  3. Automated runs: Ensure uninterrupted execution
  4. Safety procedures: Prevent unsafe pausing

When to use

  • In production environments where pausing should not be allowed
  • During critical operations that must complete
  • For automated sequences that should not be interrupted
  • When implementing safety-critical procedures

Example

// Disable pause for production
cycleManager.configuration.configuration.sequence
.pause
.disable();

// Temporarily disable pause for critical operation
CASE cycleManager.steps.current OF
MySteps.CRITICAL_START:
cycleManager.configuration.configuration.sequence
.pause.disable();
cycleManager.steps.next := MySteps.CRITICAL_OPERATION;

MySteps.CRITICAL_END:
cycleManager.configuration.configuration.sequence
.pause.enable(); // Re-enable after critical section
cycleManager.steps.next := MySteps.NORMAL_OPERATION;
END_CASE

// Check if pause is disabled
IF NOT cycleManager.pauseEnabled THEN
HMI.PauseButton.Enabled := FALSE;
END_IF;

Parameters

none

Code

Declaration

METHOD disable

Implementation

THIS^.cycleManager.defaultPauseEnabled := FALSE;