esd_error.h

Go to the documentation of this file.
00001 #ifndef ESD_ERROR_H
00002 #define ESD_ERROR_H
00003 
00004 /***********************************************************************
00005  *
00006  * esd_errors.h
00007  *
00008  * Copyright by:        Dr. Claudio Klein
00009  *                      X-ray Research GmbH, Hamburg
00010  *
00011  * Version:     1.2.3
00012  * Date:        02/10/1998
00013  *
00014  ***********************************************************************/
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 #define MAX_MSG         100
00021 
00022 typedef struct _stb_msg {
00023 #ifdef __sgi
00024         unsigned char   task;
00025         unsigned char   mclass;
00026         unsigned short  number;
00027 #else
00028         unsigned short  number;
00029         unsigned char   mclass;
00030         unsigned char   task;
00031 #endif
00032 } STB_MSG;
00033 
00034 typedef struct _err_msg {
00035         unsigned char   task;
00036         unsigned char   mclass;
00037         unsigned short  number;
00038         char            msg[32];
00039 } ERR_MSG;
00040 
00041 ERR_MSG err_msg[] = {
00042 /*   Task no. Class  Msg. no.   Message */
00043 {        0,     1,        0,    "Unknown ERROR." },
00044 
00045 /* CMD_RADIAL */
00046 {        2,     1,       25,    "Timeout gap open." },
00047 {        2,     1,       28,    "Stepper ERROR." },
00048 {        2,     1,       30,    "Lower Endswitch NOT reached." },
00049 {        2,     1,       32,    "Homeposition NOT found." },
00050 {        2,     1,       33,    "Upper Endswitch reached." },
00051 {        2,     1,       34,    "Timeout. Channel busy." },
00052 {        2,     1,       36,    "Upper Endswitch reached." },
00053 {        2,     1,       37,    "Not on target." },
00054 
00055 /* CMD_XFER   */
00056 {        3,     1,       401,   "Timeout." },
00057 
00058 /* CMD_SHUTTER */
00059 {        4,     1,      202,    "EXPOSURE task active." },
00060 {        4,     1,      205,    "Cannot OPEN shutter." },
00061 {        4,     1,      207,    "Shutter is already OPEN." },
00062 {        4,     1,      210,    "Cannot CLOSE shutter." },
00063 {        4,     1,      212,    "Unknown mode." },
00064 
00065 /* CMD_LOCK   */
00066 {        5,     1,       57,    "Timeout rotation sense." },
00067 {        5,     1,       58,    "Wrong parameters." },
00068 {        5,     1,       60,    "Cannot LOCK plate." },
00069 {        5,     1,       63,    "Cannot UNLOCK plate." },
00070 {        5,     1,      105,    "Servo warning." },
00071 
00072 /* CMD_ABORT */
00073 {        6,     1,      304,    "Out of range." },
00074 
00075 /* CMD_COLLECT */
00076 {        7,     1,      215,    "Cannot OPEN shutter." },
00077 {        7,     1,      234,    "Shutter is already OPEN." },
00078 {        7,     1,      238,    "Cannot CLOSE shutter." },
00079 {        7,     1,      241,    "Cannot OPEN  shutter." },
00080 {        7,     1,      239,    "Stepper ERROR." },
00081 
00082 /* CMD_ADJUST */
00083 {        8,     1,      704,    "Flash restore error." },
00084 {        8,     1,      713,    "Flash restore error." },
00085 {        8,     1,      721,    "Diff 1 error." },
00086 {        8,     1,      722,    "Diff 2 error." },
00087 {        8,     1,      723,    "Diff 3 error." },
00088 {        8,     1,      724,    "Diff 4 error." },
00089 {        8,     1,      725,    "Diff 5 error." },
00090 {        8,     1,      726,    "Diff 6 error." },
00091 /*
00092 {        8,     3,       10,    "ERROR in ADJUST." },
00093 */
00094 
00095 /* CMD_CHANGE */
00096 {        9,     1,       67,    "Profile conversion error." },
00097 {        9,     1,       70,    "Cannot OPEN profile." },
00098 {        9,     1,       71,    "Invalid mode." },
00099 
00100 /* CMD_SCAN   */
00101 {       10,     1,       12,    "Laser OFF." },
00102 {       10,     1,       13,    "Laser overcurrent." },
00103 {       10,     1,       74,    "Timeout round event." },
00104 {       10,     1,       77,    "Unknown mode." },
00105 {       10,     1,       82,    "Invalid profile table." },
00106 {       10,     1,       83,    "Unlocked plate." },
00107 {       10,     1,       86,    "Premovement error." },
00108 {       10,     1,       87,    "ADJUST not finished." },
00109 {       10,     1,       92,    "Gear connect error." },
00110 {       10,     1,       93,    "No radial movement in round." },
00111 {       10,     1,       94,    "Lower Endswitch reached." },
00112 {       10,     1,       95,    "Upper Endswitch reached." },
00113 {       10,     1,       100,   "Lost data." },
00114 {       10,     1,       101,   "Lower Endswitch reached." },
00115 {       10,     1,       109,   "Number of data does not match." },
00116 
00117 /* CMD_SET    */
00118 {       11,     1,       20,    "Error: Flash write." },
00119 {       11,     1,       22,    "Error: Flash write." },
00120 
00121 /* CMD_ERASE  */
00122 {       12,     1,       43,    "LEFT erase lamp OFF." },
00123 {       12,     1,       44,    "LEFT erase lamp OVERTEMP." },
00124 {       12,     1,       45,    "RIGHT erase lamp OFF." },
00125 {       12,     1,       46,    "RIGHT erase lamp OVERTEMP." },
00126 {       12,     1,       47,    "TOP  erase lamp OFF." },
00127 {       12,     1,       48,    "TOP  erase lamp OVERTEMP." },
00128 {       12,     1,       54,    "Unknown mode." },
00129 {       12,     1,       56,    "No profile loaded." },
00130 {       12,     1,      108,    "Speed too low." },
00131 
00132 /* CMD_MOVE */
00133 {       13,     1,      217,    "Timeout." },
00134 {       13,     1,      218,    "???" },
00135 {       13,     1,      219,    "Stepper ERROR."},
00136 {       13,     1,      225,    "Reference ERROR." },
00137 {       13,     1,      233,    "Unknown mode." },
00138 
00139 /* All tasks */
00140 {        0,     1,        5,    "Command overflow." },
00141 {        0,     1,        6,    "Queue overflow." },
00142 {        0,     1,        7,    "Command overflow." },
00143 
00144 /* Intern tasks: */
00145 {        0,     1,      104,    "Can not allocate memory..." },
00146 {        0,     1,      511,    "Servo: Initialize port ERROR." },
00147 {        0,     1,      601,    "Homeposition not found." },
00148 {        0,     1,      605,    "GAP not found." },
00149 
00150 {       99,     0,      0,      "\0" },
00151 };
00152 
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156 
00157 #endif