Added resolution, direction and offset records

This commit is contained in:
MarkRivers
2015-03-21 21:50:25 +00:00
parent 8049aeffd2
commit 780d12329d
+34
View File
@@ -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)")
}