Instrument modes#
A mode is a named operating context. It determines which daemons must be ready, which limits apply, which commands are permitted, and which interlocks are active.
Modes are configuration, not code.
Mode |
Purpose |
Characteristics |
|---|---|---|
|
Nominal observing |
Observing limits. The sequencer drives. Lamps interlocked off.
All daemons required for the selected channels must be |
|
Target acquisition and centring |
Observing limits. Telescope offsets permitted. Short exposures.
Transitions to |
|
Arcs, flats, darks |
Front-end selector in a calibration position. Lamps permitted. Telescope motion not required. Runs during the day as well as at night. |
|
Hard hat operation |
Engineering limits. Direct device addressing. Announced to observers. Refused while a sequence is running. |
|
Servicing, warm-up, pump-down |
Motion may be inhibited entirely. Thermal and vacuum operations permitted that no other mode allows. Detector power-down permitted. |
|
Commanded safe state |
All daemons in their safe states. Only |
Selecting a mode#
Mode is instrument-wide and held by zsseq_obs, with two qualifications:
engineeringis held per subsystem. One arm can be under engineering control while the rest of the instrument remains inscience: but the observer GUI announces it, and the sequencer will not include that subsystem in a science sequence.safeis reachable from any mode and is never refused.
Transitions#
stateDiagram-v2
[*] --> safe: boot
safe --> calibration: recover + configure
safe --> acquisition
calibration --> acquisition
acquisition --> science: target acquired
science --> acquisition: next target
science --> calibration: calibration set
acquisition --> engineering: sequence stopped
calibration --> engineering
science --> engineering: sequence stopped
engineering --> calibration: exit hard hat
engineering --> maintenance
maintenance --> engineering
science --> safe: fault / commanded
acquisition --> safe
calibration --> safe
engineering --> safe
maintenance --> safe
Entering engineering from science requires the running sequence to be
stopped first; the sequencer does not silently yield the instrument.
Leaving engineering does not return the instrument to ready. Readiness
is re-established and re-observed, because the mechanism state after an
engineering session is not assumed.
Required daemons per mode#
Each mode declares in configuration which daemons must be ready. This is
what allows partial operation: a NIR spectrograph that is warm does not
prevent a VIS-only programme, and neither prevents imaging.
Mode |
Required |
|---|---|
|
|
|
As |
|
|
|
Only the daemons being worked on. |
|
|
Note
TBC: observing modes
The instrument’s scientific observing modes (which channel combinations, slit widths, and readout modes are supported, and which are simultaneous) come from the L1/L2 requirements and are not yet captured here. They will determine the observing-configuration vocabulary the observer GUI presents and the required-daemon sets above.