From 1c051995c3c3b6c791e47a70e7803ef5a2afacd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Mon, 11 Mar 2024 09:38:31 +0100 Subject: [PATCH] Update testscript --- iocsh/cfg/axis.yaml | 4 +--- iocsh/test.script | 10 ++++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/iocsh/cfg/axis.yaml b/iocsh/cfg/axis.yaml index fcc5d54..d97d627 100644 --- a/iocsh/cfg/axis.yaml +++ b/iocsh/cfg/axis.yaml @@ -1,10 +1,8 @@ -macros: LIMIT=10000,TYPE=0,DRV_SLAVE=${DRV_SLAVE} # Macros for all below (evaluated before jinja linter) - axis: id: 1 # Axis id type: joint # this is for future selection of axis type # mode: CSV # supported mode, CSV and CSP, defaults CSV - # parameters: 'axisPar' # additional parameters # Additional params to motor record driver + parameters: 'powerAutoOnOff=2;powerOffDelay=4;powerOnDelay=4;' # additional parameters # Additional params to motor record driver #healthOutput: ec0... # Ethercat entry for health output # autoMode: # Switch drive modes automaticaly for normal motion and homing (smaract for instance) # modeSet: ec0.. # Ethercat entry drive mode write (set CSV,CSP,homing) diff --git a/iocsh/test.script b/iocsh/test.script index 7a7df71..84a2ccd 100644 --- a/iocsh/test.script +++ b/iocsh/test.script @@ -12,16 +12,13 @@ ## epicsEnvSet(IOC,c6025a) -require ecmccfg safety2 "ECMC_VER=safety2,ENG_MODE=1" +require ecmccfg safety2 "ECMC_VER=safety2_v7.0.9ESS,ENG_MODE=1" ############################################################################## ## Load components lib # require ecmccomp -############################################################################## -## Configure hardware - epicsEnvSet("DRV_SLAVE", "13") ${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_STDBY_MA=200,I_MAX_MA=1000,R_COIL_MOHM=1700'" @@ -43,12 +40,13 @@ ${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}loadYamlAxis.cmd, "FILE=./cfg/axis.yaml,LIMIT=1 ############################################################################## ## PLC 1 # -#-${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}loadYamlPlc.cmd, "FILE=./plc/plc_cfg.yaml,LIMIT=5000,TYPE=1" +epicsEnvSet(PLC_PATH,"./plc/") +${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}loadYamlPlc.cmd, "FILE=./plc/plc_cfg.yaml,LIMIT=5000,TYPE=1" ############################################################################## ## Load safety plugin # -require ecmc_plugin_safety +require ecmc_plugin_safety safety2_v7.0.9ESS # Create SS1 group epicsEnvSet(EC_RAMP_DOWN,"ec${ECMC_EC_MASTER_ID}.s${DRV_SLAVE}.ZERO.0")