# # # record( bi, "$(DETch):enable") { field( DESC, "Channel enabled in GUIes") field( SCAN, "Passive") field( ZNAM, "Disabled") field( ONAM, "Enabled") field( PINI, "NO") field( VAL, "1") } record( bi, "$(DETch):status" ) { field(DESC, "Status of all HV pins") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):status CPP MS") field(ZNAM, "OFF" ) field(ONAM, "ON" ) } record( bi, "$(DETch):jvt" ) { field(DESC, "Top JAM HV") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):jvt CPP MS") field(ZNAM, "OFF" ) field(ONAM, "ON" ) } record( bi, "$(DETch):jvb" ) { field(DESC, "Bottom JAM HV") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):jvb CPP MS") field(ZNAM, "OFF" ) field(ONAM, "ON" ) } record( bi, "$(DETch):jva" ) { field(DESC, "All JAM HV pins") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):jva CPP MS") field(ZNAM, "OFF" ) field(ONAM, "ON" ) } record( ai, "$(DETch):mvb") { field(DESC, "Medium Voltage Bottom Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):mvb CPP MS") field(PREC, "2") } record( ai, "$(DETch):mvt") { field( DESC, "Medium Voltage Bottom Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):mvt CPP MS") field(PREC, "2") } record( ai, "$(DETch):dyn") { field(DESC, "1st Dynode Voltage Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):dyn CPP MS") field(PREC, "2") } record( ai, "$(DETch):vmon") { field(DESC, "Cathode Voltage Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):vmon CPP MS") field(LOPR, "0") field(HOPR, "2000") field(PREC, "2") } record( ai, "$(DETch):dac") { field(DESC, "DAC Output Voltage Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):dac CPP MS") field(PREC, "2") } record( ai, "$(DETch):temp") { field(DESC, "Temperature sensor Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):temp CPP MS") field(PREC, "2") } record( ai, "$(DETch):imon") { field(DESC, "Measured Current Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):imon CPP MS") field(PREC, "3") } record( ai, "$(DETch):v0set_rbv") { field( DESC, "Voltage Setpoint Readback") field(SCAN, "Passive") field(PINI, "YES") field(UDF, "0") field(INP, "$(PREF)$(PORT):$(ADDR):v0set_rbv CPP MS") field( PREC, "3") } record( bo, "$(DETch):pwonoff" ) { field(DESC, "Set status of all HV pins") field(SCAN, "Passive") field(UDF, "0") field(OUT, "$(PREF)$(PORT):$(ADDR):pwonoff PP") field(ZNAM, "OFF" ) field(ONAM, "ON" ) field(PINI, "NO") field(SDIS, "$(DETch):pwonoff_sync.PACT" ) field(DISV, "1" ) } record( ao, "$(DETch):v0set") { field(DESC, "Cathode Voltage Setpoint") field(SCAN, "Passive") field(UDF, "0") field(OUT, "$(PREF)$(PORT):$(ADDR):v0set PP") field(PREC, "2") field(DRVH, "2000") field(EGU , "V") field(SDIS, "$(DETch):v0set_sync.PACT" ) field(DISV, "1" ) } record( bo, "$(DETch):pwonoff_sync" ) { field(DESC, "On/Off sync") field(SCAN, "Passive") field(DOL , "$(DETch):status CPP" ) field(OUT , "$(DETch):pwonoff PP" ) field(OMSL, "closed_loop") field(DISV, "1") } record(calcout, "$(DETch):pwonoff_to") { field(DESC, "timeout for switch sync") field(VAL , "0") field(PINI, "NO") field(SCAN, "5 second") field( OUT, "$(DETch):pwonoff_sync.DISA") field(OOPT, "Transition To Non-zero") field(DOPT, "Use OCAL") field(CALC, "1") field(OCAL, "1") field(ODLY, "60") } record( ao, "$(DETch):v0set_sync" ) { field(DESC, "Cathode Voltage Setpoint sync") field(SCAN, "Passive") field(PREC, "2") field(DOL , "$(DETch):v0set_rbv CPP" ) field(OUT , "$(DETch):v0set PP" ) field(OMSL, "closed_loop") field(DISV, "1") } record(calcout, "$(DETch):v0set_to") { field(DESC, "timeout for SP sync") field(VAL , "0") field(PINI, "NO") field(SCAN, "5 second") field( OUT, "$(DETch):v0set_sync.DISA") field(OOPT, "Transition To Non-zero") field(DOPT, "Use OCAL") field(CALC, "1") field(OCAL, "1") field(ODLY, "60") }