Hi,
Below is the correct db that can read hour from the device:
record(ai, "$(RPNAM):HourVal"){
field(DTYP,"asynInt32")
field(INP, "@asynMask($(PORT) 68 16)MODBUS_DATA")
field(SCAN,"Passive")
field(FLNK, "$(RPNAM):WeekVal")
}
now, I want to set new hour to the device and I try to write the following db according to
Analog Output Example Record from "asynDriver: Asynchronous Driver Support" manual:
record(ao, "$(RPNAM):HourValSET"){
field(DTYP,"asynInt32")
field(OUT, "@asyn($(PORT), 68)")
field(SCAN,"Passive")
}
however, I failed, epics gives the following error messages:
drvModbusAsyn::writeInt32 port RD1R invalid request for Modbus function 3
Gamma:01:HourValSET devAsynInt32 process error
Could anyone give me some suggestions and thanks in advance !