#- Configuration scripts require ecmccfg,"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 inverse kinematics (note the INC var including dirs to search for include files) #- The group ID:s configured in yaml are stored in GRP__ID ${SCRIPTEXEC} ${ecmccfg_DIR}loadPLCFile.cmd, "FILE=./cfg/axis_main.plc, PLC_ID=1, INC=.:${ecmc_master_slave_DIR}, PLC_MACROS='PLC_ID=1, AX_CEN=12, AX_GAP=13, AX_LO=5, AX_HI=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()'")