Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Zem-UtilityTools - Butterfly Valve TestNew to Visual Studio Code? Get it now.
Zem-UtilityTools - Butterfly Valve Test

Zem-UtilityTools - Butterfly Valve Test

zeptools

| (0) | Free
蝶阀测试 (ButterflyValveTest):新/老协议闸板阀开度控制、状态轮询、疲劳测试。对齐完整 WPF UtilityTools.Modules.ButterflyValveTest。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ZEM 蝶阀测试 (zem-butterfly-valve-test)

蝶阀测试模块(原 UtilityTools.Modules.ButterflyValveTest)移植插件,用于蝶阀角度控制、开/关测试、位置读取与状态查询。

功能说明

  • 蝶阀开启 / 关闭 / 角度设定
  • 位置(开度)读取、运行状态查询
  • 开关循环测试(次数 / 间隔)
  • 连接管理:串口(zem-serial)/ 网口 TCP(zem-net),支持 MOCK

与原模块对应

原 WPF 元素 本插件
ButterflyValveTestModule src/extension.ts 命令 zem.butterflyValveTest.open
ButterflyValveTestView / ButterflyValveTestContentView media/main.js 控制 UI
ButterflyValveTestProtocol(data[0]=命令字,后续 36 字节载荷) src/protocol/butterflyValveProtocol.ts
OldButterflyValveTestProtocol(旧版兼容) src/protocol/oldButterflyValveProtocol.ts

真实逻辑 vs Mock

真实移植(纯逻辑):

  • ZepGenericProtocol 完整组包/解包 + parseStream 流解析、CRC16(同系列插件)
  • ButterflyValveTestProtocol 命令构造:data[0] 为命令字,后续为 36 字节载荷(角度/位置/循环参数等);响应解析开度、状态、错误码
  • OldButterflyValveTestProtocol 旧版协议保留为兼容入口(命令字集合不同)

通信(组H 提供):

  • 串口/网口发送接收经 comm.serial.* / comm.net.*(见 通信接口契约.md),未自实现硬件 I/O。
  • 默认 MOCK 模式用于界面联调。

使用

  1. npm install
  2. npm run compile
  3. F1 → 打开蝶阀测试
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft