Filling machine with quantity control
Couldn't load pickup availability
Description
This function block automates the entire process of a bottling plant – from the conveyor belt to precise quantity monitoring at the filling valve. The integrated safety logic ensures that everything is immediately and safely stopped in the event of an alarm. The SCL code is immediately executable in the Siemens TIA Portal and is suitable for applications in the beverage, pharmaceutical, or chemical industries.
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
It all starts with a safety check: Press the emergency stop or stop button – and the system shuts down. The conveyor belt stops, the filling valve closes, and the process returns to step 0.
In automatic mode, the cycle runs as follows:
- Start button pressed? ⇒ The conveyor belt brings a bottle under the filling valve.
- Bottle detected? ⇒ The belt stops, the valve opens.
- Fill level reached? ⇒ The valve closes, the belt starts running again.
- Bottle removed? ⇒ The cycle starts again.
To ensure that each new filling is measured correctly, the control system automatically sets a reset signal for the actual quantity with each new filling process.
Technical details
- State control : via integer step counter (FSM)
- Safety logic : Emergency stop and stop buttons have highest priority
- Fill level monitoring : Analog comparison between actual and target value
- ResetActualQuantity : is only set during the filling step
- Outputs : provide TRUE/FALSE for conveyor belt, valve and HMI display
Everything is clear, understandable and modular – ideal for practical use.
Possible applications
Perfect for:
- Beverage and food bottling
- Pharmaceutical production lines
- Demonstration and laboratory facilities
Thanks to the structured logic, the module can be easily adapted to different bottle sizes and filling quantities .
compatibility
- Runs on Siemens S7-1200 and S7-1500
- Compatible with TIA Portal from version V13
- For simulations & HMI: TIA V16+ & PLCSIM recommended
Scope of delivery
You get:
An .scl file with:
- complete declarations of all inputs/outputs
- Step counting variables
- Reset flags
- Security logic
The download is available immediately after purchase .
Support
I am happy to support you with:
- the adjustment of filling quantities
- the visualization in the HMI
- integration into your control system
Just write me via email or directly via the shop support – I’ll be happy to help you.