Skip to content

ethercatmcIndexerAxis.iocsh: Add DESC=$(DESC) to motor template loading #48

@AndreFavotto

Description

@AndreFavotto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions