Skip to product information
1 of 1

Flow measurement with HMI

Regular price €9,90 EUR
Regular price Sale price €9,90 EUR
Sale Sold out

Description
The FB_FlowMonitoring function block checks a 4–20 mA flow sensor, scales the raw value to 0–100 l/min, reports when predefined limits are exceeded or undershot, stops in the event of an emergency stop, and provides clear status messages for the HMI. Programmed in SCL, it 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

  • Stop ( Stop=TRUE ):
    → reset all alarm flags, Fehler=TRUE , StatusText=“System gestoppt” , RETURN
  • Scaling (if Start=TRUE ):
    → Convert SensorRAW to flow in l/min
  • Border check :
    • Flow < MinLimit → AlarmMIN=TRUE , StatusText=“Warnung: Durchfluss zu niedrig”
    • Flow > MaxLimit → AlarmMAX=TRUE , StatusText=“Warnung: Durchfluss zu hoch”
    • otherwise → StatusText=“Durchfluss im Sollbereich”
  • Acknowledgement ( Quittieren=TRUE ):
    → reset all alarms, Fehler=FALSE , StatusText=“Fehler quittiert – Überwachung läuft”

Technical details

  • Entrances:
    SensorRAW (INT 0…27648)
    Start , Stop , Quittieren (BOOL)
    MinGrenze , MaxGrenze (REAL)
  • Variables/Outputs:
    Durchfluss_lpm (REAL)
    AlarmMIN , AlarmMAX , Fehler (BOOL)
    StatusText (STRING)
  • Scaling: Flow = SensorRAW × 100 / 27648
  • Logic: Limit comparison in IF/ELSIF, RETURN on stop, no timers

Possible applications
Monitoring of flows in water and gas supply systems, cooling/hot water circuits, process plants in the chemical/pharmaceutical industry as well as test and training setups.

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, variables, and feedback parameters; header comment with author, contact, and customization instructions; download link after purchase.

Support
Adjustment of min/max limits, integration of additional sensors or HMI layouts – individual advice via shop message or email.