Skip to main content

cycleManager

Short summary

Gets or sets the cycle manager step parameters interface used by this configurator.

Purpose and usage

This property provides access to the underlying cycle manager step parameters interface. It allows getting the current cycle manager instance and setting a new one if needed.

When setting a new cycle manager, all internal configurators (stepping and pausing) are automatically updated to use the new instance. This property manages step-specific parameters that override sequence defaults.

typical usage patterns

  1. Initialization: Set during configurator creation
  2. Runtime changes: Switch cycle manager instances
  3. Access parameters: Get current cycle manager for direct access
  4. Step-specific config: Access step-level parameters

When to use

  • During initialization to set the cycle manager
  • When switching between different cycle manager implementations
  • For direct access to step-specific parameters
  • In factory patterns for dynamic configuration

Example

// Get current cycle manager
VAR
currentManager : ICycleManagerStepParameters;
END_VAR

currentManager := stepConfigurator.cycleManager;

// Set new cycle manager
VAR
newManager : MyCycleManagerStepImplementation;
END_VAR

stepConfigurator.cycleManager := newManager;
// All sub-configurators now use newManager

// Direct parameter access
IF stepConfigurator.cycleManager.currentTimeout > T#5S THEN
// Handle long timeout for current step
END_IF;

Code

Declaration

PROPERTY cycleManager : ICycleManagerStepParameters