G0 Cryogenic Target Control Epics Database March 2001 In EPICS, devices are monitored and controlled by database records. Each record consists of many fields that individually can be monitored or changed. Most used fields in database records: .VAL value of record (default) .PREC display precision (integer 0-10) .NAME record Name (ascii) .HOPR display upper limit .LOPR display lower limit .SMOO Smoothing Factor {val = newval*(1-smoo) + oldval*smoo} .SIMM Simulation mode .SVAL Simulation mode value .DESC Description of record or record type .CALC algorithm used in a calculation .INAM Initializing subroutine used by a subroutine record .SNAM subroutine used by a subroutine record Analog Input record that are connected to hardware will depend on the address mapping to convert the analog signal to digital counts (ie. 5v = 65535). .DTYP Device Driver Name (ie IP_ADC ) .INP Hardware address designation #Cc Ss @as,ch,pol,inp,vol where c = carrier (0-2) s = slot # (0-3) as = slot char. (A-D) ch = chan # (1-8) pol = polariy (0 = unipolar, 1= bipolar) inp = input (0=differential,1="+",2="-") vol = max volt .LINR Conversion Type (NO CONVERSION,LINEAR) .EGUF Engineering Units Full .EGUL Engineering Units Low .ESLO Slope for Linear Conversion eslo = (eguf - egul)/8192; /* calculated only once */ val = (rval + roff)* eslo + egul Subroutine and Calculation records have additional value fields, that can be used as input values for the calc record and either input/output or intermediate values in subroutine records. .A - .L Alarms are generated in the following manner.... high alarm=hsv && (val >= high||((lalm==high)&&(val >= high-hyst))) hihi alarm=hhsv && (val >= hihi||((lalm==hihi)&&(val >= hihi-hyst))) low alarm=lsv && (val <= low ||((lalm==low )&&(val <= low +hyst))) lolo alarm=llsv && (val <= lolo||((lalm==lolo)&&(val <= lolo+hyst))) lalm is the alarm status during the last processing cycle. .HIHI High-High Alarm limit .HIGH High Alarm limit .LOLO Low Low Alarm limit .LOW Low Alarm limit The severity can be (NO_ALARM, MAJOR, MINOR, INVALID) where NO_ALARM is displayed as GREEN, MAJOR as RED, MINOR as YELLOW and INVALID as WHITE. .HHSV High-High Alarm severity .HSV High Alarm severity .LLSV Low Low Alarm severity .LSV Low Alarm severity Digital Valve Control O.VAL Valve Open switch C.VAL Valve Close switch .VAL Valve position (-1 open,.5 close,-.5 midway,0 power failure)