找到CollectorCfg.xml文件,配置如下参数项:
<?xml version="1.0" encoding="utf-8"?>
<collector version="1.3">
<interface
name="modbus1" type="modbus" buffer="0" />
<dbserver connectcycle="10"
synccycle="1" ip="127.0.0.1" port="5673" bakip="" bakport="0"
connecttimeout="5" sendtimeout="5" user="admin" password="YWRtaW4="
timestamp="0" timestampcycle="10" />
<driverpath>
<!-- <driver name="IOMBTCP" type="modbus" path="C:\iCentroView\Drivers\Iombtcp\" /> -->
<driver
name="OPC" type="opc" path="" rystatus="iFix" desc="iFixStatus.dat"
boolprocess="false" typefromOPC="true" startnodatarecord = "true" endnodatarecord = "true"/>
</driverpath>
<interface
name="test" type="opc" buffer="0" systemuser="system" /></collector>
注意:
startnodatarecord是true表示启动会写nodata记录,false表示不会写nodata。
endnodatarecord是true表示停止会写nodata记录,false表示不会写nodata。
没有这两个配置字段时,默认启动和停止都会写nodata记录。