forked from epics_driver_modules/motorBase
Added resolution, direction and offset records
This commit is contained in:
@@ -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)")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user