stepWidth
Short summary
Sets the default step width for automatic step increments in the sequence.
Purpose and usage
This property sets the default increment value used when automatically advancing to the next step. When no explicit next step is specified, the cycle manager will advance by this step width value.
Typical step widths:
- 1: Sequential step execution (most common)
- 10: Grouped steps with room for insertions
- 100: Major phase transitions
- Custom values for specific sequencing needs
typical usage patterns
- Sequential execution: Set to 1 for normal flow
- Grouped steps: Use larger values for step groups
- Phase transitions: Large values between phases
- Custom sequences: Application-specific increments
When to use
- When implementing non-sequential step numbering
- For organizing steps into logical groups
- To leave room for future step insertions
- When matching legacy step numbering systems
Example
// Standard sequential execution
cycleManager.configuration.configuration.sequence
.stepWidth := 1;
// Grouped steps with room for expansion
cycleManager.configuration.configuration.sequence
.stepWidth := 10;
// Step implementation
CASE cycleManager.steps.current OF
100: // Phase 1 start
doPhase1Init();
// Automatically advances to 110
110: // Phase 1 operation
doPhase1Operation();
// Automatically advances to 120
200: // Phase 2 start (explicit jump needed)
doPhase2Init();
// Automatically advances to 210
END_CASE
- Type:
DINT - Setter:
public
Code
Declaration
PROPERTY stepWidth : DINT