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  <2019 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  <2019
<== Date ==> <== Thread ==>

Subject: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor?
From: Chiang, Liang-Chih [江良志] via Tech-talk <tech-talk@aps.anl.gov>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 15 Jan 2019 09:18:05 +0000

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:
Re: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Getting data from a shell script into an ioc Bo Jakobsen via Tech-talk
Next: Re: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Mark Rivers 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  <2019
Navigate by Thread:
Prev: Re: Suggestions on tablet solution Johnson, Andrew N. via Tech-talk
Next: Re: How to limit the range of setting value for longout record(DTYP asynInt32) in asynMotor? Mark Rivers 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  <2019
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 ·