-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0181f8
commit e0d458e
Showing
1 changed file
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
############################################################################## | ||
## Example config for el5042 | ||
|
||
require ecmccfg sandst_a "ECMC_VER=sandst_a" | ||
require ecmccfg "MASTER_ID=1" | ||
require ecmccomp | ||
|
||
############################################################################## | ||
## Config hardware: | ||
|
||
epicsEnvSet("ECMC_EC_SLAVE_NUM", "14") | ||
${SCRIPTEXEC} ${ecmccfg_DIR}addSlave.cmd, "SLAVE_ID=$(ECMC_EC_SLAVE_NUM), HW_DESC=EL5042" | ||
${SCRIPTEXEC} ${ecmccfg_DIR}addSlave.cmd, "SLAVE_ID=14, HW_DESC=EL5042" | ||
|
||
#- Apply encoder config with some custom macros | ||
${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Encoder-RLS-LA11-24bit,CH_ID=1" | ||
${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Encoder-RLS-LA11-26bit-BISS-C,CH_ID=1,OFF_BITS=0" | ||
|
||
#Apply hardware configuration | ||
ecmcConfigOrDie "Cfg.EcApplyConfig(1)" | ||
|
||
############################################################################## | ||
############# Configure diagnostics: | ||
|
||
ecmcConfigOrDie "Cfg.EcSetDiagnostics(1)" | ||
ecmcConfigOrDie "Cfg.EcEnablePrintouts(0)" | ||
ecmcConfigOrDie "Cfg.EcSetDomainFailedCyclesLimit(100)" | ||
#- If the offset is needed then the sum of the bit's still need to match the bitcount of the encoder. Example: Offset 3 LSB bits, set ST_BITS=23 (26-3) | ||
#- ${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Encoder-Generic-BISS-C,CH_ID=1,MACROS=MT_BITS=0,ST_BITS=23,CLK_FRQ_KHZ=1000,OFF_BITS=3" | ||
|
||
############################################################################## | ||
## Go active: | ||
$(SCRIPTEXEC) ($(ecmccfg_DIR)setAppMode.cmd) | ||
${SCRIPTEXEC} ${ecmccfg_DIR}applyConfig.cmd | ||
$(SCRIPTEXEC) $(ecmccfg_DIR)setAppMode.cmd |