# # # record( bi, "$(PREFIX)$(PORT):$(ADDR):status" ) { field( DESC, "Status of all HV pins") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/STATUS//HVA") field( SCAN, "$(SCAN)") field( ZNAM, "OFF" ) field( ONAM, "ON" ) } record( bi, "$(PREFIX)$(PORT):$(ADDR):jvt" ) { field( DESC, "Top JAM HV") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/STATUS//JVT") field( SCAN, "$(SCAN)") field( ZNAM, "OFF" ) field( ONAM, "ON" ) } record( bi, "$(PREFIX)$(PORT):$(ADDR):jvb" ) { field( DESC, "Bottom JAM HV") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/STATUS//JVB") field( SCAN, "$(SCAN)") field( ZNAM, "OFF" ) field( ONAM, "ON" ) } record( bi, "$(PREFIX)$(PORT):$(ADDR):jva" ) { field( DESC, "All JAM HV pins") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/STATUS//JVA") field( SCAN, "$(SCAN)") field( ZNAM, "OFF" ) field( ONAM, "ON" ) } record( ai, "$(PREFIX)$(PORT):$(ADDR):mvb") { field( DESC, "Medium Voltage Bottom Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/MVB") field( SCAN, "$(SCAN)") field( PREC, "2") } record( ai, "$(PREFIX)$(PORT):$(ADDR):mvt") { field( DESC, "Medium Voltage Bottom Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/MVT") field( SCAN, "$(SCAN)") field( PREC, "2") } record( ai, "$(PREFIX)$(PORT):$(ADDR):dyn") { field( DESC, "1st Dynode Voltage Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/DYN") field( SCAN, "$(SCAN)") field( PREC, "2") } record( ai, "$(PREFIX)$(PORT):$(ADDR):vmon") { field( DESC, "Cathode Voltage Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/CAT") field( SCAN, "$(SCAN)") field( PREC, "2") field( LOPR, "0") field( HOPR, "2000") } record( ai, "$(PREFIX)$(PORT):$(ADDR):dac") { field( DESC, "DAC Output Voltage Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/DAC") field( SCAN, "$(SCAN)") field( PREC, "2") } record( ai, "$(PREFIX)$(PORT):$(ADDR):temp") { field( DESC, "Temperature sensor Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/TEM") field( SCAN, "$(SCAN)") field( PREC, "2") } record( ai, "$(PREFIX)$(PORT):$(ADDR):imon") { field( DESC, "Measured Current Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/CUR") field( SCAN, "$(SCAN)") field( PREC, "3") } record( ai, "$(PREFIX)$(PORT):$(ADDR):v0set_rbv") { field( DESC, "Voltage Setpoint Readback") field( DTYP, "BaseIU") field( INP, "@$(PORT)/$(ADDR)/ADC/SET") field( SCAN, "$(SCAN)") field( PREC, "3") } record( bo, "$(PREFIX)$(PORT):$(ADDR):pwonoff" ) { field( DESC, "Set status of all HV pins") field( DTYP, "BaseIU") field( OUT, "@$(PORT)/$(ADDR)/STATUS//HVA") field( SCAN, "Passive") field( ZNAM, "OFF" ) field( ONAM, "ON" ) field( PINI, "NO") field( SDIS, "$(PREFIX)$(PORT):$(ADDR):pwonoff_sync.PACT" ) field( DISV, "1" ) } record( ao, "$(PREFIX)$(PORT):$(ADDR):v0set") { field( DESC, "Cathode Voltage Setpoint") field( DTYP, "BaseIU") field( OUT, "@$(PORT)/$(ADDR)/ADC/SET") field( SCAN, "Passive") field( PREC, "2") field( PINI, "NO") field( DRVH, "2000" ) field( SDIS, "$(PREFIX)$(PORT):$(ADDR):v0set_sync.PACT" ) field( DISV, "1" ) } record( bo, "$(PREFIX)$(PORT):$(ADDR):pwonoff_sync" ) { field(DESC, "On/Off sync") field(SCAN, "Passive") field(DOL , "$(PREFIX)$(PORT):$(ADDR):status CPP" ) field(OUT , "$(PREFIX)$(PORT):$(ADDR):pwonoff PP" ) field(OMSL, "closed_loop") field(DISV, "1") } record(calcout, "$(PREFIX)$(PORT):$(ADDR):pwonoff_to") { field(DESC, "timeout for SP sync") field(VAL , "0") field(PINI, "NO") field(SCAN, "5 second") field( OUT, "$(PREFIX)$(PORT):$(ADDR):pwonoff_sync.DISA") field(OOPT, "Transition To Non-zero") field(DOPT, "Use OCAL") field(CALC, "1") field(OCAL, "1") field(ODLY, "60") } record( ao, "$(PREFIX)$(PORT):$(ADDR):v0set_sync" ) { field(DESC, "Cathode Voltage Setpoint sync") field(SCAN, "Passive") field(PREC, "2") field(DOL , "$(PREFIX)$(PORT):$(ADDR):v0set_rbv CPP" ) field(OUT , "$(PREFIX)$(PORT):$(ADDR):v0set PP" ) field(OMSL, "closed_loop") field(DISV, "1") } record(calcout, "$(PREFIX)$(PORT):$(ADDR):v0set_to") { field(DESC, "timeout for SP sync") field(VAL , "0") field(PINI, "NO") field(SCAN, "5 second") field( OUT, "$(PREFIX)$(PORT):$(ADDR):v0set_sync.DISA") field(OOPT, "Transition To Non-zero") field(DOPT, "Use OCAL") field(CALC, "1") field(OCAL, "1") field(ODLY, "60") }