EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Trouble using ULONG in edm
From: "Zhang, Dehong" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 1 Apr 2016 19:16:29 +0000

Hi,


I have a status word field defined as ULONG, and would like to display the individual

bits in edm with CALCs ("<<", ">>" and "&" etc).  When I tried to use the 3 MSBs,

for instance when the status word is 0xe0000000, only

CALC\\\{(A>>31)&1}("Status PV")           seems to return "1"


but both (later within the same edm file):

CALC\\\{(A>>30)&1}("Same Status PV")

CALC\\\{(A>>29)&1}("Same Status PV")

seem to return "0".


It seems edm gets it as a negative number.


Am I using the CALCs wrongly?  Or should I avoid using the MSB bit?


Thank you very much, best regards,

Dehong



Replies:
Re: Trouble using ULONG in edm Andrew Johnson

Navigate by Date:
Prev: PCaPAC 2016 James Rezende Piton
Next: Re: Trouble using ULONG in edm Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: PCaPAC 2016 James Rezende Piton
Next: Re: Trouble using ULONG in edm Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·