DL/T 645 写
x/dlt645Write组件:v0.37.0+ 通过 DL/T 645-2007 协议写入电表数据项,适用于校时、参数下发等场景,成功走 Success 链、失败走 Failure 链。
需要额外引入扩展库: rulego-components-iot (opens new window)
# 配置
连接配置与 x/dlt645Read 相同(server/addr/timeout/points)。写入点位由 msg.Data 传入。
# 输入/输出
- 输入:
msg.Data带点位列表[{"name","addr","type","value"}] - 输出:成功走
Success链,失败走Failure链
# 示例
{
"id": "dlt645_write",
"type": "x/dlt645Write",
"configuration": {
"server": "192.168.1.40:8899",
"addr": "000000000001"
}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
msg.Data 传入写入点位:
[
{"name": "校时", "addr": "0F-01-00-00", "type": "BCD", "value": "240726120000"}
]
1
2
3
2
3
# 关联组件
- 协议概览:x/dlt645
- 读取:x/dlt645Read
- 统一写入入口:x/iotWrite(driver=dlt645)
在 GitHub 上编辑此页 (opens new window)
上次更新: 2026/07/29, 07:07:39