共计 3167 个字符,预计需要花费 8 分钟才能阅读完成。
本文将以诺派电表作为采集对象,应用海创微联采集控制系统对电压电流灯数据进行采集,而后将采集到的数据上传到海创物联网平台,海创物联网平台将数据实时可视化。
文章分为 3 局部:
诺派电表的介绍:设施的连线,串口服务器 IP 和端口的配置。
海创微联采集控制系统的应用:控件的部署,采集节点的应用。
海创物联网平台的应用:产品和设施的创立,数据可视化。
一、诺派电表
1. 设施连线
首先先介绍一下设施的连线,诺派电表上方由电源供电,应用 modbus 协定通信,485 线传输数据,连贯着串口服务器,串口服务器再用网线连贯交换机,这样就能够通过以太网采集到电表数值了。
单元 ID 和采集量的地址须要查看应用说明书。
2. 批改 IP 地址和配置端口
接着咱们要给串口服务器调配一个 IP 地址和端口,关上调配的软件 ZLVirCom,点击设备治理。
找到连贯串口服务器端口,双击进去,就能够调配 IP 地址和端口了(还的波特率进行位等等)。
二、海创微联采集控制系统
应用海创微联采集控制系统对电表数据进行采集。
关上海创微联采集控制系统,从右边的采集引擎中 modbus 控件,再拖出一个定时器一个调试器。
按下图连贯。
modbus 配置如下,地址和端口就是串口服务器配置的地址和端口,通信模式 Teinet。
性能码为 FC3,增加 10 个采集量(性能码、单元 ID、采集地址、算法须要查看设施的说明书),具体如下(标识符应应用字母,这里为了展现不便用了中文,上传云端时会改成字母)。
定时器配置为周期 10s 发送一次申请。
配置实现后,点击部署。
调试界面显示周期 10s 采集的电表数据。
胜利电表数值进行采集了,文章开端附上疾速复用码,导入便可疾速部署。
三、海创物联网平台
海创物联网平台可能与海创微联采集控制系统进行联动,将采集到的数据可视化。
1. 产品和设施的创立
登录海创物联网平台,顺次点击设备治理 - 产品 - 创立产品。
而后在该产品下创立一个设施,操作程序如下图。
2. 采集量的定义
回头查看刚刚创立的产品,在性能定义中,自定义性能中增加采集量。
注:标识符肯定要和采集引擎中的标识符统一,性能名称无所谓。
查看创立的设施,能看到 3 个惟一标识,产品标识(ProductKey)、设施标识(DeviceKey)、设施密钥(DeviceSecret)。
3. 可视化
回到海创微联采集控制系统,在物联网云平台中拖出海创 IOT,输出 3 个惟一标识,点击部署。
海创 IOT 显示连贯胜利,刷新一下页面设施会显示在线。
回到海创物联网平台,在设施的运行状态中就能够实时显示电表数据了。
想理解产品更多内容和获取产品软件欢送查看官网介绍:海创物联网 www.gkiiot.com,或者扫描下方的二维码增加。
四、附录
疾速复用码
[{"id":"196f69cf.f153e6","type":"iot-modbus","z":"f44b13c4.ed86c","name":"","server":"4faa5a15.f2e274","fc":"HoldingRegister","columns":[{"Key":" 有功电能总和 ","Label":" 有功电能总和 ","UnitId":"5","Address":"1","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/10"},{"Key":" 电压 ","Label":" 电压 ","UnitId":"5","Address":"2","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/100"},{"Key":" 电流 ","Label":" 电流 ","UnitId":"5","Address":"3","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/1000"},{"Key":" 有功功率 ","Label":" 有功功率 ","UnitId":"5","Address":"5","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/10"},{"Key":" 视在功率 ","Label":" 视在功率 ","UnitId":"5","Address":"7","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/10"},{"Key":" 无功功率 ","Label":" 无功功率 ","UnitId":"5","Address":"9","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/10"},{"Key":" 频率 ","Label":" 频率 ","UnitId":"5","Address":"11","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/100"},{"Key":" 功率因素 ","Label":" 功率因素 ","UnitId":"5","Address":"12","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/1000"},{"Key":" 输出有功电能 ","Label":" 输出有功电能 ","UnitId":"5","Address":"13","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/10"},{"Key":" 输入有功电能 ","Label":" 输入有功电能 ","UnitId":"5","Address":"15","Quantity":"1","ValueType":"Int16BE","Arithmetic":"%s/10"}],"x":475,"y":280,"wires":[["b4bc1d56.d0c14"]]},{"id":"f1526cf0.defec","type":"inject","z":"f44b13c4.ed86c","name":"","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":315,"y":280,"wires":[["196f69cf.f153e6"]]},{"id":"b4bc1d56.d0c14","type":"debug","z":"f44b13c4.ed86c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":635,"y":280,"wires":[]},{"id":"4faa5a15.f2e274","type":"iot-modbus-client","z":"","name":"","clienttype":"Modbus-TCP","host":"192.168.7.203","post":"4196","tcptype":"Telnet","serialport":"COM1","serialtype":"RTU-Buffered","baudrate":"9600","databits":"8","stopbits":"1","parity":"None","unitid":"5","timeout":"2000","sleep":"80","showActivity":true}]