I would like this line
|
dbLoadRecords("ethercatmc.template", "P=$(P), R=$(R), MOTOR_PORT=$(MOTOR_PORT), ASYN_PORT=$(ASYN_PORT), AXIS_NO=$(AXIS_NO), PREC=$(PREC), RAWENCSTEP_ADEL=$(RAWENCSTEP_ADEL), RAWENCSTEP_MDEL=$(RAWENCSTEP_MDEL) $(ECAXISFIELDINIT)") |
To also load the DESC macro, like is done here:
|
dbLoadRecords("ethercatmc.template", "P=$(P), R=$(R), AXIS_NO=$(AXIS_NO), MOTOR_PORT=$(MOTOR_PORT), ASYN_PORT=$(ASYN_PORT), AXIS_NO=$(AXIS_NO), DESC=$(DESC), PREC=$(PREC) $(ECAXISFIELDINIT)") |
At the moment the code seems to get the DESC field from the PILS TABLE, but for I would like to be able to set my own.
Edit:
Motivation: the DESC field is supposed to describe what the record represents, and using the PILS device name for that (which is what is happening) works, but could be improved with using an actual description, which is what this field is made for.
Example:
PILS name (and current DESC field): SltSet1LftBld
Actual equivalent description: Slit Set 1 - Left Blade
I would like this line
m-epics-ethercatmc/iocsh/ethercatmcIndexerAxis.iocsh
Line 3 in e3c2bc2
To also load the DESC macro, like is done here:
m-epics-ethercatmc/iocsh/ethercatmcAxis.iocsh
Line 35 in e3c2bc2
At the moment the code seems to get the DESC field from the PILS TABLE, but for I would like to be able to set my own.
Edit:
Motivation: the DESC field is supposed to describe what the record represents, and using the PILS device name for that (which is what is happening) works, but could be improved with using an actual description, which is what this field is made for.
Example:
PILS name (and current DESC field): SltSet1LftBld
Actual equivalent description: Slit Set 1 - Left Blade