# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0110:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0110:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0110:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0110:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0110:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0110:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0110:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0110:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0110:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0120:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0120:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0120:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0120:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0120:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0120:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0120:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0120:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0120:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0130:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0130:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0130:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0130:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0130:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0130:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0130:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0130:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0130:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0140:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0140:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0140:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0140:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0140:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0140:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0140:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0140:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0140:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0150:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0150:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0150:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0150:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0150:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0150:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0150:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0150:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0150:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0160:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0160:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0160:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0160:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0160:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0160:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0160:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0160:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0160:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0170:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0170:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0170:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0170:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0170:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0170:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0170:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0170:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0170:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L0B:0180:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L0B:0180:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L0B:0180:PACTALRMSEQ_")
}

record(seq, "ACCL:L0B:0180:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L0B:0180:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L0B:0180:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L0B:0180:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L0B:0180:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L0B:0180:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0210:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0210:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0210:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0210:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0210:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0210:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0210:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0210:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0210:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0220:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0220:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0220:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0220:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0220:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0220:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0220:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0220:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0220:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0230:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0230:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0230:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0230:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0230:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0230:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0230:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0230:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0230:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0240:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0240:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0240:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0240:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0240:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0240:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0240:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0240:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0240:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0250:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0250:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0250:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0250:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0250:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0250:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0250:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0250:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0250:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0260:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0260:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0260:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0260:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0260:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0260:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0260:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0260:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0260:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0270:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0270:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0270:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0270:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0270:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0270:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0270:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0270:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0270:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0280:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0280:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0280:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0280:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0280:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0280:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0280:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0280:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0280:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0310:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0310:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0310:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0310:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0310:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0310:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0310:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0310:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0310:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0320:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0320:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0320:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0320:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0320:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0320:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0320:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0320:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0320:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0330:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0330:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0330:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0330:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0330:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0330:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0330:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0330:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0330:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0340:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0340:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0340:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0340:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0340:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0340:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0340:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0340:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0340:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0350:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0350:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0350:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0350:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0350:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0350:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0350:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0350:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0350:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0360:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0360:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0360:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0360:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0360:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0360:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0360:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0360:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0360:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0370:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0370:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0370:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0370:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0370:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0370:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0370:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0370:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0370:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:0380:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:0380:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:0380:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:0380:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:0380:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:0380:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:0380:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:0380:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:0380:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H110:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H110:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H110:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H110:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H110:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H110:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H110:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H110:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H110:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H120:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H120:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H120:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H120:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H120:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H120:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H120:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H120:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H120:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H130:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H130:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H130:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H130:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H130:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H130:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H130:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H130:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H130:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H140:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H140:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H140:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H140:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H140:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H140:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H140:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H140:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H140:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H150:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H150:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H150:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H150:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H150:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H150:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H150:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H150:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H150:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H160:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H160:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H160:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H160:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H160:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H160:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H160:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H160:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H160:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H170:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H170:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H170:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H170:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H170:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H170:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H170:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H170:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H170:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H180:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H180:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H180:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H180:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H180:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H180:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H180:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H180:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H180:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H210:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H210:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H210:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H210:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H210:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H210:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H210:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H210:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H210:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H220:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H220:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H220:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H220:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H220:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H220:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H220:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H220:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H220:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H230:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H230:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H230:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H230:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H230:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H230:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H230:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H230:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H230:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H240:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H240:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H240:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H240:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H240:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H240:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H240:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H240:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H240:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H250:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H250:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H250:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H250:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H250:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H250:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H250:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H250:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H250:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H260:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H260:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H260:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H260:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H260:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H260:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H260:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H260:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H260:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H270:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H270:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H270:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H270:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H270:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H270:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H270:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H270:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H270:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L1B:H280:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L1B:H280:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L1B:H280:PACTALRMSEQ_")
}

