Silo level monitoring
Couldn't load pickup availability
Description
This SCL function block, FB_SiloRefill, monitors the fill level of a silo in digital or analog mode and automatically controls refilling as well as alarm and display signals. It runs 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
- AnalogMode = FALSE (digital)
• SensorEmpty = TRUE → AlarmEmpty = TRUE, Refill = TRUE, StatusText = “Silo empty – Refill”
• SensorFull = TRUE → DisplayFull = TRUE, AlarmEmpty/Refill = FALSE, StatusText = “Silo full”
- If both sensors are FALSE → StatusText = “Fill level in normal range”
- AnalogMode = TRUE (analog)
- • Fill level < Empty limit → AlarmEmpty = TRUE, StatusText = “Silo empty (analog)”
• Fill level > Full limit → DisplayFull = TRUE, StatusText = “Silo full (analog)” - Otherwise → StatusText = "Fill level in normal range", AlarmEmpty/DisplayFull = FALSE
Technical details
• Inputs: SensorEmpty, SensorFull, AnalogMode (BOOL), Level (REAL), EmptyLimit (REAL), FullLimit (REAL)
• Outputs: AlarmEmpty, DisplayFull, Refill (all BOOL), StatusText (STRING)
• Pure IF/ELSIF logic separates digital/analog and assigns sensor or limit value results directly to the outputs
Possible applications
• Automatic refill control in storage, mixing or feeding systems
• Retrofit of existing silos without complex hardware changes
• Training and demonstration modules for level monitoring
compatibility
Siemens S7-1200 & S7-1500, TIA Portal ≥ V13 (recommended V16+ for HMI & PLCSIM)
Scope of delivery
• .scl file with input/output declarations, variables and header comment (version, author, website, email)
• Download link immediately after purchase
Support
Adjustment of limit values, integration of additional sensors or HMI layouts on request via shop message or email.