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
- Emergency stops: Immediate response to stop requests
- Non-critical operations: When interruption is acceptable
- Debug mode: Quick stopping during development
- 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;