pause
Short summary
Provides access to the pause configuration for the current cycle manager step.
Purpose and usage
This property returns the pause configuration interface that allows setting pause-related parameters for the current step. It provides a fluent interface for configuring how the cycle manager handles pause requests for this specific step, overriding sequence defaults.
The pause configuration controls:
- Whether pausing is allowed for this step
- Step-specific pause timeout behavior
- Resume conditions for this step
- Step-specific pause state handling
typical usage patterns
- Disable pause: Prevent pausing on critical steps
- Enable pause: Allow pausing on safe steps
- Override defaults: Change pause behavior for specific steps
- Step-specific timeout: Set different pause timeout for steps
When to use
- To prevent pausing during critical operations
- To enable pausing on specific wait or idle steps
- When step-specific pause behavior differs from sequence default
- For fine-grained pause control in complex sequences
Example
// Disable pause for critical step
CASE cycleManager.steps.current OF
MySteps.PREPARE_CRITICAL:
cycleManager.configuration.configuration.step
.pause.disable();
cycleManager.steps.next := MySteps.CRITICAL_OPERATION;
MySteps.WAIT_FOR_USER:
// Enable pause for wait step
cycleManager.configuration.configuration.step
.pause.enable();
IF userInput THEN
cycleManager.steps.next := MySteps.PROCESS_INPUT;
END_IF;
END_CASE
// Configure step with specific pause settings
cycleManager.configuration.configuration.step
.pause
.enable()
.timeout(T#60S); // Longer pause allowed for this step
- Type: CNM_CycleManagerInterfaces.IPauseConfiguration
- Getter:
public
Code
Declaration
PROPERTY pause : CNM_CycleManagerInterfaces.IPauseConfiguration