1 | #!dimctrl --exec
|
---|
2 |
|
---|
3 | # ==========================================================================
|
---|
4 | # Shutdown
|
---|
5 | # ==========================================================================
|
---|
6 | # Script for Software Shutdown
|
---|
7 |
|
---|
8 | # call it by: .x ScriptsForDimCtrl/Shutdown.dim
|
---|
9 |
|
---|
10 | # ----------------------------------------------------
|
---|
11 |
|
---|
12 | > ======================================
|
---|
13 | > SYSTEM SHUTDOWN
|
---|
14 | > ======================================
|
---|
15 | > BIAS_CONTROL
|
---|
16 | > ...checking state of biasctrl
|
---|
17 | .s BIAS_CONTROL 9 1000 2
|
---|
18 | > ...voltage still ON
|
---|
19 | > ...set global zero voltage
|
---|
20 | BIAS_CONTROL/SET_GLOBAL_DAC 0
|
---|
21 | > ...waiting for bias ramping
|
---|
22 | .s BIAS_CONTROL 5
|
---|
23 | > ...ramping
|
---|
24 |
|
---|
25 | :2
|
---|
26 | .s BIAS_CONTROL 7 15000 4
|
---|
27 | > ...VoltageOff
|
---|
28 | > ...disconnecting biascrate
|
---|
29 | BIAS_CONTROL/DISCONNECT
|
---|
30 | .j 5
|
---|
31 |
|
---|
32 | :4
|
---|
33 | > =============
|
---|
34 | > Bias not in state VoltageOff
|
---|
35 | > cannot disconnect Biascrate
|
---|
36 | > OPERATOR:
|
---|
37 | > turn of voltage and
|
---|
38 | > disconnect bias crate manually
|
---|
39 | > =============
|
---|
40 |
|
---|
41 | :5
|
---|
42 | > DRIVE_CONTROL
|
---|
43 | > ...parking telescope
|
---|
44 | DRIVE_CONTROL/STOP
|
---|
45 | .w 2000
|
---|
46 | DRIVE_CONTROL/PARK
|
---|
47 |
|
---|
48 | > FTM_CONTROL
|
---|
49 | > ...stopping trigger
|
---|
50 | FTM_CONTROL/STOP_TRIGGER
|
---|
51 |
|
---|
52 | > ...disabling all FTUs
|
---|
53 | FTM_CONTROL/ENABLE_FTU -1 no
|
---|
54 | >-
|
---|
55 | > FAD_CONTROL
|
---|
56 | > ...stopping FADs
|
---|
57 | FAD_CONTROL/STOP
|
---|
58 | >-
|
---|
59 | > --------------------------------------
|
---|
60 | > OPERATOR:
|
---|
61 | >-
|
---|
62 | > [Software]
|
---|
63 | > + close or make sure shutter is closed
|
---|
64 | > + make sure telescope is really in
|
---|
65 | > parking postion
|
---|
66 | > + close cosy
|
---|
67 | >-
|
---|
68 | > [Hardware]
|
---|
69 | > + turn off bias crate
|
---|
70 | > + shutdown interlock system
|
---|
71 | > + turn off camera agilent
|
---|
72 | > + turn off bias agilent
|
---|
73 | > + turn off drive
|
---|
74 | >-
|
---|
75 | > NEVER switch of
|
---|
76 | > the Interlock Systems' Agilent
|
---|
77 | >-
|
---|
78 | > --------------------------------------
|
---|
79 | > SYSTEM SHUTDOWN finished
|
---|
80 | > ======================================
|
---|
81 |
|
---|