FINS 写
x/finsWrite组件:v0.37.0+ 通过欧姆龙 FINS 协议(UDP/TCP)批量写入 PLC 内存区,成功走 Success 链、失败走 Failure 链。
需要额外引入扩展库: rulego-components-iot (opens new window)
# 配置
连接配置与 x/finsRead 相同(server/transport/network/dstNode/srcNode/unit/timeout/points)。写入点位由 msg.Data 传入。
# 页面导航
- 读取:x/finsRead
- 统一采集入口:x/iotRead(driver=fins)
- 统一写入入口:x/iotWrite(driver=fins)
- 转时序点落盘:x/tsdbWrite(配置 measurement)
# 输入/输出
- 输入:
msg.Data带点位列表[{"name","addr","type","value"}] - 输出:成功走
Success链,失败走Failure链
# 示例
{
"id": "fins_write",
"type": "x/finsWrite",
"configuration": {
"server": "192.168.1.20:9600",
"transport": "udp"
}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
msg.Data 传入写入点位:
[
{"name": "设定值", "addr": "DM200", "type": "UINT16", "value": "1234"},
{"name": "启动", "addr": "CIO20.0", "type": "BOOL", "value": "true"}
]
1
2
3
4
2
3
4
# 关联组件
- 读取:x/finsRead
- 统一采集入口:x/iotRead(driver=fins)
- 统一写入入口:x/iotWrite(driver=fins)
- 转时序点落盘:x/tsdbWrite(配置 measurement)
在 GitHub 上编辑此页 (opens new window)
上次更新: 2026/08/01, 05:05:14