k.f, jul.19.1999. k.f, jul.21.1999.
$B?7$7$$
$B$A$J$_$K!"(BRecord support $B$K$D$$$F$O!"(B
$B@)8fBP>]$,Bg5,LO!"$^$?$OJ#;($G$J$$>l9g$O!"(B
$BI8=`$N(B Record support $B$KDI2C$r$7$J$/$F$b!"(B
$B@)8f7O$r9=C[$9$k$3$H$,$G$-$k$H;W$o$l$k!#(B
$B$b$A$m$s!"?7$7$$5!G=$r5a$a$?$j!"8zN($r9M$($k>l9g$K$O$3$N8B$j$G$O$J$$!#(B
Device support $B$NNc$r8+$J$,$i(B source code $B!"Nc$($P!"(B
Device support $B$NNc$O!"F1$8(B directory $B$K(B devXxxSoft.c $B$H$$$&Nc$,$"$j!"(B
$B$^$?!"B>$N(B Device support $B$N(B source code $B$,(B
$EPICS/base/src/dev $B0J2<$KB??t$"$k!#(B
$B$5$i$K!"(BMakefile.Vx $B$K(B
Device support code $B$,$G$-$?$i!"(Bmake $B$r9T$J$C$F$_$k!#(B
make $B$K$h$C$F!"(BDevice support code $B$O(B Compile $B$5$l$F!"(B
$BB>$N(B IOC $B$N(B code $B$H$H$b$K(B iocCore $B$H$$$&(B File $B$K$J$j!"(B
$top/bin/pcore750 $B$KCV$+$l$k!#(B
$B$3$l$i$N(B Database $B$N(B source file $B$O!"(B
$BDL>o$N(B Text editor $B$GJT=8$9$k$3$H$b$G$-$k$,!"(B
$BNc$($P!"(Bdct2 (dct313) $B$J$I$r;HMQ$9$k$H!"(B
$BB?>/4V0c$$$r8:$i$9$3$H$,$G$-$k>l9g$b$"$k!#(B
dct2 $B$ONc$($P!"(B
Database $B$OJL$N(B File $B$H$7$F:n@.$9$k$3$H$b$G$-$k$,!"$=$N>l9g$O!"(B
$B$3$N(B directory $B$N(B Makefile.Host, $B$H(B
$B$"$H$G=P$F$/$k(B $top/iocBoot/iocexample/st.cmd $B$rDI2C=$@5$9$k!#(B
Device support code $B$H(B database $B$,$G$-$?$i!"(BIOC $B$K(B load $B$G$-$k$h$&$K!"(B
make $B$r9T$J$&!#(B
load [email protected]$7$?$i!"(Bcaget/caput $B$J$I$r;H$C$F!"(BRecord $B$N;n83$r$7$F$_$k!#(B
$B;W$$DL$j$KF0:n$7$J$1$l$P!"LdBj$r=$@5$7!"(Breboot $B$H(B load $B$r7+$jJV$9!#(B
[ 1. Epics Device support code $B$r:n@.$9$k(B ]
% cd $top/exampleApp/src
devXxNewDev.c
$B$r:n@.$9$k!#(BHeader file $B$r:n@.$9$k>l9g$K$O!"(B
$B$3$N(B directory $B$G$O$J$/$F!"(B $top/include $B$K!"Nc$($P!"(B
devXxNewDev.h
$B$r:n@.$9$k!#(B
LIBOBJS += devXxNewDev.o
$B$rDI2C$7!"(B
exampleInclude.dbd $B$K!"Nc$($P(B
device(xx,INST_IO,devXxNewDev,"New Device")
$B$rDI2C$9$k!#(B
% cd $top
% make
make $B$N4V$K(B Error Message $B$,=PNO$5$l$?>l9g$K$O!"(B
$B$=$N(B Message $B$K=>$C$FLdBj$r=$@5$7!"(Bmake $B$r7+$jJV$9!#(B[ 2. Epics Device Record $B$r:n@.$9$k(B ]
% cd $top/exampleApp/Db
dbExample1.db $B$^$?$O(B dbExample2.template $B$K?7$7$$(B Record $B$rDI2C$7!"(B
$B;n83MQ$N(B Database $B$r:n@.$9$k!#(B
dct313 $top/dbd/exampleApp.dbd dbExample1.db
$B$H$7$F5/F0$7!"(B"Save ... only non-default values"
$B$G7k2L$rJ]B8$9$k!#(B
% cd $top
% make
make $B$K$h$C$F!"(B
Database $B$OE83+$5$l$F!"(B$top/db $B$KCV$+$l$k!#(B[ 3. Epics Device Support $B$r;n83$9$k(B ]
cd "$top/iocBoot/iocexample"
< st.cmd
$B$^$?$O!"(B
cd "$top/iocBoot/iocexample"
< cdCommands
cd appbin
ld < iocCore
ld < seq
ld < exampleLib
cd startup
dbLoadDatabase("../../dbd/exampleApp.dbd")
dbLoadRecords("../../db/dbExample1.db","user=$user")
dbLoadRecords("../../db/dbExample2.db")
iocInit
seq &snctest
$B$3$l$i$NA`:n$N4V$K(B Error Message $B$,=PNO$5$l$?>l9g$K$O!"(B
$B$=$N(B Message $B$K=>$C$FLdBj$r=$@5$7!"(Breboot $B$H(B load $B$r7+$jJV$9!#(B
...
[ $B;29M;qNA(B ]