Energy consumption monitor
Couldn't load pickup availability
Description
This SCL function block, FB_EnergyConsumption, records energy consumption in kWh based on continuous power measurement in kW. Running in the Siemens TIA Portal, it calculates consumption per minute in 60-second cycles, totals daily, monthly, and total consumption, and triggers an alarm if a daily limit is exceeded. Manual resetting of daily and monthly consumption is integrated.
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
- Cycle start every 60 s via IEC timer → Calculation Energy_Cycle = Power_kW × (1/60 h)
- Add Energy_Cycle to Consumption_Day, Consumption_Month and Consumption_Total
- Reset timer
- Reset_Day active → Consumption_Day = 0
- Reset_Month active → Consumption_Month = 0
- Consumption_Day > LimitAlarm → Alarm = TRUE; otherwise Alarm = FALSE
Technical details
• Inputs: LoggingStart, Power_kW, Reset_Day, Reset_Month, LimitAlarm
• Outputs: Alarm, Consumption_Day, Consumption_Month, Consumption_Total (kWh)
• IEC timer PT=T#60s for minute cycle
• Internal variables: Energy_Cycle, Consumption_Day, Consumption_Month, Consumption_Total
• Simple multiplication and summation; alarm via comparison with limit value alarm
Possible applications
• Consumption monitoring of machines and systems in production
• Energy dashboards in building management systems
• After-sales monitoring for retrofit projects
• Training scenarios for PLC-based energy management
compatibility
• Siemens S7-1200 & S7-1500
• TIA Portal V13 or higher; recommended V16+ for HMI display and PLCSIM
Scope of delivery
• .scl file with declaration of all inputs/outputs, internal variables, cycle timer instance and section comments
• Download link immediately after purchase
Support
Adjustment of cycle time, additional counters for peak performance, HMI tables or data export to SCADA/MES – gladly via shop message or email.