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> 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 2017 2018 <2019> 2020 2021 2022 2023 2024 |
<== 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 <[email protected]> |
To: | "[email protected]" <[email protected]> |
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 |