-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmill.h
40 lines (33 loc) · 1.29 KB
/
mill.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Public domain */
#ifndef _CADTOOLS_MILL_H_
#define _CADTOOLS_MILL_H_
#include "begin_code.h"
typedef struct cam_mill {
struct cam_machine _inherit;
Uint flags;
#define CAM_MILL_SPINDLE_SWITCH 0x001 /* Spindle on/off control */
#define CAM_MILL_SPINDLE_SPEED 0x002 /* Spindle speed control */
#define CAM_MILL_SPINDLE_TACHO 0x004 /* Spindle tachometer readout */
#define CAM_MILL_SYNC_TO_SPINDLE 0x008 /* Sync program with IRQ from
spindle tachometer */
#define CAM_MILL_COOL_MIST 0x010 /* Mist coolant */
#define CAM_MILL_COOL_FLOOD 0x020 /* Flood coolant */
#define CAM_MILL_COOL_VORTEX 0x040 /* Vortex tube */
#define CAM_MILL_XLIMIT 0x080 /* X limit switches */
#define CAM_MILL_YLIMIT 0x100 /* Y limit switches */
#define CAM_MILL_ZLIMIT 0x200 /* Z limit switches */
M_Real lenTable; /* Table length */
M_Real wTable; /* Table width */
M_Real xTravel; /* Longitudinal travel */
M_Real yTravel; /* Cross-slide travel */
M_Real zTravel; /* Cross-slide travel */
int spMinRPM; /* Minimum spindle RPM */
int spMaxRPM; /* Maximum spindle RPM */
M_Real spPower; /* Spindle power (watts) */
CAM_Chuck *spChuck; /* Spindle chuck model */
} CAM_Mill;
__BEGIN_DECLS
extern AG_ObjectClass camMillClass;
__END_DECLS
#include "close_code.h"
#endif /* _CADTOOLS_MILL_H_ */