record(seq, "ACCL:L1B:H280:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L1B:H280:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L1B:H280:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L1B:H280:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L1B:H280:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L1B:H280:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0410:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0410:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0410:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0410:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0410:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0410:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0410:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0410:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0410:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0420:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0420:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0420:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0420:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0420:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0420:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0420:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0420:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0420:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0430:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0430:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0430:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0430:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0430:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0430:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0430:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0430:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0430:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0440:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0440:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0440:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0440:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0440:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0440:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0440:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0440:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0440:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0450:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0450:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0450:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0450:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0450:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0450:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0450:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0450:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0450:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0460:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0460:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0460:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0460:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0460:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0460:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0460:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0460:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0460:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0470:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0470:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0470:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0470:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0470:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0470:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0470:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0470:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0470:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0480:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0480:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0480:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0480:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0480:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0480:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0480:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0480:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0480:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0510:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0510:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0510:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0510:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0510:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0510:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0510:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0510:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0510:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0520:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0520:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0520:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0520:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0520:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0520:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0520:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0520:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0520:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0530:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0530:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0530:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0530:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0530:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0530:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0530:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0530:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0530:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0540:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0540:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0540:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0540:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0540:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0540:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0540:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0540:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0540:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0550:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0550:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0550:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0550:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0550:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0550:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0550:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0550:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0550:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0560:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0560:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0560:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0560:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0560:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0560:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0560:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0560:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0560:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0570:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0570:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0570:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0570:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0570:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0570:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0570:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0570:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0570:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0580:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0580:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0580:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0580:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0580:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0580:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0580:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0580:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0580:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0610:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0610:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0610:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0610:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0610:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0610:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0610:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0610:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0610:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0620:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0620:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0620:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0620:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0620:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0620:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0620:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0620:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0620:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0630:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0630:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0630:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0630:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0630:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0630:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0630:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0630:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0630:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0640:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0640:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0640:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0640:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0640:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0640:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0640:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0640:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0640:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0650:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0650:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0650:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0650:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0650:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0650:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0650:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0650:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0650:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0660:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0660:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0660:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0660:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0660:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0660:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0660:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0660:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0660:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0670:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0670:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0670:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0670:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0670:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0670:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0670:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0670:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0670:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0680:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0680:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0680:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0680:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0680:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0680:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0680:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0680:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0680:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0710:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0710:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0710:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0710:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0710:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0710:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0710:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0710:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0710:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0720:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0720:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0720:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0720:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0720:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0720:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0720:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0720:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0720:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0730:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0730:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0730:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0730:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0730:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0730:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0730:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0730:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0730:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0740:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0740:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0740:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0740:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0740:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0740:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0740:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0740:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0740:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0750:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0750:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0750:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0750:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0750:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0750:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0750:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0750:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0750:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0760:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0760:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0760:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0760:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0760:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0760:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0760:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0760:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0760:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0770:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0770:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0770:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0770:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0770:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0770:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0770:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0770:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0770:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0780:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0780:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0780:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0780:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0780:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0780:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0780:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0780:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0780:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0810:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0810:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0810:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0810:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0810:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0810:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0810:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0810:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0810:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0820:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0820:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0820:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0820:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0820:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0820:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0820:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0820:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0820:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0830:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0830:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0830:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0830:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0830:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0830:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0830:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0830:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0830:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0840:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0840:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0840:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0840:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0840:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0840:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0840:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0840:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0840:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0850:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0850:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0850:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0850:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0850:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0850:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0850:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0850:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0850:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0860:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0860:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0860:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0860:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0860:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0860:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0860:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0860:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0860:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0870:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0870:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0870:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0870:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0870:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0870:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0870:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0870:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0870:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0880:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0880:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0880:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0880:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0880:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0880:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0880:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0880:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0880:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0910:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0910:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0910:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0910:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0910:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0910:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0910:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0910:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0910:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0920:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0920:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0920:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0920:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0920:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0920:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0920:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0920:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0920:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0930:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0930:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0930:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0930:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0930:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0930:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0930:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0930:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0930:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0940:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0940:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0940:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0940:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0940:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0940:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0940:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0940:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0940:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0950:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0950:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0950:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0950:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0950:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0950:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0950:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0950:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0950:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0960:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0960:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0960:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0960:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0960:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0960:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0960:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0960:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0960:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0970:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0970:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0970:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0970:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0970:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0970:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0970:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0970:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0970:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:0980:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:0980:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:0980:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:0980:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:0980:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:0980:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:0980:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:0980:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:0980:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1010:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1010:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1010:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1010:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1010:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1010:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1010:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1010:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1010:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1020:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1020:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1020:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1020:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1020:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1020:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1020:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1020:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1020:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1030:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1030:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1030:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1030:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1030:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1030:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1030:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1030:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1030:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1040:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1040:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1040:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1040:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1040:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1040:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1040:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1040:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1040:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1050:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1050:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1050:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1050:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1050:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1050:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1050:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1050:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1050:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1060:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1060:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1060:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1060:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1060:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1060:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1060:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1060:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1060:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1070:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1070:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1070:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1070:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1070:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1070:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1070:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1070:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1070:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1080:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1080:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1080:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1080:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1080:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1080:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1080:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1080:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1080:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1110:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1110:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1110:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1110:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1110:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1110:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1110:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1110:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1110:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1120:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1120:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1120:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1120:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1120:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1120:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1120:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1120:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1120:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1130:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1130:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1130:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1130:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1130:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1130:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1130:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1130:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1130:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1140:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1140:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1140:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1140:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1140:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1140:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1140:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1140:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1140:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1150:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1150:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1150:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1150:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1150:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1150:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1150:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1150:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1150:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1160:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1160:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1160:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1160:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1160:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1160:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1160:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1160:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1160:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1170:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1170:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1170:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1170:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1170:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1170:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1170:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1170:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1170:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1180:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1180:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1180:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1180:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1180:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1180:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1180:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1180:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1180:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1210:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1210:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1210:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1210:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1210:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1210:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1210:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1210:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1210:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1220:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1220:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1220:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1220:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1220:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1220:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1220:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1220:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1220:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1230:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1230:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1230:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1230:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1230:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1230:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1230:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1230:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1230:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1240:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1240:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1240:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1240:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1240:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1240:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1240:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1240:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1240:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1250:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1250:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1250:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1250:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1250:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1250:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1250:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1250:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1250:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1260:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1260:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1260:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1260:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1260:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1260:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1260:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1260:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1260:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1270:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1270:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1270:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1270:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1270:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1270:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1270:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1270:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1270:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1280:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1280:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1280:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1280:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1280:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1280:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1280:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1280:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1280:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1310:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1310:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1310:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1310:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1310:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1310:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1310:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1310:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1310:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1320:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1320:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1320:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1320:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1320:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1320:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1320:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1320:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1320:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1330:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1330:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1330:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1330:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1330:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1330:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1330:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1330:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1330:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1340:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1340:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1340:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1340:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1340:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1340:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1340:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1340:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1340:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1350:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1350:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1350:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1350:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1350:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1350:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1350:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1350:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1350:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1360:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1360:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1360:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1360:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1360:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1360:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1360:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1360:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1360:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1370:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1370:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1370:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1370:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1370:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1370:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1370:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1370:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1370:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1380:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1380:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1380:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1380:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1380:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1380:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1380:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1380:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1380:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1410:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1410:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1410:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1410:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1410:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1410:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1410:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1410:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1410:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1420:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1420:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1420:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1420:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1420:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1420:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1420:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1420:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1420:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1430:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1430:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1430:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1430:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1430:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1430:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1430:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1430:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1430:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1440:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1440:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1440:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1440:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1440:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1440:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1440:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1440:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1440:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1450:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1450:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1450:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1450:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1450:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1450:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1450:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1450:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1450:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1460:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1460:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1460:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1460:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1460:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1460:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1460:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1460:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1460:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1470:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1470:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1470:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1470:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1470:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1470:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1470:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1470:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1470:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1480:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1480:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1480:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1480:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1480:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1480:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1480:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1480:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1480:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1510:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1510:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1510:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1510:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1510:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1510:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1510:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1510:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1510:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1520:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1520:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1520:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1520:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1520:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1520:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1520:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1520:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1520:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1530:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1530:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1530:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1530:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1530:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1530:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1530:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1530:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1530:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1540:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1540:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1540:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1540:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1540:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1540:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1540:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1540:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1540:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1550:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1550:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1550:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1550:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1550:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1550:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1550:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1550:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1550:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1560:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1560:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1560:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1560:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1560:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1560:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1560:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1560:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1560:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1570:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1570:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1570:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1570:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1570:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1570:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1570:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1570:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1570:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L2B:1580:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L2B:1580:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L2B:1580:PACTALRMSEQ_")
}

