EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: going mad with Capfast / e2db
From: [email protected] (William Lupton)
To: [email protected]
Date: Fri, 11 Jul 1997 11:16:16 -1000
----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 37

Dear all,

  I am having a lot of trouble with Capfast (well, probably with
e2db...).  I am setting up some symbols that make heavy use of buses and
have had a succession of problems, which may or may not be related:

1. just changing a bus name from "parm" to "p" fixed a problem where a
   "DOL" field was "0.0" and should have been a record higher up in the
   hierarchy (I swear it)

2. I tried to use an alias symbol to rename a bus; I got no errors but
   it was as though the alias symbol was absent and the buses were
   disconnected (there's a comment in edifLib.c that suggests that
   aliases don't work, by the way)

3. I created an "alias2" symbol and schematic to try and achieve the
   same effect on a two-wire bus; I just connected the input straight to
   the output and it seems to work in a simple case but not in my
   operational case

4. I changed the "alias2" symbol to contain two ao "driver" records;
   this doesn't work even in my simple test case but at least I now have
   a simple test case that I think ought to work but doesn't

  Please, if anyone has the time, can you try this simple test case? I
attach the symbol, schematics and .db file (.edf file available on
request). sara.sch is the top-level schematic and references alias2.sch.
I think that "sara:bill" should reference "alias:a0" via its DOL field
and "alias:ao" should reference "sara:fred" via its DOL field. However,
only the latter reference exists in sara.db.

  I'm looking forward to hearing what I'm doing wrong. Thanks,

  William

PS, I'm using E2DB v1.0, originally from LANL in a file named
    EDIF_DB1_0_patches.
----------
X-Sun-Data-Type: default
X-Sun-Data-Name: alias2.sym
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 19

[symbol2]
bbox -224 96 -64 160
port -224 134 -100 0 IN[0-1] symbol 1 -224 128 0
port -64 134 -100 0 OUT[0-1] symbol 2 -64 128 0
uniq 0
[tools]
[attributes]
p -192 176 100 0 1 PV:$(name)
[layers]
<symbol>
l 100 7 0 -144 128 alias2
r 0 -192 96 -96 160
v 0 -224 128
-192 128
_
v 0 -96 128
-64 128
_
[comments]
----------
X-Sun-Data-Type: default
X-Sun-Data-Name: alias2.sch
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 48

[schematic2]
uniq 14
[tools]
[detail]
w 222 -117 100 0 out[0-1] junction 224 -128 352 -128 outhier.OUT[0-1].p
w 228 43 100 0 out[0-1] bustap.bustap#11.o 224 224 224 -128 bustap.bustap#12.o
w 104 -85 100 0 out[1] eaos.a1.VAL 64 -96 192 -96 bustap.bustap#12.p
w 110 267 100 0 out[0] eaos.a0.VAL 64 256 192 256 bustap.bustap#11.p
w -304 -48 100 0 in[1] bustap.bustap#4.o -320 -64 -192 -64 eaos.a1.DOL
w -304 304 100 0 in[0] eaos.a0.DOL -192 288 -320 288 bustap.bustap#2.o
w -448 336 100 0 in[0-1] inhier.IN[0-1].P -480 320 -352 320 bustap.bustap#2.p
w -348 139 100 0 in[0-1] junction -352 320 -352 -32 bustap.bustap#4.p
[cell use]
use bustap 192 -153 100 0 bustap#12
xform 0 208 -112
use bustap 192 199 100 0 bustap#11
xform 0 208 240
use bustap -352 263 100 0 bustap#2
xform 0 -336 304
use bustap -352 -89 100 0 bustap#4
xform 0 -336 -48
use eaos -128 -192 150 0 a1
xform 0 -64 -96
p -272 -160 100 0 -1 OMSL:closed_loop
p -128 -32 100 0 1 PV:$(name)
p -128 -160 100 0 1 SCAN:Passive
p -428 -678 100 0 0 palrm(OUT):NMS
p -208 -64 100 0 -1 pproc(DOL):PP
p -448 -484 100 0 0 typ(OUT):path
use eaos -128 160 150 0 a0
xform 0 -64 256
p -272 192 100 0 -1 OMSL:closed_loop
p -128 320 100 0 1 PV:$(name)
p -128 192 100 0 1 SCAN:Passive
p -428 -326 100 0 0 palrm(OUT):NMS
p -208 288 100 0 -1 pproc(DOL):PP
p -448 -132 100 0 0 typ(OUT):path
use inhier -528 320 100 2048 IN[0-1]
xform 0 -480 320
p -528 256 100 0 0 IO:input
p -592 224 100 0 0 model:connector
p -592 192 100 0 0 revision:2.2
use outhier 368 -128 100 1536 OUT[0-1]
xform 0 336 -128
p 304 -192 100 0 0 IO:output
p 256 -224 100 0 0 model:connector
p 256 -256 100 0 0 revision:2.2
[comments]
----------
X-Sun-Data-Type: default
X-Sun-Data-Name: sara.sch
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 31

[schematic2]
uniq 695
[tools]
[detail]
w 674 1675 100 0 b[0] bustap.bustap#693.o 640 1664 768 1664 elongouts.bill.DOL
w 456 1707 100 0 b[0-1] alias2.alias2#682.OUT[0-1] 448 1696 608 1696 bustap.bustap#693.p
w 136 1707 100 0 s[0-1] bustap.bustap#688.o 128 1696 288 1696 alias2.alias2#682.IN[0-1]
w 2 1739 100 0 s[0] elongouts.fred.VAL -32 1728 96 1728 bustap.bustap#688.p
[cell use]
use bustap 96 1671 100 0 bustap#688
xform 0 112 1712
use bustap 608 1639 100 0 bustap#693
xform 0 624 1680
use elongouts -224 1632 150 0 fred
xform 0 -160 1728
p -403 2073 100 0 0 DESC:long output record
p -224 1664 100 0 1 SCAN:Passive
p -300 1143 100 0 0 palrm(OUT):NMS
p -448 1500 100 0 0 typ(DOL):path
p -320 1163 100 0 0 typ(OUT):path
use elongouts 832 1536 150 0 bill
xform 0 896 1632
p 653 1977 100 0 0 DESC:long output record
p 832 1568 100 0 1 SCAN:Passive
p 756 1047 100 0 0 palrm(OUT):NMS
p 608 1404 100 0 0 typ(DOL):path
p 736 1067 100 0 0 typ(OUT):path
use alias2 288 1639 100 0 alias2#682
xform 0 368 1696
p 320 1632 100 0 -1 set0:name alias:
[comments]
----------
X-Sun-Data-Type: default
X-Sun-Data-Name: sara.db
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 156

record(longout,"sara:fred") {
    field(DESC,"long output record")
    field(SCAN,"Passive")
    field(PINI,"NO")
    field(PHAS,"0")
    field(EVNT,"0")
    field(DTYP,"Soft Channel")
    field(DISV,"1")
    field(SDIS,"0.000000000000000e+00")
    field(DISS,"NO_ALARM")
    field(PRIO,"LOW")
    field(FLNK,"0.000000000000000e+00")
    field(OUT,"0.000000000000000e+00")
    field(DOL,"0.000000000000000e+00")
    field(OMSL,"supervisory")
    field(EGU,"units")
    field(HOPR,"0")
    field(LOPR,"0")
    field(HIHI,"0")
    field(LOLO,"0")
    field(HIGH,"0")
    field(LOW,"0")
    field(HHSV,"NO_ALARM")
    field(LLSV,"NO_ALARM")
    field(HSV,"NO_ALARM")
    field(LSV,"NO_ALARM")
    field(HYST,"0")
    field(ADEL,"0")
    field(MDEL,"0")
    field(SIOL,"0.000000000000000e+00")
    field(SIML,"0.000000000000000e+00")
    field(SIMS,"NO_ALARM")
    field(IVOA,"Continue normally")
    field(IVOV,"0")
}
record(longout,"sara:bill") {
    field(DESC,"long output record")
    field(SCAN,"Passive")
    field(PINI,"NO")
    field(PHAS,"0")
    field(EVNT,"0")
    field(DTYP,"Soft Channel")
    field(DISV,"1")
    field(SDIS,"0.000000000000000e+00")
    field(DISS,"NO_ALARM")
    field(PRIO,"LOW")
    field(FLNK,"0.000000000000000e+00")
    field(OUT,"0.000000000000000e+00")
    field(DOL,"0.000000000000000e+00")
    field(OMSL,"supervisory")
    field(EGU,"units")
    field(HOPR,"0")
    field(LOPR,"0")
    field(HIHI,"0")
    field(LOLO,"0")
    field(HIGH,"0")
    field(LOW,"0")
    field(HHSV,"NO_ALARM")
    field(LLSV,"NO_ALARM")
    field(HSV,"NO_ALARM")
    field(LSV,"NO_ALARM")
    field(HYST,"0")
    field(ADEL,"0")
    field(MDEL,"0")
    field(SIOL,"0.000000000000000e+00")
    field(SIML,"0.000000000000000e+00")
    field(SIMS,"NO_ALARM")
    field(IVOA,"Continue normally")
    field(IVOV,"0")
}
record(ao,"alias:a1") {
    field(DESC,"analog output record")
    field(SCAN,"Passive")
    field(PINI,"NO")
    field(PHAS,"0")
    field(EVNT,"0")
    field(DTYP,"Soft Channel")
    field(DISV,"1")
    field(SDIS,"0.000000000000000e+00")
    field(DISS,"NO_ALARM")
    field(PRIO,"LOW")
    field(FLNK,"0.000000000000000e+00")
    field(OUT,"0.000000000000000e+00")
    field(OROC,"0.0000000e+00")
    field(DOL,"0.000000000000000e+00")
    field(OMSL,"closed_loop")
    field(OIF,"Full")
    field(PREC,"0")
    field(LINR,"NO CONVERSION")
    field(EGUF,"0.0000000e+00")
    field(EGUL,"0.0000000e+00")
    field(EGU,"volts")
    field(DRVH,"0.0000000e+00")
    field(DRVL,"0.0000000e+00")
    field(HOPR,"0.0000000e+00")
    field(LOPR,"0.0000000e+00")
    field(HIHI,"0.0000000e+00")
    field(LOLO,"0.0000000e+00")
    field(HIGH,"0.0000000e+00")
    field(LOW,"0.0000000e+00")
    field(HHSV,"NO_ALARM")
    field(LLSV,"NO_ALARM")
    field(HSV,"NO_ALARM")
    field(LSV,"NO_ALARM")
    field(HYST,"0.000000000000000e+00")
    field(ADEL,"0.000000000000000e+00")
    field(MDEL,"0.000000000000000e+00")
    field(SIOL,"0.000000000000000e+00")
    field(SIML,"0.000000000000000e+00")
    field(SIMS,"NO_ALARM")
    field(IVOA,"Continue normally")
    field(IVOV,"0.000000000000000e+00")
}
record(ao,"alias:a0") {
    field(DESC,"analog output record")
    field(SCAN,"Passive")
    field(PINI,"NO")
    field(PHAS,"0")
    field(EVNT,"0")
    field(DTYP,"Soft Channel")
    field(DISV,"1")
    field(SDIS,"0.000000000000000e+00")
    field(DISS,"NO_ALARM")
    field(PRIO,"LOW")
    field(FLNK,"0.000000000000000e+00")
    field(OUT,"0.000000000000000e+00")
    field(OROC,"0.0000000e+00")
    field(DOL,"sara:fred.VAL .PP.NMS")
    field(OMSL,"closed_loop")
    field(OIF,"Full")
    field(PREC,"0")
    field(LINR,"NO CONVERSION")
    field(EGUF,"0.0000000e+00")
    field(EGUL,"0.0000000e+00")
    field(EGU,"volts")
    field(DRVH,"0.0000000e+00")
    field(DRVL,"0.0000000e+00")
    field(HOPR,"0.0000000e+00")
    field(LOPR,"0.0000000e+00")
    field(HIHI,"0.0000000e+00")
    field(LOLO,"0.0000000e+00")
    field(HIGH,"0.0000000e+00")
    field(LOW,"0.0000000e+00")
    field(HHSV,"NO_ALARM")
    field(LLSV,"NO_ALARM")
    field(HSV,"NO_ALARM")
    field(LSV,"NO_ALARM")
    field(HYST,"0.000000000000000e+00")
    field(ADEL,"0.000000000000000e+00")
    field(MDEL,"0.000000000000000e+00")
    field(SIOL,"0.000000000000000e+00")
    field(SIML,"0.000000000000000e+00")
    field(SIMS,"NO_ALARM")
    field(IVOA,"Continue normally")
    field(IVOV,"0.000000000000000e+00")
}

Navigate by Date:
Prev: Re: Bad CALC record kills IOC Marty Kraimer
Next: InitHooks Benjamin Franksen
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: SGL encoder in EPICS Eric Bjorklund, NPSM
Next: InitHooks Benjamin Franksen
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·