Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

emcglb.h

Go to the documentation of this file.
00001 #ifndef EMCGLB_H
00002 #define EMCGLB_H
00003 
00004 /*
00005   declarations for globals found in emcglb.c
00006 
00007   Modification history:
00008 
00009   31-May-2001  FMP changed decl of EMC_DEBUG_INTERP_LIST to be bit-shifted 
00010   over so that it's consistent number-wise with the rest
00011   25-May-2001  FMP added EMC_DEBUG_TRAJ
00012   19-May-2000  FMP added LUBE_WRITE_INDEX,POLARITY
00013   6-Mar-2000  FMP added EMC_DEBUG_NML
00014   25-Feb-2000  FMP added decl of emcInitGlobals()
00015   23-Feb-2000  FMP added AXIS_MAX_VELOCITY[]; moved EMC_AXIS_MAX here from
00016   emc.hh
00017   15-Sep-1999  FMP added EMC_DEBUG_IO_POINTS
00018   3-Sep-1999  FMP added EMC_DEBUG_VERSIONS
00019   15-Jun-1999  FMP added EMC_DEBUG_DEFAULTS, etc.
00020   2-Jun-1999  FMP added TRAJ_DEFAULT_VELOCITY
00021   6-Jul-1998  FMP added EMC_DEBUG, emcGetArgs decl
00022   15-May-1998  FMP added TRAJ_MAX_VELOCITY
00023   23-Apr-1998  FMP added TOOL_TABLE_FILE
00024   1-Apr-1998 FMP added SPINDLE_ON_INDEX, SPINDLE_ENABLE_INDEX,POLARITY
00025   */
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 #define EMC_AXIS_MAX 8
00032 
00033 #define EMC_INIFILE_LEN 256
00034 extern char EMC_INIFILE[EMC_INIFILE_LEN];
00035 
00036 #define EMC_NMLFILE_LEN 256
00037 extern char EMC_NMLFILE[EMC_NMLFILE_LEN];
00038 
00039 #define DEFAULT_RS274NGC_STARTUP_CODE ""
00040 #define RS274NGC_STARTUP_CODE_MAX 256
00041 extern char RS274NGC_STARTUP_CODE[RS274NGC_STARTUP_CODE_MAX];
00042 
00043 
00044 /* debug bitflags */
00045 /* Note: these may be hard-code referenced by the GUI (e.g., emcdebug.tcl).
00046    If you change the assignments here, make sure and reflect that in
00047    the GUI scripts that use these. Unfortunately there's no easy way to
00048    get these into Tk automatically */
00049 extern int EMC_DEBUG;
00050 #define EMC_DEBUG_INVALID           0x00000001
00051 #define EMC_DEBUG_CONFIG            0x00000002
00052 #define EMC_DEBUG_DEFAULTS          0x00000004
00053 #define EMC_DEBUG_VERSIONS          0x00000008
00054 #define EMC_DEBUG_TASK_ISSUE        0x00000010
00055 #define EMC_DEBUG_IO_POINTS         0x00000020
00056 #define EMC_DEBUG_NML               0x00000040
00057 #define EMC_DEBUG_MOTION_TIME       0x00000080
00058 #define EMC_DEBUG_INTERP            0x00000100
00059 #define EMC_DEBUG_RCS               0x00000200
00060 #define EMC_DEBUG_TRAJ              0x00000400
00061 #define EMC_DEBUG_INTERP_LIST       0x00000800
00062 #define EMC_DEBUG_ALL               0x7FFFFFFF /* it's an int for %i to work */
00063 
00064 extern double EMC_TASK_CYCLE_TIME;
00065 
00066 extern double EMC_IO_CYCLE_TIME;
00067 
00068 #define TOOL_TABLE_FILE_LEN 256
00069 extern char TOOL_TABLE_FILE[TOOL_TABLE_FILE_LEN];
00070 
00071 extern double TRAJ_DEFAULT_VELOCITY;
00072 extern double TRAJ_MAX_VELOCITY;
00073 
00074 extern double AXIS_MAX_VELOCITY[EMC_AXIS_MAX];
00075 
00076 extern double SPINDLE_OFF_WAIT;
00077 extern double SPINDLE_ON_WAIT;
00078 
00079 extern int ESTOP_SENSE_INDEX;
00080 extern int LUBE_SENSE_INDEX;
00081 
00082 extern int ESTOP_SENSE_POLARITY;
00083 extern int LUBE_SENSE_POLARITY;
00084 
00085 extern int SPINDLE_ON_INDEX;
00086 
00087 extern int SPINDLE_FORWARD_INDEX;
00088 extern int SPINDLE_REVERSE_INDEX;
00089 extern int SPINDLE_BRAKE_INDEX;
00090 extern int SPINDLE_DECREASE_INDEX;
00091 extern int SPINDLE_INCREASE_INDEX;
00092 extern int SPINDLE_ENABLE_INDEX;
00093 extern int MIST_COOLANT_INDEX;
00094 extern int FLOOD_COOLANT_INDEX;
00095 extern int ESTOP_WRITE_INDEX;
00096 extern int LUBE_WRITE_INDEX;
00097 
00098 extern int SPINDLE_FORWARD_POLARITY;
00099 extern int SPINDLE_REVERSE_POLARITY;
00100 extern int MIST_COOLANT_POLARITY;
00101 extern int FLOOD_COOLANT_POLARITY;
00102 extern int SPINDLE_DECREASE_POLARITY;
00103 extern int SPINDLE_INCREASE_POLARITY;
00104 extern int ESTOP_WRITE_POLARITY;
00105 extern int SPINDLE_BRAKE_POLARITY;
00106 extern int SPINDLE_ENABLE_POLARITY;
00107 extern int LUBE_WRITE_POLARITY;
00108 
00109 #define DEFAULT_EMCLOG_INCLUDE_HEADER (1)
00110 extern int EMCLOG_INCLUDE_HEADER;
00111 
00112 /*just used to keep track of unneccessary debug printing. */
00113 extern int taskplanopen; 
00114 
00115 extern int emcGetArgs(int argc, char *argv[]);
00116 extern void emcInitGlobals();
00117 
00118 #ifdef __cplusplus
00119 } /* matches extern "C" at top */
00120 #endif
00121 
00122 #endif /* EMCGLB_H */

Generated on Sun Dec 2 15:27:38 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001