record(stringin, "APC:B24:TM01:LOCATION") { field(VAL, "LKF24-0223") field(PINI, "YES") } record(longin, "APC:B24:TM01:CPLRCOUTWDS") { field(DESC, "Complex output words") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:COWCNT") } record(longin, "APC:B24:TM01:CPLRCINWDS") { field(DESC, "Complex input words") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:CIWCNT") } record(longin, "APC:B24:TM01:CPLRDOUTBITS") { field(DESC, "Digital output bits") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:DOBCNT") } record(longin, "APC:B24:TM01:CPLRDINBITS") { field(DESC, "Digital input bits") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:DIBCNT") } record(longin, "APC:B24:TM01:CPLRNOFCONN") { field(DESC, "Nth of Connection") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:NOFCONN") } record(longin, "APC:B24:TM01:CPLRNOFEXCP") { field(DESC, "Nth of Exception") field(SCAN, "1 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:NOFEXCP") } record(longin, "APC:B24:TM01:CPLRNOFPKTS") { field(DESC, "Number of Packets Sent") field(SCAN, "1 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:NOFPKTS") } record(longin, "APC:B24:TM01:CPLRNOFSIGS") { field(DESC, "Number of Signals of CPLR") field(SCAN, "Passive") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:NOFSIGS") } record(longin, "APC:B24:TM01:CPLROPTHRDID") { field(DESC, "Op thread ID") field(SCAN, "Passive") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:OPTHRDID") } record(mbbi, "APC:B24:TM01:CPLRREADY") { field(DESC, "Is Coupler Ready") field(SCAN, "1 second") field(PINI, "YES") field(PHAS, "2") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:CPLRRDY") field(ZRVL, "0") field(ONVL, "1") field(ZRST, "Not Ready") field(ONST, "Ready") field(ZRSV, "MAJOR") field(ONSV, "NO_ALARM") field(SHFT, "0") field(UNSV, "INVALID") field(FLNK, "APC:B24:TM01:CPLRREPROCCALC") } record(calcout, "APC:B24:TM01:CPLRREPROCCALC") { field(SCAN, "Passive") field(CALC, "A") field(INPA, "APC:B24:TM01:CPLRREADY") field(INPB, "APC:B24:TM01:CPLRREPROCCALC.VAL") field(OUT, "APC:B24:TM01:CPLRREPROCFOUT.SELN") field(FLNK, "APC:B24:TM01:CPLRREPROCFOUT") field(OCAL, "((A=1)&&(B#1))?1:0") field(VAL, "1") field(DESC, "Calc reprocess") field(OOPT, "Every Time") field(DOPT, "Use OCAL") field(PINI, "NO") } record(fanout, "APC:B24:TM01:CPLRREPROCFOUT") { field(DESC, "FANOUT Reproc") field(SCAN, "Passive") field(SELM, "Mask") field(LNK1, "APC:B24:TM01:OUTPUTREPROCEVT") field(PINI, "NO") field(SELN, "") } record(event, "APC:B24:TM01:OUTPUTREPROCEVT") { field(DESC, "Post event to reproc") field(SCAN, "Passive") field(VAL, "0") } record(mbbi, "APC:B24:TM01:CPLRLINKSTAT") { field(DESC, "Coupler MBT Link Stat") field(SCAN, "1 second") field(PINI, "YES") field(PHAS, "2") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:LINKSTAT") field(ZRVL, "0") field(ONVL, "1") field(TWVL, "2") field(THVL, "3") field(ZRST, "Link Down") field(ONST, "Link OK") field(TWST, "Connecting") field(THST, "Unsupported") field(SHFT, "0") field(UNSV, "INVALID") } record(stringin, "APC:B24:TM01:CPLRNAME") { field(DESC, "Name of Coupler") field(SCAN, "Passive") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:CPLRNAME") } record(stringin, "APC:B24:TM01:CPLRIPADDR") { field(DESC, "IPAddr of Coupler") field(SCAN, "Passive") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:CPLRIP") } record(stringin, "APC:B24:TM01:CPLRTLOSTCONN") { field(DESC, "Time of lost connection") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:TLSTCONN") } record(stringin, "APC:B24:TM01:CPLRTSETCONN") { field(DESC, "Time of set connection") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:TSETCONN") } record(stringin, "APC:B24:TM01:CPLRTLASTTRY") { field(DESC, "Time of last try connect") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:TLASTTRY") } record(stringin, "APC:B24:TM01:CPLRID") { field(DESC, "ID of Coupler") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:CPLRID") } record(stringin, "APC:B24:TM01:CPLROPTHRDNAME") { field(DESC, "Op Thread Name of Coupler") field(SCAN, "Passive") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:0:OPTHRDNM") } record(longin, "APC:B24:TM01:CPLRBTSLOT1") { field(DESC, "Bus Terminal Type of slot 1") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:1:BTTYPE") } record(longin, "APC:B24:TM01:CPLRBTSLOT2") { field(DESC, "Bus Terminal Type of slot 2") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:2:BTTYPE") } record(longin, "APC:B24:TM01:CPLRBTSLOT3") { field(DESC, "Bus Terminal Type of slot 3") field(SCAN, "10 second") field(PINI, "YES") field(DTYP, "Bk9000_Info") field(INP, "@bkhf-b024-tm01:3:BTTYPE") } #============================================================================== # # Abs: RTD module KL3222 template, customized for LCLS conventions # # Name: KL3222-lcls.template # # Macros: # # APC (All Purpose Controller) # First three fields of APC device name, for example: APC:LTU0:1 # (Numbering convention: Each set of I/O modules that share a single # controller is one unit. All PVs associated with this set of modules # should share this APC device name.) # # COUPLER Node name of coupler, for example: bkhf-ltu0-tm01 # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # D Type of device (string), for example: "RTD" # or device description, for example "50B1" # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # CH Channel number, from 1 to 4 # # ALIAS Device name, for example: QUAD:LTU0:110:TEMP # # SCAN Data acquisition rate in EPICS record SCAN format. If you are not using data # averaging, set this to "1 second". Otherwise, set it to your desired # data acquisition rate. It will set the scan rate for the low-level PVs. # The high-level PVs (ALIAS) still scan at "1 second". # # NSAM Number of samples to average in _AVG compress record. # Set to "1" if no averaging desired. # # ASG Access Security Group (used by RTDs for MPS) # #============================================================================== record(ai, "APC:B24:TM01:M1_CH1_TEST") { field(DESC,"RTD") field(SCAN, "1 second") field(INP, "APC:B24:TM01:M1_CH1_TEST_AVG PP MS") field(PREC, "3") field(EGU, "DegF") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(ASG, "") } # Optional averaging # If no averaging desired, # set 10 to "1" and .1 second to "1 second" #--------------------------------------- record(compress, "APC:B24:TM01:M1_CH1_TEST_AVG") { field(DESC, "Avg sig samples") field(INP, "APC:B24:TM01:M1_CH1_TEST_DATA NPP MS") field(ALG, "N to 1 Average") field(N, "10") field(NSAM, "1") field(PREC, "3") field(ASG, "") } record(compress, "APC:B24:TM01:M1_CH1_TEST_DATA") { field(DESC, "Samples to avg") field(INP, "APC:B24:TM01:M1_CH1_TEMP NPP MS") field(ALG, "Circular Buffer") field(NSAM, "10") field(PREC, "3") field(ASG, "") } #----------------------------------------- # Convert degC to degF # .VAL and .A used by generic KL3314 diagnostic display record(calc, "APC:B24:TM01:M1_CH1_TEMP") { field(DESC, "RTD") field(FLNK, "APC:B24:TM01:M1_CH1_TEST") field(CALC, "A*1.8+32") field(INPA, "APC:B24:TM01:M1_CH1_SIG NPP MS") field(EGU, "DegF") field(PREC, "3") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(FLNK, "APC:B24:TM01:M1_CH1_TEST_DATA") field(ASG, "") } record(ai, "APC:B24:TM01:M1_CH1_SIG") { field(DESC, "RTD Readback") field(SCAN, "1 second") field(DTYP, "Bk9000_KL3222") field(INP, "@bkhf-b024-tm01:1:R_ANA_IN_1") field(PREC, "1") field(HOPR, "500") field(HIHI, "500") field(HIGH, "500") field(LOW, "-100") field(LOLO, "-100") field(LOPR, "-100") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(EGU, "DegC") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(FLNK, "APC:B24:TM01:M1_CH1_TEMP") field(ASG, "") } #============================================================================== # # Abs: RTD module KL3222 template, customized for LCLS conventions # # Name: KL3222-lcls.template # # Macros: # # APC (All Purpose Controller) # First three fields of APC device name, for example: APC:LTU0:1 # (Numbering convention: Each set of I/O modules that share a single # controller is one unit. All PVs associated with this set of modules # should share this APC device name.) # # COUPLER Node name of coupler, for example: bkhf-ltu0-tm01 # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # D Type of device (string), for example: "RTD" # or device description, for example "50B1" # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # CH Channel number, from 1 to 4 # # ALIAS Device name, for example: QUAD:LTU0:110:TEMP # # SCAN Data acquisition rate in EPICS record SCAN format. If you are not using data # averaging, set this to "1 second". Otherwise, set it to your desired # data acquisition rate. It will set the scan rate for the low-level PVs. # The high-level PVs (ALIAS) still scan at "1 second". # # NSAM Number of samples to average in _AVG compress record. # Set to "1" if no averaging desired. # # ASG Access Security Group (used by RTDs for MPS) # #============================================================================== record(ai, "APC:B24:TM01:M1_CH2_TEST") { field(DESC,"RTD") field(SCAN, "1 second") field(INP, "APC:B24:TM01:M1_CH2_TEST_AVG PP MS") field(PREC, "3") field(EGU, "DegF") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(ASG, "") } # Optional averaging # If no averaging desired, # set 10 to "1" and .1 second to "1 second" #--------------------------------------- record(compress, "APC:B24:TM01:M1_CH2_TEST_AVG") { field(DESC, "Avg sig samples") field(INP, "APC:B24:TM01:M1_CH2_TEST_DATA NPP MS") field(ALG, "N to 1 Average") field(N, "10") field(NSAM, "1") field(PREC, "3") field(ASG, "") } record(compress, "APC:B24:TM01:M1_CH2_TEST_DATA") { field(DESC, "Samples to avg") field(INP, "APC:B24:TM01:M1_CH2_TEMP NPP MS") field(ALG, "Circular Buffer") field(NSAM, "10") field(PREC, "3") field(ASG, "") } #----------------------------------------- # Convert degC to degF # .VAL and .A used by generic KL3314 diagnostic display record(calc, "APC:B24:TM01:M1_CH2_TEMP") { field(DESC, "RTD") field(FLNK, "APC:B24:TM01:M1_CH2_TEST") field(CALC, "A*1.8+32") field(INPA, "APC:B24:TM01:M1_CH2_SIG NPP MS") field(EGU, "DegF") field(PREC, "3") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(FLNK, "APC:B24:TM01:M1_CH2_TEST_DATA") field(ASG, "") } record(ai, "APC:B24:TM01:M1_CH2_SIG") { field(DESC, "RTD Readback") field(SCAN, "1 second") field(DTYP, "Bk9000_KL3222") field(INP, "@bkhf-b024-tm01:1:R_ANA_IN_2") field(PREC, "1") field(HOPR, "500") field(HIHI, "500") field(HIGH, "500") field(LOW, "-100") field(LOLO, "-100") field(LOPR, "-100") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(EGU, "DegC") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(FLNK, "APC:B24:TM01:M1_CH2_TEMP") field(ASG, "") } #============================================================================== # # Abs: Thermocouple module KL3314 template, customized for LCLS conventions # # Name: KL3314-lcls.template # # Macros: # # APC (All Purpose Controller) # First three fields of APC device name, for example: APC:LTU0:1 # (Numbering convention: Each set of I/O modules that share a single # controller is one unit. All PVs associated with this set of modules # should share this APC device name.) # # COUPLER Node name of coupler, for example: bkhf-ltu0-tm01 # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # D Type of device (string), for example: "Thermocouple" # or device description, for example "50B1" # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # CH Channel number, from 1 to 4 # # ALIAS Device name, for example: QUAD:LTU0:110:TEMP # # SCAN Data acquisition rate in EPICS record SCAN format. If you are not using data # averaging, set this to "1 second". Otherwise, set it to your desired # data acquisition rate. It will set the scan rate for the low-level PVs. # The high-level PVs (ALIAS) still scan at "1 second". # # NSAM Number of samples to average in _AVG compress record. # Set to "1" if no averaging desired. # #============================================================================== record(ai, "APC:B24:TM01:M2_CH1_TEST") { field(DESC,"Thermocouple") field(SCAN, "1 second") field(INP, "APC:B24:TM01:M2_CH1_TEST_AVG PP MS") field(PREC, "1") field(EGU, "DegF") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") } # Optional averaging # If no averaging desired, # set 20 to "1" and .1 second to "1 second" #--------------------------------------- record(compress, "APC:B24:TM01:M2_CH1_TEST_AVG") { field(DESC, "Avg sig samples") field(INP, "APC:B24:TM01:M2_CH1_TEST_DATA NPP MS") field(ALG, "N to 1 Average") field(N, "20") field(NSAM, "1") field(PREC, "1") } record(compress, "APC:B24:TM01:M2_CH1_TEST_DATA") { field(DESC, "Samples to avg") field(INP, "APC:B24:TM01:M2_CH1_TEMP NPP MS") field(ALG, "Circular Buffer") field(NSAM, "20") field(PREC, "1") } #----------------------------------------- # Convert degC to degF # .VAL and .A used by generic KL3314 diagnostic display record(calc, "APC:B24:TM01:M2_CH1_TEMP") { field(DESC, "Thermocouple") field(CALC, "A*1.8+32") field(INPA, "APC:B24:TM01:M2_CH1_SIG NPP MS") field(EGU, "DegF") field(PREC, "1") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(FLNK, "APC:B24:TM01:M2_CH1_TEST_DATA") } record(ai, "APC:B24:TM01:M2_CH1_SIG") { field(DESC, "Thermocouple Readback") field(SCAN, ".1 second") field(DTYP, "Bk9000_KL3314") field(INP, "@bkhf-b024-tm01:2:R_ANA_IN_1") field(PREC, "1") field(HOPR, "500") field(HIHI, "500") field(HIGH, "500") field(LOW, "-100") field(LOLO, "-100") field(LOPR, "-100") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(EGU, "DegC") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(FLNK, "APC:B24:TM01:M2_CH1_TEMP") } #============================================================================== # # Abs: Thermocouple module KL3314 template, customized for LCLS conventions # # Name: KL3314-lcls.template # # Macros: # # APC (All Purpose Controller) # First three fields of APC device name, for example: APC:LTU0:1 # (Numbering convention: Each set of I/O modules that share a single # controller is one unit. All PVs associated with this set of modules # should share this APC device name.) # # COUPLER Node name of coupler, for example: bkhf-ltu0-tm01 # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # D Type of device (string), for example: "Thermocouple" # or device description, for example "50B1" # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # CH Channel number, from 1 to 4 # # ALIAS Device name, for example: QUAD:LTU0:110:TEMP # # SCAN Data acquisition rate in EPICS record SCAN format. If you are not using data # averaging, set this to "1 second". Otherwise, set it to your desired # data acquisition rate. It will set the scan rate for the low-level PVs. # The high-level PVs (ALIAS) still scan at "1 second". # # NSAM Number of samples to average in _AVG compress record. # Set to "1" if no averaging desired. # #============================================================================== record(ai, "APC:B24:TM01:M2_CH2_TEST") { field(DESC,"Thermocouple") field(SCAN, "1 second") field(INP, "APC:B24:TM01:M2_CH2_TEST_AVG PP MS") field(PREC, "1") field(EGU, "DegF") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") } # Optional averaging # If no averaging desired, # set 20 to "1" and .1 second to "1 second" #--------------------------------------- record(compress, "APC:B24:TM01:M2_CH2_TEST_AVG") { field(DESC, "Avg sig samples") field(INP, "APC:B24:TM01:M2_CH2_TEST_DATA NPP MS") field(ALG, "N to 1 Average") field(N, "20") field(NSAM, "1") field(PREC, "1") } record(compress, "APC:B24:TM01:M2_CH2_TEST_DATA") { field(DESC, "Samples to avg") field(INP, "APC:B24:TM01:M2_CH2_TEMP NPP MS") field(ALG, "Circular Buffer") field(NSAM, "20") field(PREC, "1") } #----------------------------------------- # Convert degC to degF # .VAL and .A used by generic KL3314 diagnostic display record(calc, "APC:B24:TM01:M2_CH2_TEMP") { field(DESC, "Thermocouple") field(CALC, "A*1.8+32") field(INPA, "APC:B24:TM01:M2_CH2_SIG NPP MS") field(EGU, "DegF") field(PREC, "1") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(FLNK, "APC:B24:TM01:M2_CH2_TEST_DATA") } record(ai, "APC:B24:TM01:M2_CH2_SIG") { field(DESC, "Thermocouple Readback") field(SCAN, ".1 second") field(DTYP, "Bk9000_KL3314") field(INP, "@bkhf-b024-tm01:2:R_ANA_IN_2") field(PREC, "1") field(HOPR, "500") field(HIHI, "500") field(HIGH, "500") field(LOW, "-100") field(LOLO, "-100") field(LOPR, "-100") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(EGU, "DegC") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(FLNK, "APC:B24:TM01:M2_CH2_TEMP") } #============================================================================== # # Abs: Thermocouple module KL3314 template, customized for LCLS conventions # # Name: KL3314-lcls.template # # Macros: # # APC (All Purpose Controller) # First three fields of APC device name, for example: APC:LTU0:1 # (Numbering convention: Each set of I/O modules that share a single # controller is one unit. All PVs associated with this set of modules # should share this APC device name.) # # COUPLER Node name of coupler, for example: bkhf-ltu0-tm01 # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # D Type of device (string), for example: "Thermocouple" # or device description, for example "50B1" # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # CH Channel number, from 1 to 4 # # ALIAS Device name, for example: QUAD:LTU0:110:TEMP # # SCAN Data acquisition rate in EPICS record SCAN format. If you are not using data # averaging, set this to "1 second". Otherwise, set it to your desired # data acquisition rate. It will set the scan rate for the low-level PVs. # The high-level PVs (ALIAS) still scan at "1 second". # # NSAM Number of samples to average in _AVG compress record. # Set to "1" if no averaging desired. # #============================================================================== record(ai, "APC:B24:TM01:M2_CH3_TEST") { field(DESC,"Thermocouple") field(SCAN, "1 second") field(INP, "APC:B24:TM01:M2_CH3_TEST_AVG PP MS") field(PREC, "1") field(EGU, "DegF") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") } # Optional averaging # If no averaging desired, # set 20 to "1" and .1 second to "1 second" #--------------------------------------- record(compress, "APC:B24:TM01:M2_CH3_TEST_AVG") { field(DESC, "Avg sig samples") field(INP, "APC:B24:TM01:M2_CH3_TEST_DATA NPP MS") field(ALG, "N to 1 Average") field(N, "20") field(NSAM, "1") field(PREC, "1") } record(compress, "APC:B24:TM01:M2_CH3_TEST_DATA") { field(DESC, "Samples to avg") field(INP, "APC:B24:TM01:M2_CH3_TEMP NPP MS") field(ALG, "Circular Buffer") field(NSAM, "20") field(PREC, "1") } #----------------------------------------- # Convert degC to degF # .VAL and .A used by generic KL3314 diagnostic display record(calc, "APC:B24:TM01:M2_CH3_TEMP") { field(DESC, "Thermocouple") field(CALC, "A*1.8+32") field(INPA, "APC:B24:TM01:M2_CH3_SIG NPP MS") field(EGU, "DegF") field(PREC, "1") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(FLNK, "APC:B24:TM01:M2_CH3_TEST_DATA") } record(ai, "APC:B24:TM01:M2_CH3_SIG") { field(DESC, "Thermocouple Readback") field(SCAN, ".1 second") field(DTYP, "Bk9000_KL3314") field(INP, "@bkhf-b024-tm01:2:R_ANA_IN_3") field(PREC, "1") field(HOPR, "500") field(HIHI, "500") field(HIGH, "500") field(LOW, "-100") field(LOLO, "-100") field(LOPR, "-100") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(EGU, "DegC") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(FLNK, "APC:B24:TM01:M2_CH3_TEMP") } #============================================================================== # # Abs: Thermocouple module KL3314 template, customized for LCLS conventions # # Name: KL3314-lcls.template # # Macros: # # APC (All Purpose Controller) # First three fields of APC device name, for example: APC:LTU0:1 # (Numbering convention: Each set of I/O modules that share a single # controller is one unit. All PVs associated with this set of modules # should share this APC device name.) # # COUPLER Node name of coupler, for example: bkhf-ltu0-tm01 # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # D Type of device (string), for example: "Thermocouple" # or device description, for example "50B1" # # SLOT Slot number of I/O module. Slot numbers increment from left to right. # The first module to the right of the coupler is in slot 1. # # CH Channel number, from 1 to 4 # # ALIAS Device name, for example: QUAD:LTU0:110:TEMP # # SCAN Data acquisition rate in EPICS record SCAN format. If you are not using data # averaging, set this to "1 second". Otherwise, set it to your desired # data acquisition rate. It will set the scan rate for the low-level PVs. # The high-level PVs (ALIAS) still scan at "1 second". # # NSAM Number of samples to average in _AVG compress record. # Set to "1" if no averaging desired. # #============================================================================== record(ai, "APC:B24:TM01:M2_CH4_TEST") { field(DESC,"Thermocouple") field(SCAN, "1 second") field(INP, "APC:B24:TM01:M2_CH4_TEST_AVG PP MS") field(PREC, "1") field(EGU, "DegF") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") } # Optional averaging # If no averaging desired, # set 20 to "1" and .1 second to "1 second" #--------------------------------------- record(compress, "APC:B24:TM01:M2_CH4_TEST_AVG") { field(DESC, "Avg sig samples") field(INP, "APC:B24:TM01:M2_CH4_TEST_DATA NPP MS") field(ALG, "N to 1 Average") field(N, "20") field(NSAM, "1") field(PREC, "1") } record(compress, "APC:B24:TM01:M2_CH4_TEST_DATA") { field(DESC, "Samples to avg") field(INP, "APC:B24:TM01:M2_CH4_TEMP NPP MS") field(ALG, "Circular Buffer") field(NSAM, "20") field(PREC, "1") } #----------------------------------------- # Convert degC to degF # .VAL and .A used by generic KL3314 diagnostic display record(calc, "APC:B24:TM01:M2_CH4_TEMP") { field(DESC, "Thermocouple") field(CALC, "A*1.8+32") field(INPA, "APC:B24:TM01:M2_CH4_SIG NPP MS") field(EGU, "DegF") field(PREC, "1") field(HOPR, "150") field(LOPR, "50") field(HIHI, "0") field(LOLO, "0") field(HIGH, "0") field(LOW, "0") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(FLNK, "APC:B24:TM01:M2_CH4_TEST_DATA") } record(ai, "APC:B24:TM01:M2_CH4_SIG") { field(DESC, "Thermocouple Readback") field(SCAN, ".1 second") field(DTYP, "Bk9000_KL3314") field(INP, "@bkhf-b024-tm01:2:R_ANA_IN_4") field(PREC, "1") field(HOPR, "500") field(HIHI, "500") field(HIGH, "500") field(LOW, "-100") field(LOLO, "-100") field(LOPR, "-100") field(HYST, ".1") field(ADEL, "0.001") field(MDEL, "0.001") field(EGU, "DegC") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(FLNK, "APC:B24:TM01:M2_CH4_TEMP") } # to be used with analog-conversion-lcls.template record(ai, "APC:B24:TM01:M3_CH1_SIG") { field(DESC, "Analog Ch1 Readback") field(SCAN, "1 second") field(DTYP, "Bk9000_KL3102") field(INP, "@bkhf-b024-tm01:3:R_ANA_IN_1") field(PREC, "0") field(ADEL, "0") field(EGUF, "10") field(EGUL, "-10") field(HIGH, "10") field(HIHI, "10") field(HOPR, "10") field(HYST, "0") field(LOLO, "-10") field(LOPR, "-10") field(LOW, "-10") field(MDEL, "0") field(SMOO, "0") field(EGU, "V") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(LINR, "LINEAR") field(FLNK, "APC:B24:TM01:M3_CH1_EGU") } # to be used with analog-conversion-lcls.template record(ai, "APC:B24:TM01:M3_CH2_SIG") { field(DESC, "Analog Ch2 Readback") field(SCAN, "1 second") field(DTYP, "Bk9000_KL3102") field(INP, "@bkhf-b024-tm01:3:R_ANA_IN_2") field(PREC, "0") field(ADEL, "0") field(EGUF, "10") field(EGUL, "-10") field(HIGH, "10") field(HIHI, "10") field(HOPR, "10") field(HYST, "0") field(LOLO, "-10") field(LOPR, "-10") field(LOW, "-10") field(MDEL, "0") field(SMOO, "0") field(EGU, "V") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(LINR, "LINEAR") field(FLNK, "APC:B24:TM01:M3_CH2_EGU") } record(ai, "APC:B24:TM01:M3_CH1_SPARE") { field(DESC, "") field(DTYP, "Soft Channel") field(INP, "APC:B24:TM01:M3_CH1_EGU NPP MS") field(PREC, "2") field(EGU, " ") field(HOPR, "") field(LOPR, "") field(HIHI, "") field(LOLO, "") field(HIGH, "") field(LOW, "") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, "0.1") field(ADEL, "0.01") field(MDEL, "0.01") } # Subroutine record that performs calculation for # these analog signal types: # 1 = linear analog in # 2 = log analog in # 3 = phase mixer record(sub, "APC:B24:TM01:M3_CH1_EGU") { field(DESC, "") field(INAM, "InitAnalogCalc") field(SNAM, "AnalogCalc") #Signal type (see comments above) field(A, "2") #Raw signal field(INPB, "APC:B24:TM01:M3_CH1_SIG NPP MS") field(C, "0") field(D, "1.0") #Associated device, used by phase mixer field(INPE, "") #1/-1 determined by ASSOC, used by phase mixer field(F, "") field(PREC, "2") field(EGU, " ") field(HOPR, "") field(LOPR, "") field(HIHI, "") field(LOLO, "") field(HIGH, "") field(LOW, "") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, "0.1") field(ADEL, "0.01") field(MDEL, "0.01") field(FLNK, "APC:B24:TM01:M3_CH1_SPARE") } record(ai, "APC:B24:TM01:M3_CH2_SPARE") { field(DESC, "") field(DTYP, "Soft Channel") field(INP, "APC:B24:TM01:M3_CH2_EGU NPP MS") field(PREC, "2") field(EGU, " ") field(HOPR, "") field(LOPR, "") field(HIHI, "") field(LOLO, "") field(HIGH, "") field(LOW, "") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, "0.1") field(ADEL, "0.01") field(MDEL, "0.01") } # Subroutine record that performs calculation for # these analog signal types: # 1 = linear analog in # 2 = log analog in # 3 = phase mixer record(sub, "APC:B24:TM01:M3_CH2_EGU") { field(DESC, "") field(INAM, "InitAnalogCalc") field(SNAM, "AnalogCalc") #Signal type (see comments above) field(A, "2") #Raw signal field(INPB, "APC:B24:TM01:M3_CH2_SIG NPP MS") field(C, "0") field(D, "1.0") #Associated device, used by phase mixer field(INPE, "") #1/-1 determined by ASSOC, used by phase mixer field(F, "") field(PREC, "2") field(EGU, " ") field(HOPR, "") field(LOPR, "") field(HIHI, "") field(LOLO, "") field(HIGH, "") field(LOW, "") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(HYST, "0.1") field(ADEL, "0.01") field(MDEL, "0.01") field(FLNK, "APC:B24:TM01:M3_CH2_SPARE") }