Add ioc install

This commit is contained in:
2024-05-28 08:59:42 +02:00
parent 3fa99176c8
commit 5553b7c035
4 changed files with 31 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
epics_version: 7.0.7
os: RHEL8
cpu_architecture: x86_64
ioc_host: sls-sioc-ecat01
ioc_port: 50001
ioc_user: root

View File

@@ -9,11 +9,15 @@ require ecmccomp
##############################################################################
## Configure hardware
epicsEnvSet("DRV_SLAVE", "13")
epicsEnvSet("DRV_SLAVE", "10")
${SCRIPTEXEC} ${ecmccfg_DIR}addSlave.cmd, "SLAVE_ID=$(DRV_SLAVE), HW_DESC=EL7041-0052"
${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Motor-Generic-2Phase-Stepper,MACROS='I_MAX_MA=1000,I_STDBY_MA=500,U_NOM_MV=48000,R_COIL_MOHM=1230,STEPS=400'"
${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Motor-Generic-2Phase-Stepper,MACROS='I_MAX_MA=1000,I_STDBY_MA=500,U_NOM_MV=48000,R_COIL_MOHM=1230'"
epicsEnvSet("ENC_SLAVE", "14")
epicsEnvSet("BO_SLAVE", "9")
${SCRIPTEXEC} ${ecmccfg_DIR}addSlave.cmd, "SLAVE_ID=$(BO_SLAVE), HW_DESC=EL2819"
epicsEnvSet("ENC_SLAVE", "3")
${SCRIPTEXEC} ${ecmccfg_DIR}addSlave.cmd, "SLAVE_ID=$(ENC_SLAVE), HW_DESC=EL5042"
${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Encoder-RLS-LA11-24bit-BISS-C,CH_ID=1"
${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Encoder-RLS-LA11-24bit-BISS-C,CH_ID=2"
@@ -21,6 +25,9 @@ ${SCRIPTEXEC} ${ecmccomp_DIR}applyComponent.cmd "COMP=Encoder-RLS-LA11-24bit-BIS
#Apply hardware configuration
ecmcConfigOrDie "Cfg.EcApplyConfig(1)"
#- Feed limits
ecmcConfigOrDie "Cfg.WriteEcEntryIDString(${BO_SLAVE},binaryOutput01,1)"
##############################################################################
## AXIS 1
#

11
Makefile Normal file
View File

@@ -0,0 +1,11 @@
default: help
help ::
@echo "Makefile for the ecmc test system in motion lab"
@echo "====================================================================================="
@echo "available targets for IOC installation"
@echo " -> make install to install the ecmc hw test system for motion lab"
install ::
ioc install --clean -V --ioc MTEST01-MTN-HW-TEST

View File

@@ -10,10 +10,10 @@ ssh sls-sioc-ecat01
cd /ioc/sls-sioc-ecat01/ecmc_hw_test
```
## Run open loop stepper ioc
First make sure that slave numbers for drive and encoder is correct in openloop_stepper_bissc.script.
First make sure that slave numbers for drive and encoder is correct in MTEST01-MTN-HW-TEST_startup.script.
```
sudo iocsh openloop_stepper_bissc.script
make install
```
## Check biss c encoder
@@ -26,7 +26,7 @@ camon sls-sioc-ecat01:m0s014-Enc01-PosAct sls-sioc-ecat01:m0s014-Enc02-PosAct
Open new terminal and execute:
```
caqtdm -macro "IOC=sls-sioc-ecat01,SYS=sls-sioc-ecat01,Axis=Axis1" ecmcAxisExpert_v1.ui
caqtdm -macro "IOC=MTEST01-MTN-HW-TEST,SYS=MTEST01-MTN-HW-TEST,Axis=Axis1" ecmcAxisExpert_v1.ui
```
If PV's is not connected (white fields in panel) then try to execute in terminal and then relaunch the panel: