################################################################################
#
#  Install subject: cnv (Conveyor Tracking) with dsqc377
#  $Revision: 1.6 $
#
# MODIFICATIONS
# $Log $
#
#
################################################################################
# Install.cmd script for installation of the Conveyor Tracking Option with
#	      consideration of Queue Tracking Option.
#
# Use:
#      this file will be included by the root to the main installation script
#      with the specific 'include' command.
#
################################################################################
#
#
# Beginning #
# 
echo -text " "
echo -text "Installing Conveyors for PPA"

#
# Language Dependent files for Rapid and MMC, EIO System Parameters
#
text -filename $BOOTPATH/cnv_mmc.$LANG -package 0
text -filename $BOOTPATH/eio_354.$LANG -package 0
text -filename $BOOTPATH/eio_377.$LANG -package 0

#
# Language Independent files for Rapid
#
  
#
# Config files for Rapid and MMC System Parameters
#
config -filename $BOOTPATH/cnv_sys.cfg -domain SYS -internal
config -filename $BOOTPATH/cnv_mmc.cfg -domain MMC -internal
config -filename $BOOTPATH/dsqc354.cfg -domain EIO -internal
config -filename $BOOTPATH/mmc_354.cfg -domain MMC -internal
config -filename $BOOTPATH/dsqc377.cfg -domain EIO -internal
config -filename $BOOTPATH/mmc_377.cfg -domain MMC -internal

invoke -entry convey_init

setvar -var 10 -value 0
setvar -var 11 -value 0
echo -text "How many conveyors should be installed?"
query -text "  0       1       2       3      MORE  " -var 10 -fk_text
if -var 10 -value 50 -label INSTALL_MORE
if -var 10 -value 40 -label INSTALL_BOARD_3
if -var 10 -value 30 -label INSTALL_BOARD_2
if -var 10 -value 20 -label INSTALL_BOARD_1
if -var 10 -value 10 -label END_LABEL

#INSTALL_MORE
echo -text "How many conveyors should be installed?"
query -text "  4       5       6    " -var 11 -fk_text
if -var 11 -value 30 -label INSTALL_BOARD_6
if -var 11 -value 20 -label INSTALL_BOARD_5
if -var 11 -value 10 -label INSTALL_BOARD_4

#INSTALL_BOARD_6
config -filename $BOOTPATH/cnvq6eio.cfg -domain EIO
config -filename $BOOTPATH/cnvq6prc.cfg -domain PROC
config -filename $BOOTPATH/cnv6_moc.cfg -domain MOC

#INSTALL_BOARD_5
config -filename $BOOTPATH/cnvq5eio.cfg -domain EIO
config -filename $BOOTPATH/cnvq5prc.cfg -domain PROC
config -filename $BOOTPATH/cnv5_moc.cfg -domain MOC

#INSTALL_BOARD_4
config -filename $BOOTPATH/cnvq4eio.cfg -domain EIO
config -filename $BOOTPATH/cnvq4prc.cfg -domain PROC
config -filename $BOOTPATH/cnv4_moc.cfg -domain MOC

#INSTALL_BOARD_3
config -filename $BOOTPATH/cnvq3eio.cfg -domain EIO
config -filename $BOOTPATH/cnvq3prc.cfg -domain PROC
config -filename $BOOTPATH/cnv3_moc.cfg -domain MOC

#INSTALL_BOARD_2
config -filename $BOOTPATH/cnvq2eio.cfg -domain EIO
config -filename $BOOTPATH/cnvq2prc.cfg -domain PROC
config -filename $BOOTPATH/cnv2_moc.cfg -domain MOC

#INSTALL_BOARD_1
config -filename $BOOTPATH/cnvq1eio.cfg -domain EIO
config -filename $BOOTPATH/cnvq1prc.cfg -domain PROC
config -filename $BOOTPATH/cnv1_moc.cfg -domain MOC

#END_LABEL
# Append the conveyor ipm process 'new' command to the options.cmd disk
#
append -from $BOOTPATH/opt_cnv.cmd -to option.cmd

#
#
echo -text "...done"



