Skip to main content

ignore

Short summary

Sets the stop request behavior to ignore all stop requests for the current step.

Purpose and usage

This method configures the current step to completely ignore all stop requests. This setting overrides the sequence default for this specific step. When this mode is active, stop requests will not be processed at all during this step, and the step will continue running until completion or error.

This mode should be used with extreme caution as it prevents normal stopping mechanisms from working for the specific step.

typical usage patterns

  1. Atomic operations: Steps that must complete without interruption
  2. Safety sequences: Emergency procedures for specific steps
  3. Critical writes: Database or file operations that cannot be stopped
  4. Hardware operations: Steps controlling physical processes

When to use

  • For step-specific critical operations that must complete
  • During safety-critical step sequences
  • For atomic operations within a larger sequence
  • When a specific step must ignore stop requests
  • Use with extreme caution - limits operator control

Example

// Configure specific step to ignore stops
cycleManager.configuration.configuration.step
.stopRequest
.ignore();

// Apply to critical hardware operation
CASE cycleManager.steps.current OF
MySteps.PREPARE_CRITICAL:
// Configure next step to ignore stops
cycleManager.configuration.configuration.step
.stopRequest.ignore();
cycleManager.steps.next := MySteps.CRITICAL_HARDWARE_OP;

MySteps.CRITICAL_HARDWARE_OP:
// This step ignores all stop requests
IF performCriticalHardwareOperation() THEN
// Re-enable stop handling for next step
cycleManager.configuration.configuration.step
.stopRequest.afterSuccess();
cycleManager.steps.next := MySteps.NORMAL_OPERATION;
END_IF;
END_CASE

// Stop requests during critical step will be ignored
IF stopButton THEN
cycleManager.requestStop(); // No effect on CRITICAL_HARDWARE_OP
END_IF;

Parameters

none

Code

Declaration

METHOD ignore

Implementation

THIS^.cycleManager.currentStopRequestMode := CNM_CycleManagerInterfaces.StepStopRequestMode.IGNORE;