diff --git a/db/sinqMotor.db b/db/sinqMotor.db index 08f537a..ecaed1b 100755 --- a/db/sinqMotor.db +++ b/db/sinqMotor.db @@ -1,18 +1,18 @@ # The main asyn motor record. Some fields are populated from the substitution # files via macros: -# - $(INSTR): Name of the instrument, e.g. "SQ:SINQTEST:" -# - $(M): Name of the motor in EPICS, e.g. "lin1" -# - $(DESC): Short description of the motor -# - $(DIR): This value is usually set to "Pos". If the motor axis direction +# - INSTR: Name of the instrument, e.g. "SQ:SINQTEST:" +# - M: Name of the motor in EPICS, e.g. "lin1" +# - DESC: Short description of the motor. If not given, this is equal to M +# - DIR: This value is usually set to "Pos". If the motor axis direction # should be inverted, this value can be set to "Neg" -# - $(CONTROLLER): Name of the motor controller, e.g. "mcu1" -# - $(AXIS): Number of the axis, e.g. "1" -# - $(MRES): Motor record resolution. See the README.md for a detailed discussion -# - $(EGU): Engineering units. In case of a rotary axis, this is "degree", in +# - CONTROLLER: Name of the motor controller, e.g. "mcu1" +# - AXIS: Number of the axis, e.g. "1" +# - MRES: Motor record resolution. See the README.md for a detailed discussion +# - EGU: Engineering units. In case of a rotary axis, this is "degree", in # case of a linear axis this is "mm". record(motor,"$(INSTR)$(M)") { - field(DESC,"$(DESC)") + field(DESC,"$(DESC=$(M))") field(DTYP,"asynMotor") field(DIR,"$(DIR=Pos)") field(OUT,"@asyn($(CONTROLLER),$(AXIS))") diff --git a/src/sinqController.h b/src/sinqController.h index 6e4874a..d20c1c6 100644 --- a/src/sinqController.h +++ b/src/sinqController.h @@ -10,8 +10,9 @@ Stefan Mathis, November 2024 #define motorMessageIsFromDriverString "MOTOR_MESSAGE_DRIVER" #define motorMessageTextString "MOTOR_MESSAGE_TEXT" -#define IncrementalEncoder "Incremental encoder" -#define AbsoluteEncoder "Absolute encoder" +#define IncrementalEncoder "incremental" +#define AbsoluteEncoder "absolute" +#define NoEncoder "none" class epicsShareClass sinqController : public asynMotorController { public: