Adaptive Speed Control
Couldn't load pickup availability
Description
The FB_PauseOptimization function module is used for intelligently adjusting production speeds after a break. It compares two time sources, determines the earlier one, and calculates a reduced speed if a defined target break has been exceeded.
Note: All modules are designed exclusively as a learning and optimization basis and are not approved for live operation. System modules, in particular, must be finally tested and commissioned by qualified personnel before productive use.
How it works
Source comparison
Comparison of Zeit1
and Zeit2
. The earlier time is stored in SchnellereZeit
, AktiveQuelle
shows 1 or 2.
Break difference
Calculates the deviation from the ZielPause
as BasisPause
. Calculations continue only if > 1 second and Aktiv
= TRUE.
Reduction factor & speed percentage
Reduction factor = base break / target break.
SpeedProzent
= MaxSpeed − (MaxSpeed − MinSpeed) × Reduction Factor, then limited to [MinSpeed, MaxSpeed].
PauseOptimiert
= TRUE if reduced.
No need for optimization
If Deviation ≤ 1 second or Aktiv
= FALSE:
SpeedProzent
= MaxSpeed, PauseOptimiert
= FALSE.
Technical details
- Inputs:
Zeit1
,Zeit2
,ZielPause
,Pause
,MaxSpeed
,MinSpeed
,Aktiv
- Internal processing: TIME_TO_DINT for time values, REAL scaling
- Logic: IF/ELSE structure for dynamic speed calculation
- Outputs:
SchnellereZeit
(TIME),AktiveQuelle
(INT),SpeedProzent
(REAL),PauseOptimiert
(BOOL)
Possible applications
- Dynamic cycle adjustment in production lines after breaks
- Energy optimization through controlled restart
- Reduced start-up load in sensitive systems
compatibility
- Siemens S7‑1200 & S7‑1500 controllers
- Developed for TIA Portal from version V13
- Recommended: TIA Portal V16+ for PLCSIM & HMI
Scope of delivery
You will receive an SCL file with complete declarations of all inputs and outputs, as well as internal variables. The download link will be activated immediately after purchase.
Support
I would be happy to support you in adjusting the pause thresholds and speed ranges or in integrating the block into process logic and HMI interfaces.
You can contact us at any time via shop message or email.