Hi,
I am trying to use modbus on debian system to control device,
The st.cmd files is as follows:
drvAsynIPPortConfigure("CAT1","192.168.1.163:502",0,0,1)
modbusInterposeConfig("CAT1",0,2000,0)
drvModbusAsynConfigure("CAT_AI1R","CAT1",0,3,0008,2,0,100, "CAT")
The db files is as follows:
record(ai, "$(DEVNAME):IN1") {
field(DTYP,"asynInt32")
field(INP,"@asynMask(CAT_AI1R 0 16)INT16")
field(PREC,"1")
field(SCAN,"I/O Intr")
}
When I execute the st.cmd file,it shows the following error:
drvStreamInit: Warning! STREAM_PROTOCOL_PATH not set. Defaults to "."
TEST:CAT1:IN1 devAsynInt32::initCommon connectDevice failed asynManager:connectDevice port CAT_AI1R not found
How can I solve this problem?
Thanks,
Xiaomin
从 Windows 版邮件发送