Description
This SCL function block FB_FanControl automatically and manually controls a fan based on temperature, humidity, time release, and fault messages. It displays the current operating status on the HMI and runs 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
- Fault? → Fan off, alarm on, HMI "FAILURE", RETURN
- Cancel alarm
- Check automatic: Temp > limit OR Humidity > limit + time release active → fan on, HMI “AUTO”
- Manual_ON → Fan on, HMI “MANUAL”
- Time release missing → fan off, HMI “NIGHT MODE”
- Otherwise → Fan off, HMI “READY”
Technical details
• Inputs: #Fault, #Temp_Celsius, #Temp_Limit, #Humidity_Percent, #Humidity_Limit, #Time_Release, #Manual_ON
• Outputs: #Fan_ON, #Alarm, #Operating_Indicator
• Internal marker #Automatic_Active for limit value comparison
• RETURN in case of error interrupts all further steps
• Prioritization: Fault → Automatic → Manual → Ready → Night Mode
Possible applications
• Ventilation and air conditioning systems in residential, commercial and industrial buildings
• Retrofit of energy-efficient room air control
• Training and demo projects for automated fan control and HMI visualization
compatibility
• Siemens S7-1200 & S7-1500
• TIA Portal V13 or higher (V16+ recommended for PLCSIM & HMI)
Scope of delivery
• .scl file with declarations of all inputs/outputs, flags and section comments
• Download link directly after purchase
Support
Adjustment of limit values, additional sensor integration, time programs, remote monitoring, or HMI integration are available upon request. Contact us via shop message or email.