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
|