基础信息
组件名称 : opcda-connector
组件版本: 1.0.0
组件类型: 系统默认
状 态: 正式发布
组件描述:通过OPCDA 连接网关,通过定时任务获取OPCDA 相关的数据或通过执行指令控制设备相关参数。
配置文件:
配置文件作为OPCDA 配置界面元素的基础,OPCDA 所有高级配置均可以通过重构该配置文件体现在前端界面上。配置参数分为三组: 基础配置,连接配置,高级配置,一般情况可以随意扩展高级配置。
注: 配置文件仅供修改升级组件式利用,一般情况下对用户透明。无需做任何更改,除非用户需要手动维护组件心跳或通信端口时,一般情况下禁止修改。
df:
component:
name: opcda-connector
type: 2 #1:采集器;2:接收器;3:转换器;4:存储器;5:解析器;6:状态解析器:7:同步器;8:消息通知
transportPort: 49096 #内部akka通信端口
heartbeatCron: 0/30 * * ? * * * #网关心跳数据上报时间
parameter:
connection[0]: #组件连接参数数组
name: Host #参数名称,自定义
key: host #参数key,自定义
required: true #是否必传 true或false
value-type: string #参数值类型,支持 string, int, float
default-value: 127.0.0.1 #参数默认值,自定义
input-type: input #参数输入类型,支持 input-输入框,select-下拉框
description: OPC服务器IP #参数值描述,自定义
connection[1]:
name: Username
key: username
required: true
value-type: int
input-type: input
default-value: 21
description: OPC服务端端口号
connection[2]:
name: password
key: password
required: true
value-type: string
input-type: input
description: Path
connection[3]:
name: clsId
key: clsId
required: true
value-type: string
input-type: input
description: Path
connection[4]:
name: 设备编号
key: equipmentId
required: true
value-type: string
input-type: input
default-value: 80100012
description: 设备编号
base[0]:
name: NAMESPACE
key: groupName
required: false
value-type: string
input-type: select
description: 命名空间
base[1]:
name: TAG
key: tag
required: false
value-type: string
input-type: input
description: 指标
advance[0]:
name: CRON
key: cron
required: true
value-type: string
input-type: input
default-value: 1/10 * * ? * * *
description: 网关采集器定时任务
组件测试
- 配置网关
从组件列表中选择opcda-connector并拖动到作业设计器。
- 修改参数
修改右侧配置参数并保存,参数使用说明可以通过每个参数旁边的?查看。
- 启动网关
注意观察执行日志,确保网关正常运行,状态status 字段为1时表示正常运行中
- 测试验证