diff --git a/motorApp/Db/basic_asyn_motor.db b/motorApp/Db/basic_asyn_motor.db index c1146893..5365f945 100644 --- a/motorApp/Db/basic_asyn_motor.db +++ b/motorApp/Db/basic_asyn_motor.db @@ -19,3 +19,37 @@ record(motor,"$(P)$(M)") field(TWV,"1") } +# These records make the motor resolution, offset and direction available to the driver +# which is needed for profile moves and other applications + +# Motor direction for this axis +record(longout,"$(P)$(M)Direction") { + field(DESC, "$(M) direction") + field(DOL, "$(P)$(M).DIR CP MS") + field(OMSL, "closed_loop") + field(DTYP, "asynInt32") + field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))MOTOR_DIRECTION") +} + + +# Motor offset for this axis +record(ao,"$(P)$(M)Offset") { + field(DESC, "$(M) offset") + field(DOL, "$(P)$(M).OFF CP MS") + field(OMSL, "closed_loop") + field(DTYP, "asynFloat64") + field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))MOTOR_OFFSET") + field(PREC, "$(PREC)") +} + + +# Motor resolution for this axis +record(ao,"$(P)$(M)Resolution") { + field(DESC, "$(M) resolution") + field(DOL, "$(P)$(M).MRES CP MS") + field(OMSL, "closed_loop") + field(DTYP, "asynFloat64") + field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))MOTOR_RESOLUTION") + field(PREC, "$(PREC)") +} +