-
Notifications
You must be signed in to change notification settings - Fork 23
Description
At present each instantiation of dls_pmac_asyn_motor.template or `` also adds an alias that has a deterministic, numbered PV.
see:
pmac/pmacApp/Db/dls_pmac_asyn_motor.template
Lines 69 to 73 in afe81f8
| # add numbered name aliases for above 3 templates | |
| substitute "P=$(PMAC):, M=M$(ADDR)" | |
| include "motor_in_cs.template" | |
| include "eloss_kill_autohome_records.template" | |
| include "pmacDirectMotor.template" |
pmac/pmacApp/Db/dls_pmac_asyn_motor.template
Lines 14 to 30 in afe81f8
| # numbered name aliases for all PVs in basic_asyn_motor.template | |
| alias($(P)$(M), $(PMAC):M$(ADDR)) | |
| alias($(P)$(M):ADDR, $(PMAC):M$(ADDR):ADDR) | |
| alias($(P)$(M):PORT, $(PMAC):M$(ADDR):PORT) | |
| alias($(P)$(M):SCALE, $(PMAC):M$(ADDR):SCALE) | |
| alias($(P)$(M):USER:SDIS, $(PMAC)M$(ADDR):USER:SDIS) | |
| alias($(P)$(M):SDIS, $(PMAC):M$(ADDR):SDIS) | |
| alias($(P)$(M):KILL, $(PMAC):M$(ADDR):KILL) | |
| alias($(P)$(M):ELOSS, $(PMAC):M$(ADDR):ELOSS) | |
| alias($(P)$(M):ELOSSRC, $(PMAC):M$(ADDR):ELOSSRC) | |
| alias($(P)$(M):MR_MOVE_WRITE, $(PMAC):M$(ADDR):MR_MOVE_WRITE) | |
| alias($(P)$(M):CHECK_SYNC, $(PMAC):M$(ADDR):CHECK_SYNC) | |
| alias($(P)$(M):FERROR, $(PMAC):M$(ADDR):FERROR) | |
| alias($(P)$(M):FERRORMAX, $(PMAC):M$(ADDR):FERRORMAX) | |
| alias($(P)$(M):FEMAXRESET, $(PMAC):M$(ADDR):FEMAXRESET) | |
| alias($(P)$(M):HOMEVIS, $(PMAC):M$(ADDR):HOMEVIS) | |
| alias($(P)$(M):HOMEVISSTR, $(PMAC):M$(ADDR):HOMEVISSTR) |
The problem with this is that the screen pmacAxes.edl will often have gaps in the PVs it tries to render. This causes edm to search for non-existent PVS. This is also a problem for Ophyd objects trying to drive pmacs.
The proposed fix is to instantiate some minimal records for all 16 axes with no DTYP (defaulting to softrecord). Then the aliases would override those records for which we do need a connection to an axes and the remaining ones would be left as minimal placeholders that fix the issue described above.