marcmd.h

Go to the documentation of this file.
00001 /***********************************************************************
00002  * 
00003  * mar345: marcmd.h
00004  *
00005  * Copyright by:        Dr. Claudio Klein
00006  *                      X-ray Research GmbH, Hamburg
00007  *
00008  * Version:     2.0 
00009  * Date:        04/11/1998
00010  *
00011  ***********************************************************************/
00012 #define MDC_COM_IDLE       0
00013 #define MDC_COM_STARTUP    1
00014 #define MDC_COM_INIT       2
00015 #define MDC_COM_ERASE      3
00016 #define MDC_COM_STOP       4
00017 #define MDC_COM_ABORT      5
00018 #define MDC_COM_DISTANCE   6
00019 #define MDC_COM_PHI        7
00020 #define MDC_COM_DSET       8
00021 #define MDC_COM_PSET       9
00022 #define MDC_COM_SHUT      10
00023 #define MDC_COM_SCAN      11
00024 #define MDC_COM_COLL      12
00025 #define MDC_COM_ABORTPHI  13
00026 #define MDC_COM_ABORTDIST 14
00027 #define MDC_COM_OMOVE     15
00028 #define MDC_COM_OSET      16
00029 #define MDC_COM_LOCK      17
00030 #define MDC_COM_RESET     18
00031 #define MDC_COM_RESTART   19
00032 #define MDC_COM_MODE      20
00033 #define MDC_COM_LISTEN    21
00034 #define MDC_COM_QUIT      22
00035 #define MDC_COM_CHAMBER   23
00036 #define MDC_COM_ZAXIS     24
00037 #define MDC_COM_SHELL     25
00038 
00039 #define MDC_COM_IPS       99
00040 
00041 /*
00042  *      Operation codes for the initialize command.
00043  *      Keeps track about initialization phase.
00044  */
00045 
00046 #define INITOP_ABORT    0
00047 #define INITOP_RESET    1
00048 #define INITOP_SHUTTER  2
00049 #define INITOP_LOADTAB  3
00050 #define INITOP_DISTANCE 4
00051 #define INITOP_SELFTEST 5
00052 #define INITOP_PARAM    6
00053 
00054 /*
00055  *      Operation codes for the data collection command.
00056  *      Keeps track about data collection phase.
00057  */
00058 
00059 #define DCOP_IDLE       0
00060 #define DCOP_EXPOSE     1
00061 #define DCOP_SCAN       2
00062 #define DCOP_ERASE      3
00063 #define DCOP_DISTANCE   4
00064 #define DCOP_PHI        5
00065 #define DCOP_WAIT       6
00066 #define DCOP_MODE       7
00067 
00068 /*
00069  *      Operation codes for the recovery procedure
00070  */
00071 
00072 #define RECOVER_SHUTTER_OPEN            1
00073 #define RECOVER_SHUTTER_CLOSE           2
00074 #define RECOVER_LOCK                    3
00075 #define RECOVER_EXPOSURE                4
00076 
00077 
00078 /*
00079  *      Operation codes for the shutter command.
00080  *      Keeps track about shutter status.
00081  */
00082 
00083 #define SHUTTER_IS_CLOSED       0
00084 #define SHUTTER_IS_OPEN         1
00085 
00086 /*
00087  *      Operation codes for the scanner activity.
00088  */
00089 
00090 #define MAR_CONTROL_IDLE        0
00091 #define MAR_CONTROL_ACTIVE      1
00092 
00093 /*
00094  *      The following parameters are used as
00095  *      descriptors for functions.
00096  */
00097 
00098 #define MAR_START_DC            1
00099 #define MAR_CHECK_PHI           2
00100 #define MAR_CHECK_DIST          3
00101 #define MAR_MOVE_PHI            4
00102 #define MAR_MOVE_DIST           5
00103 #define MAR_READ_STATUS         6
00104 #define MAR_SCAN_START          7
00105 #define MAR_SCAN_READ           8
00106 #define MAR_SCAN_XFORM          9
00107 #define MAR_RECOVER             10
00108 #define MAR_CHANGE_MODE         11
00109 #define MAR_ERASE               12
00110 #define MAR_NET_DATA            13
00111 #define MAR_SERVO_INIT          14
00112 #define MAR_PROGRESS            98
00113 #define MAR_TIMER               99
00114 
00115 #define PRGS_IDLE               0
00116 #define PRGS_DISTANCE           1
00117 #define PRGS_PHI                2
00118 #define PRGS_OMEGA              3
00119 #define PRGS_CHI                4
00120 #define PRGS_THETA              5
00121 #define PRGS_LOCK               6
00122 #define PRGS_INIT               7
00123 #define PRGS_CHANGE             8
00124 #define PRGS_EXPOSURE           9
00125 #define PRGS_ERASE              10
00126 #define PRGS_SCAN               11
00127 #define PRGS_WAIT_XRAY          12
00128 #define PRGS_WAIT_SCAN          13
00129 #define PRGS_WAVE               14
00130 #define PRGS_CMD                15
00131 #define PRGS_XFORM              16
00132 #define PRGS_WRITE_XF           17
00133 #define PRGS_DEFAULT            99