-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run-ethercatmc-ioc.sh: Better support for -ads
Make the handling of -ads start scripts better: If EPICSTWINCATADS is set, must be determined earlier, to allow a proper handling of ASYNPORTCONFIGUREUSE and ASYNPORTCONFIGUREDONTUSE Add st.mcu010-ads.iocsh for testing purposes Changes to be committed: modified: run-ethercatmc-ioc.sh new file: startup/st.mcu010-ads.iocsh
- Loading branch information
Showing
2 changed files
with
67 additions
and
19 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
epicsEnvSet("MOTOR_PORT", "$(SM_MOTOR_PORT=MCU1)") | ||
|
||
epicsEnvSet("IPADDR", "$(SM_IPADDR=127.0.0.1)") | ||
epicsEnvSet("IPPORT", "$(SM_IPPORT=48898)") | ||
epicsEnvSet("AMSNETIDIOC", "LOCALAMSNETIDXX") | ||
epicsEnvSet("ASYN_PORT", "$(SM_ASYN_PORT=MC_CPU1)") | ||
epicsEnvSet("SYSPFX", "$(SM_SYSPFX=LabS-MCAG:MC-MCU-10:)") | ||
epicsEnvSet("MCUPFX", "") | ||
epicsEnvSet("PREC", "$(SM_PREC=3)") | ||
epicsEnvSet("SM_NOAXES", "2") | ||
epicsEnvSet("ADSPORT", "$(ECM_ADSPORT=852)") | ||
epicsEnvSet("ECM_OPTIONS", "") | ||
|
||
epicsEnvSet("MOVINGPOLLPERIOD", "200") | ||
epicsEnvSet("IDLEPOLLPERIOD", "500") | ||
< ethercatmcController.iocsh | ||
|
||
|
||
# | ||
# Axis 1 | ||
# | ||
epicsEnvSet("AXISCONFIG", "") | ||
epicsEnvSet("AXIS_NAME", "$(SM_AXIS_NAME=m1)") | ||
epicsEnvSet("AXIS_NO", "$(SM_AXIS_NO=1)") | ||
epicsEnvSet("DESC", "$(SM_DESC=DESC)") | ||
epicsEnvSet("EGU", "$(SM_EGU=EGU)") | ||
epicsEnvSet("RAWENCSTEP_ADEL", 0) | ||
epicsEnvSet("RAWENCSTEP_MDEL", 0) | ||
< ethercatmcAxis.iocsh | ||
< ethercatmcAxisdebug.iocsh | ||
|
||
# | ||
# Axis 2 | ||
# | ||
epicsEnvSet("AXISCONFIG", "") | ||
epicsEnvSet("AXIS_NAME", "$(SM_AXIS_NAME=m2)") | ||
epicsEnvSet("AXIS_NO", "$(SM_AXIS_NO=2)") | ||
epicsEnvSet("RAWENCSTEP_ADEL", 0) | ||
epicsEnvSet("RAWENCSTEP_MDEL", 0) | ||
< ethercatmcAxis.iocsh | ||
< ethercatmcAxisdebug.iocsh | ||
|