# How to ready the shutter for data taking

# This is the internal version of the checklist, shown only if the one on the CCS rest-file-server can't be found. As such, it may be out of date.

# Powering up the on-camera shutter

1. Turn on the following channels on the quadbox BFR page in the CCS console:
   - "Shtr Motor 1" and "Shtr Motor 2" under "48V Dirty PDU".
   - "Shutr PLC 1" and "Shutr PLC 2" under "24V Clean PDU".
   - "Shutter HCU" under "HCU/PLC Control".
   - "Shutr brakes" under "24V Dirty PDU".

   If needed, see the first image on the Confluence page at https://confluence.slac.stanford.edu/x/FoJlE

2. Make sure that the shutter subsystem is running.
3. Check brake power status on the main shutter subsystem GUI.
   - If the brake status boxes say NO POWER then wait for more than 10 seconds for power update messages from the quadbox subsystem to reach the shutter subsystem.
   - If the condition doesn't clear up, make sure that the quadbox subsystem is running and that at least 23V is being supplied on "PDU_24VD/Shtr_Brakes_V".
4. Proceed to the "Initializing after power-up" section below.

# Powering up the spare shutter in the clean room

1. Turn on the following so their green lamps are lit:

- "Protection 24V".
- "PLC1 24V".
- "PLC2 24V".
- "Brakes 24V".
- "Motor 1 48V".
- "Motor 2 48V".

If needed, see the second image on the Confluence page at https://confluence.slac.stanford.edu/x/FoJlE

2. Make sure that the mock-quad subsystem is running. Once it is, give it the "publishVoltage" command with an argument of 24. The mock-quad command should be defined in the bin/ directory of the CCS software installation you're using.
3. Proceed to the "Initializing after power-up" section below.

# Initializing after power-up, either shutter unit

1. Check the main shutter GUI. If the subsystem isn't already in the Still state then you'll have to bring it into that state.
   - If the subsystem is in the SyncError state, try the Resync command button.
   - For other states, use the Stop command button. That will halt any motion that may be in progress and also reset the PLC.
2. Using the Motorplatform GUI, enable both axes.
3. Using the main GUI, release both brakes.
4. Using the main GUI, run a calibration.
5. Using the Motorplatform GUI, close the shutter by
   1. Making sure that the Relative checkbox is unchecked.
   2. Moving each blade set to its 0 position at 10-100 mm/s.
6. Click on "Prod mode" in the main GUI.