From f6600e522695c6360a7aa4334f972ca21e04d952 Mon Sep 17 00:00:00 2001 From: smathis Date: Mon, 8 Jun 2026 14:10:02 +0200 Subject: [PATCH] Added PVs for the controller name and the axis number --- db/sinqMotor.db | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/db/sinqMotor.db b/db/sinqMotor.db index a314aec..b70fb84 100755 --- a/db/sinqMotor.db +++ b/db/sinqMotor.db @@ -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")