Preventive maintenance
Couldn't load pickup availability
Description
The FB_PreventiveMaintenance function block extends traditional channel monitoring with intelligent, preventive maintenance. It detects unusual fluctuations and changes in process variables and triggers targeted maintenance alarms. Optionally, individual limit values for current, temperature, voltage, resistance, speed, torque, cycle time, number of faults, flow rate , and pressure can be activated for each channel.
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
Data update
All channels are described and activated with their current actual values as usual.
Daily reset
The error counters are automatically reset every day at midnight (every 86,400 seconds).
Learning and self-test mode
Each channel collects 10 measured values, calculates an average value and detects deviations based on a defined channel tolerance.
Preventive maintenance
As soon as an actual value falls outside the permitted range or the deviation from the current mean value exceeds a predefined ChangeThreshold
, a MaintenanceAlarm is triggered. The status text provides messages such as "Current increase detected" or "Temperature fluctuation detected."
Error statistics & reporting
If a configured number of deviations is exceeded, the system sets MaintenanceRequired and generates a precise error text for each channel.
Technical details
-
MinGrenze
,MaxGrenze
(REAL) for limit value monitoring -
ChangeThreshold
(REAL) for fluctuation monitoring -
MaintenanceAlarm
(BOOL)
Logic: After each measured value → comparison with mean value ± threshold or min/max → alarm → increase error counter → MaintenanceRequired.
Configuration: Limit monitoring can be switched on/off per channel; learning trigger and overall reset available.
Possible applications
- Early detection of sensor or system drift
- Maintenance triggered by wear-related changes
- Integration into condition monitoring systems or Industry 4.0 solutions
compatibility
- Siemens S7‑1200 & S7‑1500 controllers
- TIA Portal version V13 or higher (recommended for HMI visualization from V16)
- Fully PLCSIM compatible
Scope of delivery
You will receive an .scl
file with the complete channel declaration and parameters. The download link will be provided after purchase.
Support
I support you with:
- Adjustment of individual thresholds
- Expansion with additional channels or data loggers
- Integration into HMI layouts and alarm reporting systems
Contact me anytime via shop message or email.