Added PVs for the controller name and the axis number
Test And Build / Lint (push) Successful in 6s
Test And Build / Build (push) Successful in 5s

This commit is contained in:
2026-06-08 14:10:02 +02:00
parent 555708bdd1
commit f6600e5226
+14
View File
@@ -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")