record(seq, "ACCL:L2B:1580:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L2B:1580:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L2B:1580:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L2B:1580:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L2B:1580:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L2B:1580:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1610:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1610:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1610:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1610:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1610:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1610:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1610:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1610:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1610:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1620:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1620:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1620:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1620:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1620:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1620:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1620:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1620:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1620:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1630:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1630:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1630:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1630:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1630:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1630:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1630:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1630:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1630:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1640:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1640:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1640:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1640:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1640:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1640:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1640:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1640:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1640:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1650:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1650:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1650:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1650:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1650:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1650:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1650:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1650:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1650:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1660:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1660:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1660:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1660:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1660:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1660:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1660:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1660:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1660:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1670:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1670:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1670:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1670:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1670:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1670:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1670:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1670:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1670:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1680:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1680:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1680:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1680:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1680:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1680:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1680:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1680:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1680:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1710:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1710:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1710:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1710:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1710:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1710:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1710:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1710:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1710:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1720:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1720:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1720:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1720:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1720:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1720:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1720:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1720:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1720:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1730:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1730:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1730:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1730:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1730:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1730:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1730:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1730:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1730:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1740:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1740:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1740:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1740:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1740:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1740:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1740:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1740:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1740:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1750:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1750:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1750:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1750:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1750:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1750:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1750:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1750:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1750:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1760:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1760:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1760:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1760:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1760:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1760:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1760:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1760:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1760:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1770:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1770:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1770:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1770:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1770:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1770:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1770:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1770:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1770:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1780:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1780:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1780:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1780:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1780:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1780:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1780:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1780:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1780:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1810:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1810:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1810:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1810:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1810:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1810:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1810:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1810:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1810:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1820:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1820:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1820:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1820:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1820:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1820:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1820:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1820:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1820:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1830:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1830:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1830:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1830:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1830:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1830:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1830:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1830:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1830:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1840:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1840:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1840:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1840:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1840:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1840:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1840:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1840:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1840:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1850:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1850:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1850:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1850:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1850:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1850:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1850:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1850:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1850:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1860:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1860:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1860:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1860:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1860:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1860:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1860:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1860:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1860:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1870:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1870:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1870:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1870:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1870:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1870:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1870:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1870:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1870:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1880:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1880:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1880:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1880:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1880:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1880:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1880:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1880:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1880:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1910:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1910:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1910:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1910:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1910:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1910:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1910:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1910:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1910:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1920:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1920:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1920:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1920:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1920:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1920:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1920:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1920:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1920:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1930:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1930:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1930:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1930:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1930:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1930:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1930:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1930:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1930:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1940:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1940:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1940:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1940:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1940:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1940:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1940:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1940:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1940:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1950:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1950:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1950:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1950:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1950:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1950:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1950:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1950:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1950:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1960:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1960:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1960:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1960:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1960:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1960:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1960:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1960:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1960:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1970:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1970:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1970:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1970:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1970:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1970:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1970:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1970:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1970:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:1980:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:1980:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:1980:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:1980:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:1980:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:1980:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:1980:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:1980:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:1980:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2010:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2010:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2010:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2010:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2010:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2010:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2010:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2010:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2010:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2020:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2020:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2020:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2020:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2020:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2020:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2020:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2020:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2020:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2030:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2030:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2030:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2030:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2030:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2030:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2030:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2030:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2030:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2040:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2040:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2040:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2040:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2040:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2040:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2040:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2040:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2040:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2050:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2050:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2050:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2050:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2050:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2050:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2050:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2050:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2050:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2060:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2060:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2060:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2060:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2060:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2060:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2060:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2060:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2060:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2070:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2070:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2070:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2070:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2070:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2070:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2070:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2070:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2070:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2080:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2080:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2080:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2080:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2080:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2080:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2080:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2080:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2080:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2110:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2110:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2110:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2110:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2110:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2110:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2110:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2110:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2110:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2120:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2120:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2120:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2120:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2120:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2120:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2120:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2120:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2120:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2130:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2130:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2130:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2130:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2130:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2130:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2130:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2130:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2130:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2140:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2140:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2140:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2140:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2140:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2140:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2140:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2140:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2140:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2150:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2150:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2150:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2150:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2150:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2150:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2150:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2150:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2150:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2160:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2160:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2160:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2160:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2160:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2160:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2160:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2160:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2160:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2170:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2170:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2170:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2170:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2170:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2170:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2170:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2170:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2170:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2180:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2180:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2180:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2180:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2180:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2180:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2180:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2180:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2180:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2210:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2210:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2210:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2210:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2210:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2210:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2210:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2210:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2210:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2220:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2220:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2220:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2220:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2220:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2220:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2220:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2220:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2220:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2230:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2230:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2230:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2230:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2230:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2230:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2230:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2230:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2230:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2240:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2240:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2240:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2240:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2240:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2240:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2240:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2240:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2240:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2250:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2250:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2250:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2250:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2250:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2250:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2250:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2250:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2250:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2260:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2260:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2260:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2260:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2260:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2260:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2260:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2260:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2260:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2270:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2270:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2270:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2270:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2270:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2270:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2270:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2270:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2270:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2280:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2280:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2280:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2280:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2280:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2280:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2280:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2280:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2280:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2310:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2310:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2310:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2310:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2310:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2310:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2310:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2310:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2310:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2320:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2320:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2320:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2320:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2320:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2320:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2320:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2320:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2320:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2330:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2330:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2330:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2330:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2330:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2330:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2330:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2330:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2330:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2340:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2340:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2340:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2340:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2340:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2340:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2340:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2340:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2340:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2350:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2350:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2350:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2350:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2350:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2350:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2350:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2350:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2350:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2360:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2360:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2360:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2360:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2360:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2360:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2360:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2360:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2360:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2370:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2370:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2370:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2370:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2370:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2370:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2370:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2370:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2370:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2380:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2380:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2380:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2380:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2380:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2380:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2380:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2380:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2380:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2410:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2410:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2410:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2410:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2410:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2410:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2410:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2410:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2410:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2420:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2420:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2420:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2420:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2420:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2420:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2420:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2420:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2420:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2430:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2430:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2430:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2430:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2430:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2430:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2430:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2430:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2430:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2440:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2440:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2440:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2440:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2440:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2440:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2440:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2440:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2440:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2450:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2450:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2450:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2450:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2450:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2450:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2450:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2450:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2450:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2460:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2460:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2460:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2460:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2460:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2460:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2460:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2460:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2460:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2470:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2470:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2470:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2470:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2470:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2470:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2470:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2470:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2470:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2480:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2480:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2480:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2480:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2480:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2480:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2480:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2480:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2480:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2510:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2510:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2510:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2510:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2510:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2510:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2510:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2510:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2510:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2520:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2520:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2520:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2520:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2520:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2520:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2520:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2520:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2520:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2530:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2530:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2530:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2530:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2530:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2530:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2530:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2530:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2530:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2540:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2540:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2540:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2540:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2540:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2540:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2540:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2540:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2540:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2550:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2550:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2550:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2550:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2550:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2550:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2550:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2550:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2550:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2560:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2560:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2560:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2560:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2560:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2560:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2560:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2560:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2560:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2570:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2570:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2570:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2570:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2570:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2570:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2570:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2570:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2570:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2580:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2580:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2580:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2580:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2580:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2580:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2580:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2580:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2580:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2610:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2610:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2610:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2610:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2610:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2610:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2610:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2610:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2610:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2620:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2620:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2620:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2620:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2620:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2620:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2620:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2620:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2620:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2630:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2630:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2630:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2630:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2630:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2630:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2630:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2630:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2630:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2640:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2640:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2640:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2640:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2640:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2640:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2640:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2640:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2640:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2650:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2650:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2650:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2650:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2650:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2650:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2650:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2650:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2650:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2660:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2660:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2660:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2660:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2660:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2660:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2660:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2660:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2660:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2670:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2670:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2670:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2670:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2670:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2670:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2670:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2670:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2670:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2680:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2680:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2680:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2680:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2680:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2680:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2680:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2680:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2680:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2710:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2710:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2710:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2710:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2710:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2710:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2710:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2710:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2710:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2720:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2720:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2720:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2720:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2720:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2720:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2720:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2720:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2720:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2730:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2730:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2730:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2730:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2730:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2730:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2730:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2730:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2730:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2740:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2740:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2740:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2740:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2740:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2740:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2740:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2740:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2740:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2750:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2750:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2750:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2750:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2750:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2750:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2750:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2750:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2750:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2760:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2760:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2760:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2760:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2760:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2760:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2760:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2760:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2760:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2770:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2770:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2770:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2770:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2770:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2770:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2770:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2770:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2770:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2780:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2780:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2780:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2780:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2780:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2780:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2780:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2780:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2780:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2810:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2810:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2810:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2810:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2810:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2810:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2810:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2810:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2810:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2820:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2820:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2820:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2820:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2820:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2820:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2820:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2820:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2820:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2830:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2830:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2830:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2830:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2830:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2830:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2830:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2830:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2830:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2840:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2840:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2840:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2840:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2840:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2840:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2840:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2840:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2840:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2850:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2850:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2850:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2850:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2850:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2850:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2850:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2850:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2850:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2860:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2860:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2860:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2860:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2860:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2860:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2860:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2860:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2860:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2870:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2870:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2870:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2870:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2870:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2870:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2870:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2870:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2870:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2880:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2880:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2880:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2880:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2880:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2880:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2880:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2880:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2880:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2910:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2910:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2910:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2910:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2910:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2910:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2910:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2910:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2910:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2920:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2920:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2920:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2920:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2920:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2920:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2920:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2920:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2920:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2930:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2930:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2930:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2930:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2930:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2930:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2930:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2930:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2930:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2940:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2940:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2940:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2940:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2940:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2940:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2940:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2940:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2940:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2950:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2950:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2950:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2950:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2950:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2950:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2950:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2950:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2950:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2960:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2960:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2960:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2960:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2960:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2960:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2960:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2960:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2960:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2970:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2970:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2970:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2970:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2970:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2970:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2970:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2970:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2970:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:2980:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:2980:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:2980:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:2980:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:2980:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:2980:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:2980:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:2980:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:2980:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3010:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3010:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3010:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3010:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3010:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3010:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3010:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3010:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3010:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3020:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3020:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3020:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3020:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3020:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3020:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3020:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3020:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3020:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3030:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3030:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3030:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3030:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3030:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3030:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3030:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3030:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3030:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3040:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3040:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3040:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3040:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3040:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3040:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3040:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3040:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3040:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3050:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3050:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3050:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3050:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3050:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3050:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3050:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3050:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3050:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3060:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3060:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3060:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3060:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3060:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3060:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3060:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3060:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3060:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3070:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3070:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3070:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3070:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3070:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3070:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3070:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3070:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3070:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3080:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3080:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3080:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3080:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3080:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3080:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3080:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3080:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3080:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3110:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3110:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3110:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3110:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3110:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3110:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3110:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3110:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3110:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3120:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3120:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3120:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3120:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3120:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3120:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3120:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3120:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3120:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3130:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3130:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3130:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3130:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3130:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3130:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3130:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3130:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3130:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3140:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3140:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3140:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3140:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3140:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3140:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3140:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3140:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3140:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3150:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3150:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3150:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3150:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3150:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3150:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3150:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3150:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3150:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3160:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3160:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3160:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3160:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3160:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3160:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3160:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3160:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3160:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3170:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3170:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3170:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3170:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3170:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3170:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3170:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3170:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3170:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3180:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3180:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3180:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3180:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3180:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3180:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3180:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3180:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3180:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3210:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3210:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3210:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3210:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3210:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3210:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3210:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3210:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3210:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3220:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3220:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3220:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3220:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3220:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3220:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3220:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3220:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3220:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3230:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3230:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3230:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3230:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3230:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3230:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3230:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3230:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3230:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3240:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3240:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3240:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3240:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3240:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3240:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3240:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3240:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3240:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3250:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3250:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3250:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3250:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3250:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3250:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3250:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3250:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3250:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3260:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3260:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3260:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3260:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3260:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3260:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3260:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3260:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3260:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3270:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3270:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3270:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3270:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3270:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3270:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3270:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3270:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3270:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3280:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3280:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3280:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3280:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3280:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3280:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3280:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3280:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3280:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3310:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3310:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3310:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3310:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3310:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3310:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3310:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3310:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3310:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3320:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3320:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3320:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3320:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3320:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3320:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3320:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3320:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3320:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3330:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3330:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3330:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3330:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3330:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3330:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3330:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3330:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3330:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3340:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3340:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3340:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3340:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3340:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3340:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3340:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3340:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3340:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3350:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3350:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3350:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3350:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3350:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3350:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3350:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3350:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3350:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3360:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3360:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3360:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3360:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3360:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3360:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3360:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3360:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3360:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3370:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3370:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3370:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3370:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3370:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3370:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3370:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3370:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3370:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3380:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3380:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3380:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3380:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3380:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3380:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3380:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3380:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3380:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3410:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3410:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3410:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3410:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3410:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3410:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3410:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3410:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3410:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3420:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3420:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3420:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3420:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3420:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3420:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3420:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3420:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3420:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3430:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3430:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3430:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3430:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3430:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3430:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3430:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3430:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3430:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3440:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3440:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3440:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3440:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3440:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3440:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3440:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3440:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3440:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3450:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3450:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3450:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3450:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3450:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3450:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3450:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3450:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3450:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3460:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3460:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3460:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3460:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3460:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3460:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3460:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3460:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3460:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3470:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3470:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3470:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3470:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3470:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3470:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3470:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3470:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3470:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3480:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3480:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3480:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3480:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3480:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3480:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3480:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3480:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3480:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3510:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3510:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3510:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3510:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3510:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3510:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3510:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3510:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3510:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3520:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3520:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3520:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3520:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3520:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3520:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3520:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3520:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3520:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3530:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3530:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3530:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3530:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3530:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3530:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3530:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3530:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3530:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3540:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3540:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3540:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3540:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3540:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3540:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3540:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3540:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3540:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3550:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3550:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3550:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3550:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3550:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3550:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3550:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3550:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3550:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3560:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3560:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3560:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3560:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3560:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3560:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3560:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3560:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3560:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3570:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3570:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3570:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3570:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3570:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3570:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3570:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3570:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3570:PACTMEANWTHRESH CA")
}
# Moved to dedicated IOC for now because
# in CM RF IOCs, it was severely affecting
# IOC processing and causing nuisance
# interlock faults

