Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Set the SSA drive max (ACCL:LXB:XXXX:SSA:DRV_MAX_REQ) to:
    1. 1 If harmonic linearizer
    2. 0.8 if not harmonic linearizer
  2. Reset SSA interlocks (set ACCL:LXB:XXXX:SSA:FaultReset to 1)
  3. Wait for the faults to reset (wait while ACCL:LXB:XXXX:SSA:StatusMsg is 4)
  4. if ACCL:LXB:XXXX:SSA:StatusMsg is either 1 or 7:
    1. Raise an error
  5. if ACCL:LXB:XXXX:SSA:StatusMsg is neither 1 nor 7:
    1. Turn on SSA (set ACCL:LXB:XXXX:SSA:PowerOn to 1)
    2. Wait for SSA to turn on (wait until ACCL:LXB:XXXX:SSA:StatusMsg is 3)
    3. Reset cavity interlocks (set ACCL:LXB:XXXX:INTLK_RESET_ALL to 1) and wait 3s
    4. If the reset failed (ACCL:LXB:XXXX:RFPERMIT is 0)
      1. Retry up to 2 more times
      2. If the reset succeed within 3 total attemps
        1. Continue to step 5.e.iii
      3. If the reset fails after 3 total attempts
        1. Throw an error
    5. If the reset succeeded (ACCL:LXB:XXXX:RFPERMIT is not 0)
      1. Start the calibration (set ACCL:LXB:XXXX:SSA:CALSTRT to 1)
      2. Wait for the calibration to stop running (wait while ACCL:LXB:XXXX:SSA:CALSTS is 2)
      3. If the calibration crashed (if ACCL:LXB:XXXX:SSA:CALSTS is 0)
        1. Throw an error
      4. If the calibration succeeded (if ACCL:LXB:XXXX:SSA:CALSTS is not 0)
        1. If result is not good (if ACCL:LXB:XXXX:SSA:CALSTAT is not 0)
          1. Throw an error
        2. If the result is good (if ACCL:LXB:XXXX:SSA:CALSTAT is 0)
          1. If the max forward power (ACCL:LXB:XXXX:SSA:CALPWR) is below 3000
            1. Throw an error
          2. If the max forward power (ACCL:LXB:XXXX:SSA:CALPWR) is above 3000
            1. If the measured slope (ACCL:LXB:XXXX:SSA:SLOPE_NEW) is not between 0.5 and 1.6
              1. Throw an error
            2. If the measured slope (ACCL:LXB:XXXX:SSA:SLOPE_NEW) is between 0.5 and 1.6
              1. Push the SSA slope (set ACCL:LXB:XXXX:PUSH_SSA_SLOPE.PROC to 1)
              2. Save the SSA slope (set ACCL:LXB:XXXX:SAVE_SSA_SLOPE.PROC to 1)