Skip to main content

cycleManager

Short summary

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

Purpose and usage

This property provides access to the underlying cycle manager default 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.

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. Dependency injection: Inject different implementations

When to use

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

Example

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

currentManager := configurator.cycleManager;

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

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

// Direct parameter access
IF configurator.cycleManager.defaultTimeout > T#10S THEN
// Handle long timeout
END_IF;

Code

Declaration

PROPERTY cycleManager : CNM_CycleManagerInterfaces.ICycleManagerDefaultParameters