configureSlave.cmd

description

Script for adding a slave with dedicated slave configuration to the EtherCAT bus configuration.

details

Adds the respective hardware to the bus configuration, adds specific and default PV to the EPICS database. Applies a specific slave configuration.

author

Niko Kivel


paramters

HW_DESC Hardware descriptor, i.e. EL7037
CONFIG configuration file, i.e. -Motor-Nanotec-ST4118L1804-B


The CONFIG together with the HW_DESC form the full filename which by definition is ecmc${HW_DESC}${CONFIG}.cmd, i.e.: ecmcEL7037-Motor-Nanotec-ST4118L1804-B.cmd

paramters

SLAVE_ID (optional) bus position
CFG_MACROS (optional) Substitution macros for config file
NELM (optional) Used for oversampling cards. Defaults to 1


Example calls:

  • call w/o SLAVE_ID
${SCRIPTEXEC} ${ecmccfg_DIR}configureSlave.cmd, "HW_DESC=EL7037, CONFIG=-Motor-Nanotec-ST4118L1804-B"
  • call w/ SLAVE_ID
${SCRIPTEXEC} ${ecmccfg_DIR}configureSlave.cmd, "HW_DESC=EL7037, CONFIG=-Motor-Nanotec-ST4118L1804-B, SLAVE_ID=8"