# If move this back to CM IOC, can restore
# associated CAS settings

#==================================
# To prevent constant phase errors
#   for cavities under feedback control,
#   adjust phase warning/alarm thresholds
# Cavities not under feedback control:
#   0.005 deg warning, 0.01 deg alarm
# Cavities under feedback control:
#   0.09 deg warning, 0.1 deg alarm
# Note that this effectively overrides
#   the thresholds in FEED cavPhaseLcls/template
# Consider in future, incorporating this
#   logic in FEED and removing from here
#==================================
record(calc, "ACCL:L3B:3580:PACTALRM_") {
  field(DESC, "Set PACT alarm thresholds")
  field(CALC, "(A>1&A<4)?12:3")
# AL:SELECT values 2, 3 indicate feedback use
  field(INPA, "ACCL:L3B:3580:AL:SELECT CP")
  field(PINI, "YES")
  field(FLNK, "ACCL:L3B:3580:PACTALRMSEQ_")
}

record(seq, "ACCL:L3B:3580:PACTALRMSEQ_") {
  field(DESC, "Set PACT alarm thresholds")
# Non-feedback process links 1, 2
# Feedback process links 3, 4
  field(SELL, "ACCL:L3B:3580:PACTALRM_")
  field(SELM, "Mask")
  field(DOL1, ".01")
  field(LNK1, "ACCL:L3B:3580:PACTMEANATHRESH CA")
  field(DOL2, ".005")
  field(LNK2, "ACCL:L3B:3580:PACTMEANWTHRESH CA")
  field(DOL3, ".1")
  field(LNK3, "ACCL:L3B:3580:PACTMEANATHRESH CA")
  field(DOL4, ".09")
  field(LNK4, "ACCL:L3B:3580:PACTMEANWTHRESH CA")
}
