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),
asynStatus readInt32(asynUser *pasynUser, epicsInt32 *value);
asynStatus writeInt32(asynUser *pasynUser, epicsInt32 value);
Then using longout records to access, something like following and it works:
field(OUT, "@asyn($(PORT) $(ADDR))SETTING1)
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.)
National Synchrotron Radiation Research Center (NSRRC)