Temperature logging with HMI
Couldn't load pickup availability
Description
This SCL function block, FB_TempUeberwachung, continuously monitors a temperature variable against defined limit values, triggers an alarm if the limit is exceeded or undershot, allows manual acknowledgment, and logs the measured values with a timestamp in a ring buffer every 5 seconds. It can be run directly in the Siemens TIA Portal.
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
- Check temperature vs. min/max limit → set alarm and keep active if limit is violated
- Acknowledgement signal → Reset alarm
- LoggingStart active → Start cycle timer (PT=T#5s).
- Timer expired → write current temperature value + current time to TempLog and timestamp array
- Increment index 0…99; if > 99, reset to 0
- Reset timer and start new 5 s cycle
Technical details
• Inputs: Temperature, MinLimit, MaxLimit, Acknowledgement, LoggingStart, CurrentTime
• Outputs: Alarm, LoggingActive
• Internal: Cycle timer (TON, PT=T#5s), index counter (0…99), TempLog[100], timestamp[100]
• Alarm remains set until acknowledged, even if temperature is back in the target range
• Ring buffer: automatic overflow handling for the log index
• RETURN in case of fault (e.g. limit violation and missing acknowledgment) interrupts further logic
Possible applications
• Temperature monitoring in cooling circuits, ovens, fermenters
• Monitoring in plastics, food or laboratory plants
• Retrofitting in existing systems or standalone module in machine controls
• Training projects on alarm and logging concepts
compatibility
Siemens S7-1200 & S7-1500; TIA Portal V13 and higher (V16+ recommended for PLCSIM & HMI)
Scope of delivery
• .scl file with input/output declaration, cycle timer, log arrays and comments
• Download link immediately after purchase
Support
Adjustment of limit values, log intervals, or buffer sizes, integration of additional alarm profiles, HMI tables, or SCADA/MES exports are available upon request. Contact us via shop message or email.