#================================== #---------------------------------- # resTempLinear.template: # # Records for RTD not requiring # a breakpoint table. # # First use case is PT1000 for # LCLS2 Linac rack water # temperature monitoring. # Not part of interlock system # See resTempPT1000.substitutions #---------------------------------- #================================== # Integer readback for leep interface. # Intended for internal use only. record(longin, "$(PREF,recursive)$(SIG,recursive)_REG_V_") { field(DESC, "Raw $(SIG,recursive) RTD voltage") field(DTYP, "FEED Register Read") field(INP , "@name=$(NAME,undefined) reg=$(REG,recursive)_$(INDXB,recursive)") info(feed:info:input, "$(PREF,recursive)$(SIG,recursive)_REG_V_") } record(ai, "$(PREF,recursive)$(SIG,recursive)_V") { field(DESC, "$(SIG,recursive) RTD voltage") field(DTYP, "FEED Register Read") field(SCAN, "1 second") field(EGU, "V") field(ASLO, "5.3e-08") field(PREC, "4") field(LOLO, "0") field(LLSV, "MAJOR") field(HIHI, "0.416") field(HHSV, "MAJOR") field(INP , "@name=$(NAME,undefined) reg=$(REG,recursive)_$(INDXB,recursive)") info(feed:info:setting, "$(PREF,recursive)$(SIG,recursive)_V") field(FLNK, "$(PREF,recursive)$(SIG,recursive)_CALC") } record(calc,"$(PREF,recursive)$(SIG,recursive)_CALC") { field(DESC, "Calc $(SIG,recursive) temp") field(CALC, "E+(-B+A*1000*C/D)") field(INPA, "0.2577") field(INPB, "257.8") field(INPC, "$(PREF,recursive)$(SIG,recursive)_V MS") field(INPD, "$(PREF,recursive)$(SIG,recursive)_I_RBV MS") field(INPE, "$(PREF,recursive)$(SIG,recursive)_OFF MS") field(INPF, "") field(EGU, "DegC") field(FLNK, "$(PREF,recursive)$(SIG,recursive)") } record(ai, "$(PREF,recursive)$(SIG,recursive)") { field(DESC, "Interlock live reading") field(VAL, "0") field(INP, "$(PREF,recursive)$(SIG,recursive)_CALC MS") field(EGU, "DegC") field(PINI, "YES") } record(ai, "$(PREF,recursive)$(SIG,recursive)_OFF") { field(DESC, "Temperature offset") field(VAL, "0") field(EGU, "DegC") field(PINI, "YES") info(autosaveFields, "VAL") } # TODO: if excitation current should be fixed # set closed_loop/DOL and remove autosave record(ao, "$(PREF,recursive)$(SIG,recursive)_I") { field(DESC, "$(SIG,recursive) RTD excitation") field(DTYP, "FEED Register Write") field(EGU, "mA") field(ASLO, "7.62939453125e-05") field(PREC, "2") field(OMSL, "supervisory") field(VAL, "0.3") field(DRVL, "0") field(DRVH, "4.99") field(PINI, "YES") field(OUT , "@name=$(NAME,undefined) reg=ilock_dsp_excite_current_$(INDXA,recursive)_$(INDXB,recursive)") info(feed:info:setting, "$(PREF,recursive)$(SIG,recursive)_I") info(autosaveFields, "VAL") } record(ai, "$(PREF,recursive)$(SIG,recursive)_I_RBV") { field(DESC, "$(SIG,recursive) RTD excitation readback") field(DTYP, "FEED Register Read") field(SCAN, "1 second") field(EGU, "mA") field(ASLO, "7.62939453125e-05") field(PREC, "2") field(LOLO, "0.28") field(LLSV, "MAJOR") field(HIHI, "0.32") field(HHSV, "MAJOR") field(INP , "@name=$(NAME,undefined) reg=ilock_dsp_excite_current_$(INDXA,recursive)_$(INDXB,recursive)") info(feed:info:setting, "$(PREF,recursive)$(SIG,recursive)_I_RBV") }