Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: e2sr and the CALC record
From: Andy Foster <ajf@ast.cam.ac.uk>
To: mcn@atdiv.lanl.gov, matthew@atdiv.lanl.gov
Cc: Epics Questions <tech-talk@aps.anl.gov>
Date: Mon, 1 Apr 1996 17:58:02 +0100 (BST)
Matthew(s),

I have just started using version 2.1.3 of 'e2sr' in order to
make use of the macro substitution through a heirarchy of schematics.
However, I seem to have found a bug with the CALC field of calculation records.

If you set the CALC field as: A%6
(which I believe is allowable, as stated in the record reference manual).
The result in the '.sr' file is: A%67 !!

I went through the following to generate this:

sch2edif -n test.sch.  (Version 2.2.74)

(Incidently, this gave me a file which had the following:

              (property (rename def "def")
                (string "test:calc1.B"))))
          (instance (rename calc1 "calc1")
            (viewRef NETLIST_VIEW 
              (cellRef ecalcs))
            (property (rename CALC "CALC")
              (string "A%37%6")))
          (net (rename n_22 "n#22")
 
Where does the extra "%37" come from?) 


e2sr test.edf. (Version 2.1.3)
gave: 
	DESC calculation record
	SCAN Passive
	PINI NO
	PHAS 0
	EVNT 0
	DISV 1
	SDIS 0.000000000000000e+00
	DISS NO_ALARM
	PRIO LOW
	FLNK 0.000000000000000e+00
	CALC A%67
	INPA test:calc1.VAL .NPP.NMS

The original 'sch' file is:

[schematic2]
uniq 36
[tools]
[detail]
w -1152 722 100 0 n#22 ecalcs.calc1.VAL 
-960 400 -896 400 -896 720 -1360 720 -1360 592 -1248 592 ecalcs.calc1.INPA
[cell use]
use eaos -1800 264 100 0 reset1
xform 0 -1696 352
p -2080 -68 100 0 0 def(OUT):test:calc1.B
use ecalcs -1224 120 100 0 calc1
xform 0 -1104 384
p -1341 600 100 0 0 CALC:A%6
[comments]


I also noticed that A%67 generated A%67% ?
Can anyone tell me if they have noticed anything similar?

Am I using the correct flags on the programs? I don't understand what is
going on? 

Thanks for any help.

Andy

===================================================================================
Andy Foster
Royal Greenwich Observatory	Tel:       44 (0)1223 374899 (direct)
Madingley Road			Fax:       44 (0)1223 374700
Cambridge			E-mail:    ajf@ast.cam.ac.uk
CB3 0HA				Home Page: http://www.ast.cam.ac.uk/~ajf
UK


Navigate by Date:
Prev: Re: CALC record question Marty Kraimer
Next: Capfast 3.02.23 and CALC records Andy Foster
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Visual Basic 4.0 and EZCA Mark S. Engbretson
Next: RE: e2sr and the CALC record Eric Bjorklund, NPSM
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
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 ·