EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Questions about set parameters to device by using epics
From: lzf neu <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 26 Jan 2017 17:42:19 +0000

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 !



Replies:
Re: Questions about set parameters to device by using epics Eric Norum

Navigate by Date:
Prev: Re: TEWS TIP866 serial IP Ralph Lange
Next: Re: Questions about set parameters to device by using epics Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: TEWS TIP866 serial IP Ralph Lange
Next: Re: Questions about set parameters to device by using epics Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·