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  2017  2018  <20192020  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  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor?
From: Mark Rivers via Tech-talk <[email protected]>
To: Chiang, Liang-Chih [江良志] <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 15 Jan 2019 09:31:38 +0000
You can set the drive limits using the DRVL and DRVH fields. GUI limits can be set with LOPR and HOPR fields.

Mark


Sent from my iPhone

On Jan 15, 2019, at 10:18 AM, Chiang, Liang-Chih [江良志] via Tech-talk <[email protected]<mailto:[email protected]>> wrote:


Hi,  EPICS community.



I'm writing a motor controller driver based on asynMotor (C++ classes asynMotorController and asynMotorAxis).

To read/write some specific settings of the motor controller (which are integer values),

I implemented:

asynStatus readInt32(asynUser *pasynUser, epicsInt32 *value);

asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value);



Then using longout records to access, something like following and it works:

record(longout, "$(P)Setting1"){

  field(DTYP, "asynInt32")

  field(OUT, "@asyn($(PORT) $(ADDR))SETTING1)

  field(PINI, "YES")

}



However, the setting has a range of permitted values. For example, the lowest value is 1 and the highest value is 30.



What is the conventional and suggested way to set this range?





Thanks. (This is my first post.)



LiangChih Chiang
National Synchrotron Radiation Research Center (NSRRC)


Replies:
回覆: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Chiang, Liang-Chih [江良志] via Tech-talk
References:
How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Chiang, Liang-Chih [江良志] via Tech-talk

Navigate by Date:
Prev: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Chiang, Liang-Chih [江良志] via Tech-talk
Next: 回覆: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Chiang, Liang-Chih [江良志] via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Chiang, Liang-Chih [江良志] via Tech-talk
Next: 回覆: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Chiang, Liang-Chih [江良志] via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 15 Jan 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·