EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  <20012002  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  1997  1998  1999  2000  <20012002  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: Hex constant as input to longin record?
From: Russell Kackley <[email protected]>
To: [email protected]
Date: Tue, 17 Jul 2001 09:25:50 -1000 (HST)
Section 2.3 (on pg. 15) of the EPICS Record Reference Manual (R3.13)
states: "A constant ... can be an integer value in whatever format (hex,
decimal, etc.) ...". I would like to use a hex constant as input to a
longin record, but can't get it to work. Has anyone used hex constants
successfully? We are using EPICS R3.13.4.

Here is the record description:

record(longin,"test:test") {
    field(DESC,"long input 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(INP,"0x0001")
    field(EGU,"volts")
    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")
}

Here is the record in the IOC:

-> dbpr "test:test",5
ACKS: NO_ALARM      ACKT: YES           ADEL: 0             ALST: 0             
ASG:                ASP: 0x00000000     BKPT: 0x00          
DESC: long input record                 DISA: 0             DISP: 0             
DISS: NO_ALARM      DISV: 1             DPVT: 0x00000000    DSET:
0x00319dc8    
DTYP: Soft Channel  EGU: volts          EVNT: 0             FLNK:CONSTANT
0     
HHSV: NO_ALARM      HIGH: 0             HIHI: 0             HOPR: 0             
HSV: NO_ALARM       HYST: 0             INP:CA_LINK 0x0001 NPP NMS              
LALM: 0             LCNT: 0             LLSV: NO_ALARM      LOLO: 0             
LOPR: 0             LOW: 0              LSET: 0x002f9ea0    LSV: NO_ALARM       
MDEL: 0             MLIS: 0x000000000000000000000000        
MLOK: 0x002f9f3000000000                MLST: 0             NAME:
test:test     
NSEV: NO_ALARM      NSTA: NO_ALARM      PACT: 0             PHAS: 0             
PINI: NO            PPN: 0x00000000     PPNN: 0x00000000    PRIO: LOW           
PROC: 0             PUTF: 0             RDES: 0x002e1460    RPRO: 0             
RSET: 0x00319744    SCAN: Passive       SDIS:CONSTANT 0.000000000000000e+00     
SEVR: INVALID       SIML:CONSTANT 0.000000000000000e+00     SIMM: NO            
SIMS: NO_ALARM      SIOL:CONSTANT 0.000000000000000e+00     SPVT:0x00000000    
STAT: UDF           SVAL: 0             TIME: 0x0000000000000000                
TPRO: 0             TSE: 0              TSEL:CONSTANT       UDF: 1              
VAL: 0              

Note that EPICS thinks the INP field is a CA_LINK, not a CONSTANT. Any
help or advice would be appreciated. Thanks.

-- 
Russell Kackley
Joint Astronomy Centre
Hilo, Hawaii



Navigate by Date:
Prev: Re: writing to non VAL fields Andrew Johnson
Next: Re: Hex constant as input to longin record? Werner Portmann
Index: 1994  1995  1996  1997  1998  1999  2000  <20012002  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: writing to non VAL fields Andrew Johnson
Next: Re: Hex constant as input to longin record? Werner Portmann
Index: 1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024