Skip to content

Commit

Permalink
run-ethercatmc-ioc.sh: Use ads when a motorcfg is called -ads.iocsh
Browse files Browse the repository at this point in the history
Change the logic to allow the use of twincat-ads easier:
When a motorcfg file ends with -ads.iocsh, use it.
Otherwise MOTOROORT 48898 will use PILS (and ads below)

Changes to be committed:
    modified:   run-ethercatmc-ioc.sh
  • Loading branch information
tboegi committed Dec 3, 2024
1 parent 796af06 commit d12d061
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/run-ethercatmc-ioc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,16 @@ while test "$PARAM" != ""; do
esac
done

MOTORCFG="$1"
case $MOTORCFG in
*-ads)
ASYNPORTCONFIGUREUSE=adsAsynPortDriverConfigure
ASYNPORTCONFIGUREDONTUSE=drvAsynIPPortConfigure
;;
*) ;;
esac
export NOMAKE
export NORUN

MOTORCFG="$1"
export MOTORCFG
echo MOTORCFG=$MOTORCFG
if ! test -f startup/st.${MOTORCFG}.iocsh; then
Expand Down

0 comments on commit d12d061

Please sign in to comment.