# epics.td4/src %W% %Gcd /tmp_mnt/users/tobiyama/epics.td4# test startup.frc40 @(#)startupfrc40.template	1.2 4/12/94
# VxWorks startup script to load and execute system (iocCore) software.
#	Point to file directories
#
# Make delete key work for backspace
tyBackspaceSet(0177)
#cd to application directory
#cd "myappl"
cd "/users/tobiyama/epics.td4"
pwd

# replace <arch> below with M40 or M20
# don't change the order of the following 4 lines
# ld < ./target<arch>/iocCore
# ld < ./target<arch>/drvSup
# ld < ./target<arch>/recSup
# ld < ./target<arch>/devSup
ld < ./targetfrc40/iocCore
ld < ./targetfrc40/drvSup
ld < ./targetfrc40/recSup
ld < ./targetfrc40/devSup

# if use state programs, take the # off the following line
# ld < ./target<arch>/seq
ld < ./targetfrc40/seq

# load any application objects here
# or code for subroutine records here
#ld < ./objfrc40/testsub.o
ld <./objfrc40/devTd4v.o

# load sequences here
#ld < ./objfrc40/testseq.o

# load one or more databases here.
dbLoad "default.dctsdr"
#dbLoadRecords  "<database_directory>/<dbname>.db"[,"var=val,var2=val2"]
#dbLoadRecords "db/testdb.db"
dbLoadRecords "/users/tobiyama/epics.td4/db/td4v01.db"
#dbLoadRecords "db/td4v02.db"

# setup network route: routeAdd("destnation","Gateway")

 routeNetAdd("130.87.81.00","192.153.111.32")
 routeNetAdd("192.153.110.00","192.153.111.32")
 routeNetAdd("192.153.111.00","192.153.111.32")

#
coreRelease()

#Initialize CAMAC highway 0
#ccinit(0)
#Initialize TD4V
devTd4vConfig(2,0x200000)

# start up EPICS tasks
# cd "/users/epics/e312"
iocInit "resource.def"
#now execute sequences
#seq &testseq