BlockWerk 文档
MFC

Bronkhorst MFC

Connectivity

BronkhorstMFC 是一个信号源方块(兼具可选的设定值下发功能),它通过浏览器的 Web Serial API 从物理连接的 Bronkhorst 质量流量控制器(MFC)读取实时的流量、温度、频率以及报警数据。通信采用 PROPAR 协议,支持 ASCII 与增强型二进制(Enhanced Binary)模式的自动协商。连接建立后,方块会自动识别设备型号,读取其满量程容量(Full Scale)及工程单位,并将百分比流量读数自动换算为实际物理单位。

使用此方块可将真实的质量流量计引入 BlockWerk 控制框图中 — 例如利用真实的硬件测量数据构建闭环压力或浓度控制回路。该方块还支持通过其 setpoint 参数或画布上的输入框向仪器下发流量设定值,从而在仿真运行中实现对物理硬件的实时控制。

在 BlockWerk 中仿真

浏览器即开即用的交互式仿真环境 — 无需安装,由 WebAssembly 强力驱动。

在 BlockWerk 中仿真 →

输入与输出

Direction ID Label 类型 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

参数

参数 Label 类型 默认值 描述
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%).

使用示例

将实时流量测量接入闭环控制器

BronkhorstMFC ──► [Flow (Value)] ──► PIDController → [measured]
  nodeAddress: 3
  baudRate:    115200
  pollRateMs:  10

在示波器中监控流量和温度

BronkhorstMFC ──► [Flow (Value)]    ┐
              ──► [Temperature (°C)] ├──► Scope

多设备总线扫描与自动配置

点击方块面板上的 SCAN BUS 按钮即可自动搜索总线上所有连接的 PROPAR 设备。勾选多个仪器后,画布将自动为每个仪器放置对应的 BronkhorstMFC 方块。

说明与最佳实践

  • 带设定值输出的信号源方块:所有测量输出端口均位于右侧。设定值通过方块面板的输入框或 setpoint 参数直接写入物理设备 — 左侧没有设定值输入端口。
  • 需要 Web Serial API 支持:仅在基于 Chromium 的浏览器(Chrome、Edge、Brave、Opera)中受支持。在 Firefox 和 Safari 中运行时会显示“浏览器不支持”的警告提示。
  • 自动流量工程量换算:连接成功后,方块会调用 identify() 获取仪器的量程容量及单位。随后,fmeasure 和 measure 端口上的原始流量值会自动乘以 (capacity / 100) 并以实际工程单位输出。
  • 选择性轮询机制:仅对存在有效下游连线的端口发起总线轮询,从而最大限度减少总线通信负载。fmeasure 和 temperature 始终进行轮询,以保持方块面板上的数值实时更新。
  • fmeasure 与 measure:当两者均被连线时,系统会优先采用高精度的单精度浮点数 fmeasure,而忽略 16 位整型 measure。仅当仪器固件不支持进程 33(Process 33)时才建议使用旧版端口。
  • 参数资源管理器(Parameter Explorer):在连接状态下,点击扳手按钮可打开完整的 PROPAR 寄存器浏览器,允许将任意 DDE 参数添加为独立的命名输出端口。
  • 可在线调节参数:pollRateMs 和 setpoint 均可在仿真运行期间直接在属性面板中实时调整。

相关模块

  • BronkhorstEmulator: 在串口上模拟 Bronkhorst 设备,用于无需物理硬件的在环软件(SIL)测试。
  • ExternalInput: 在没有物理硬件时向控制系统注入虚拟流量信号。