Skip to main content

immediate

Short summary

Sets the stop request behavior to always process stop requests immediately.

Purpose and usage

This method configures the cycle manager to always process stop requests immediately, regardless of the current step's execution state or outcome. Stop requests are handled as soon as they are received, potentially interrupting the current operation.

This mode provides the most responsive stop behavior but may interrupt operations that are in progress.

typical usage patterns

  1. Emergency stops: Immediate response to stop requests
  2. Non-critical operations: When interruption is acceptable
  3. Debug mode: Quick stopping during development
  4. User-initiated stops: Responsive UI behavior

When to use

  • When immediate stop response is critical
  • For non-critical operations that can be interrupted
  • During development and debugging
  • When user experience requires immediate feedback
  • In emergency stop scenarios

Example

// Configure immediate stop processing
cycleManager.configuration.configuration.sequence
.stopRequest
.always();

// Usage with emergency stop
IF emergencyStopButton THEN
cycleManager.requestStop(); // Will be processed immediately
END_IF;

// In step implementation
CASE cycleManager.steps.current OF
MySteps.LONG_OPERATION:
// This operation can be interrupted at any time
performLongOperation();
// Stop request processed immediately if received
END_CASE

Parameters

none

Code

Declaration

METHOD immediate

Implementation

THIS^.cycleManager.defaultStopRequestMode := CNM_CycleManagerInterfaces.StepStopRequestMode.IMMEDIATE;