Added PVs for the controller name and the axis number
This commit is contained in:
@@ -49,6 +49,20 @@ record(motor,"$(INSTR)$(M)")
|
||||
field(RMOD,"3") # Retry mode 3 ("In-Position"): This suppresses any retries from the motor record.
|
||||
}
|
||||
|
||||
# PV holding the controller name.
|
||||
record(stringin, "$(INSTR)$(M):ControllerName")
|
||||
{
|
||||
field(INP, "$(CONTROLLER)")
|
||||
field(PINI, "YES")
|
||||
}
|
||||
|
||||
# PV holding the axis number.
|
||||
record(longin, "$(INSTR)$(M):AxisNo")
|
||||
{
|
||||
field(INP, "$(AXIS)")
|
||||
field(PINI, "YES")
|
||||
}
|
||||
|
||||
# This PV reads out the 10th bit of the MSTA field of the motor record, which
|
||||
# is the "motorStatusProblem_" bit.
|
||||
record(calc, "$(INSTR)$(M):StatusProblem")
|
||||
|
||||
Reference in New Issue
Block a user