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)
|