MFC

Bronkhorst MFC

Connectivity
Run the live example Free · no sign-up · runs in your browser

The BronkhorstMFC block interfaces directly with physical Bronkhorst mass flow controllers (MFC) and flow meters over the browser's Web Serial API using the industrial PROPAR protocol.

It reads high-precision real-time flow measurements, fluid temperature, sensor resonance frequency, and instrument alarm status from connected hardware. It also transmits flow setpoint commands back to the physical instrument, closing hardware-in-the-loop control loops directly from the simulation canvas.

Mathematical Model

The block converts raw 16-bit integer PROPAR measures into calibrated engineering units:

Qeng(t)=Mraw(t)32000⋅QcapacityQ_{\text{eng}}(t) = \frac{M_{\text{raw}}(t)}{32000} \cdot Q_{\text{capacity}}

For instruments supporting 32-bit floating-point registers (Process 33, Parameter 205), real-valued mass flow is ingested directly:

Qfloat(t)=P33,205(t)Q_{\text{float}}(t) = \mathcal{P}_{33, 205}(t)

Digital setpoint commands are mapped from percentage (0…100%0\dots 100\%) to instrument integers (0 to 32000):

Setpointraw=round(setpoint100⋅32000)\text{Setpoint}_{\text{raw}} = \text{round}\left( \frac{\text{setpoint}}{100} \cdot 32000 \right)

Inputs & Outputs

Direction ID Label Type Status
← Out measure Flow (%) number Output
← Out fmeasure Flow (Value) number Output
← Out temperature Temperature (°C) number Output
← Out frequency Frequency (Hz) number Output
← Out alarm Alarm Status number Output

Parameters

Parameters Label Type Default Description
nodeAddress Node Address number 3 PROPAR node address of the instrument (typically 3 for directly connected single instrument)
baudRate Baud Rate select 115200 Serial baud rate. Must match the instrument configuration. 115200 gives best throughput.
pollRateMs Poll Rate (ms) number 10 Target poll interval in ms. The bus fires immediately when RTT exceeds this — so 0–10ms gives maximum speed (~40 Hz at 115200 baud). Increase to reduce CPU load.
enableLegacyPorts Enable Legacy Ports boolean false Enable polling for legacy Measure and Alarm ports. Disable this to maximize bus speed when using fMeasure.
setpoint Setpoint (%) number 0 Flow setpoint as percentage of full scale (0–100%).

Usage Examples

Example 1: Closed-Loop Chemical Gas Flow Regulation

Connecting a physical Bronkhorst EL-FLOW Select MFC. Reading fmeasure flow into a feedback controller and adjusting setpoint to maintain a precise stoichiometric gas mixture.

Example 2: Coriolis Liquid Flow and Temperature Monitoring

Interfacing a Bronkhorst CORI-FLOW sensor to monitor liquid mass flow rate and fluid temperature simultaneously on an oscilloscope, verifying thermal stability under varying flow conditions.

Remarks & Best Practices

  • Web Serial API Native Support: Operates directly in Chromium-based browsers (Chrome, Edge, Brave); requires no external driver daemons or proxy software.
  • Automatic Engineering Unit Scaling: On connection, the block calls PROPAR identification routines to read instrument capacity and engineering units, automatically scaling outputs.
  • Selective Bus Polling: Only queries registers associated with active wire connections on the diagram, minimizing serial bus cycle times.
  • Bus Scanning and Multi-Device Support: Built-in bus scanner discovers all daisy-chained PROPAR instruments on an RS-485 bus and auto-generates blocks for each node.

Related Components

  • BronkhorstEmulator: Software emulator for PROPAR testing without physical hardware.
  • ExternalInput: Injects synthetic flow values into control loops.
  • PIDController: Standard feedback controller for closed-loop flow regulation.
  • NumericDisplay: Real-time scalar readout for monitoring flow rates.