T A B L E O F C O N T E N T S 1 INTRODUCTION 1 1.1 PURPOSE 1 1.2 SCOPE 1 1.3 APPLICABLE DOCUMENTS 1 1.4 REFERENCE DOCUMENTS 2 1.5 ABBREVIATIONS AND ACRONYMS 3 1.6 GLOSSARY 3 2 OVERVIEW 5 2.1 Format definitions 5 2.2 Common subroutines and utilities 5 2.3 Standard Database structure 6 2.4 Standard states 6 2.5 Standard commands 6 3 FORMAT DEFINITIONS 7 3.1 SETUP FILES 7 3.1.1 Types of setup files 7 3.1.2 Setup file handling 8 3.1.3 Setup file format 8 3.2 OBSERVATION BLOCKS AND TEMPLATES 8 3.2.1 Introduction 8 3.2.2 Templates 9 3.2.3 Observation Blocks 9 3.3 ALIAS CONVERSION TABLES 10 3.4 INSTRUMENT DICTIONARY 10 3.5 INSTRUMENT CONFIGURATION FILES 10 3.6 FITS COMPRESSION 11 3.7 DIRECTORY STRUCTURE 12 4 COMMON SUBROUTINES AND UTILITIES 13 4.1 Detector data transmission from LCU to IWS 13 4.2 Protocol Converter 13 4.3 Disk space monitor 13 4.4 Short-FITS format handling 13 4.5 Configuration Tool 13 4.6 FITS operational logs 13 4.7 Real-Time Display 13 4.8 Installation 13 4.9 Startup/Shutdown 13 4.10 Base DCS 14 4.11 Base ICS 14 4.12 Base OS 14 4.13 Common Software for Templates 14 4.14 Template Instrument 14 5 STANDARD DATABASE STRUCTURE 15 5.1 DATABASE POINTS 15 6 STANDARD STATES 17 6.1 Introduction 17 6.2 LCU states 17 6.3 Instrument and Detector States 17 6.4 State transition 18 7 STANDARD COMMANDS 19 7.1 Command syntax and conventions 19 7.2 ICS 20 7.3 DCS 20 7.4 OS 20 8 DEVELOPMENT AND TEST FACTORS 23 8.1 Planning 23 9 APPENDICES 25 9.1 REFERENCE SETUP FILE EXAMPLE 25