# Install.cmd script for the S4 system 
# Option config files
if -var 26 -value 10 -label END_LABEL
echo -text "Installing Advanced Motion"
# Text files
text -filename  $BOOTPATH/rlind.eng -package 0
text -filename  $BOOTPATH/rlinder.$LANG -package 0
text -filename  $BOOTPATH/rlcorr.eng -package 0
# ReaL object with programming rules
config -filename  $BOOTPATH/advmot.cfg -domain SYS -internal
config -filename  $BOOTPATH/rlind.cfg -domain MMC -internal
config -filename  $BOOTPATH/rlcorr.cfg -domain MMC -internal
# Hollow wrist IRB5402 and IRB5403
setvar -var 10 -value 0
getkey -id "Hollow" -var 10 -strvar $ANSWER -errlabel NO_HOLLOW
# No copy in S4Cplus
# copy -from $BOOTPATH/advmot.sys -to advmot.sys
config -filename  $BOOTPATH/advmot3.cfg -domain SYS -internal
config -filename  $BOOTPATH/advmot2.cfg -domain MMC -internal
#NO_HOLLOW
# Ref. ../sys/classlib/keyinfo/xxx.dat
#install -resource Function -name "ADMO"
#install -resource Function -name "EDRV"
setvar -var 26 -value 10
#END_LABEL
