Pharmaceutical tablet filling
Couldn't load pickup availability
Description
The FB_Abfuellung_Tabletten function module controls tablet filling with packaging recognition. The code is implemented in SCL and can be used directly in the 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
-
Emergency Stop (
NotAus=TRUE
):
→Zufuehrung=FALSE
,VentilFreigabe=FALSE
,Alarm=TRUE
,StatusText=“NOT-AUS aktiv!”
,RETURN
-
Packaging missing (
SensorVerpackung=FALSE
):
→Zufuehrung=FALSE
,VentilFreigabe=FALSE
,SignalVerpackung=TRUE
,StatusText=“Verpackung fehlt!”
,RETURN
-
Filling (
Start=TRUE
∧SensorVerpackung=TRUE
):
→Zufuehrung=TRUE
,VentilFreigabe=TRUE
,StatusText=“Abfüllung läuft”
;
Edge detection onSensorTablette
counts toZielmenge
, incrementsIstmenge
.
IfIstmenge≥Zielmenge
→Zufuehrung=FALSE
,VentilFreigabe=FALSE
,StatusText=“Zielmenge erreicht”
. -
Reset (
ResetZaehler=TRUE
):
→Istmenge=0
,StatusText=“Zyklus zurückgesetzt”
Technical details
-
Inputs/Variables:
NotAus
,SensorVerpackung
,Start
,SensorTablette
,Zielmenge
,ResetZaehler
-
Outputs:
Zufuehrung
,VentilFreigabe
,SignalVerpackung
,Alarm
,StatusText
,Istmenge
-
Logic:
-
RETURN
in case of emergency stop or missing packaging - Edge detection for precise counting
- IF structure for process flow and reset
-
Possible applications
Pharmaceutical filling lines, laboratory prototypes, training/demonstration setups, retrofit into existing systems.
compatibility
Siemens S7-1200/S7-1500, TIA Portal ≥ V13 (V16+ recommended for HMI/PLCSIM).
Scope of delivery
.scl
file with declaration of all inputs/outputs, internal variables, edge detection, and feedback parameters; header comment with version, author, contact, and customization instructions; download link after purchase.
Support
Adjustment of the target quantity, integration of additional sensors, HMI layout adjustment or control system integration – individual advice is available via shop message or email.