30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
#- Configuration scripts
|
|
require ecmccfg sandst_a "ENG_MODE=1,EC_RATE=100"
|
|
|
|
#- Components lib
|
|
require ecmccomp
|
|
|
|
#- Syncronization configs
|
|
require ecmc_master_slave
|
|
|
|
#- Only output errors
|
|
asynSetTraceMask(${ECMC_ASYN_PORT}, -1, 0x01)
|
|
|
|
#- #################################################################
|
|
# Configure Hardware and Motion
|
|
< ../common/cfgHW_and_motion.cmd
|
|
|
|
#- #################################################################
|
|
#- PLCs with kinematics (note the INC var including dirs to search for include files)
|
|
#- The group ID:s configured in yaml are stored in GRP_<axis.group>_ID
|
|
${SCRIPTEXEC} ${ecmccfg_DIR}loadPLCFile.cmd, "FILE=./cfg/axis_main.plc, PLC_ID=1, INC=.:${ecmc_master_slave_DIR}, DESC='Slit Kinematics and Statemachine', PLC_MACROS='PLC_ID=1, AX_M1=12, AX_M2=13, AX_S1=5, AX_S2=6, GRP_ID_SA=${GRP_realAxes_ID}, GRP_ID_MA=${GRP_virtualAxes_ID}'"
|
|
|
|
#- #################################################################
|
|
#- go active
|
|
${SCRIPTEXEC} ${ecmccfg_DIR}applyConfig.cmd
|
|
${SCRIPTEXEC} ${ecmccfg_DIR}setAppMode.cmd
|
|
|
|
#- #############################################################################
|
|
#- reset all errors
|
|
afterInit("ecmcConfigOrDie 'ControllerErrorReset()'")
|