-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShopBot_Arc_Inch.pp
More file actions
207 lines (150 loc) · 5.57 KB
/
ShopBot_Arc_Inch.pp
File metadata and controls
207 lines (150 loc) · 5.57 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
+------------------------------------------------
|
| ShopBot configuration file
|
+------------------------------------------------
|
| History
|
| Who When What
| ======== ========== ===========================
| Tony M 22/06/2005 Written
| Brian M 08/07/2005 Modified to output feed units correctly
| Brian M 14/07/2005 Modified to output 6 d.p
| Brian M 16/06/2006 Added NEW_SEGMENT section
| in case new tool has different
| feedrates to first tool
| Brian M 14/07/2006 Added circular arc support
| ScottJ 31/10/2007 setup file for PartWorks to keep look consistant
| ScottJ 12/05/2009 Fixed issue with mutiple toolpaths not remaining at Safe Z
| Mark M 30/11/2009 Added new 5.5 variables
+------------------------------------------------
POST_NAME = "ShopBot Eric (arcs)(inch) (*.sbp)"
FILE_EXTENSION = "sbp"
UNITS = "INCHES"
DIRECT_OUTPUT = "DIRECT to ShopBot|ShopBot_run.ini"
+------------------------------------------------
+ Line terminating characters
+------------------------------------------------
LINE_ENDING = "[13][10]"
+================================================
+
+ Formating for variables
+
+================================================
+------------------------------------------------
+ Spindle Speed
+------------------------------------------------
var SPINDLE_SPEED = [S|A|S|1.0]
+------------------------------------------------
+ Feed Rate
+------------------------------------------------
var CUT_RATE = [FC|A||1.2|0.0166]
var PLUNGE_RATE = [FP|A||1.2|0.0166]
var SPINDLE_SPEED = [S|A||1.0]
+------------------------------------------------
+ Tool position in x,y and z
+------------------------------------------------
var X_POSITION = [X|A||1.6]
var Y_POSITION = [Y|A||1.6]
var Z_POSITION = [Z|A||1.6]
+------------------------------------------------
+ Home tool positions
+------------------------------------------------
var X_HOME_POSITION = [XH|A||1.6]
var Y_HOME_POSITION = [YH|A||1.6]
var Z_HOME_POSITION = [ZH|A||1.6]
+------------------------------------------------
+ Arc centre positions - incremental from arc start
+------------------------------------------------
VAR ARC_CENTRE_I_INC_POSITION = [I|A||1.6]
VAR ARC_CENTRE_J_INC_POSITION = [J|A||1.6]
+================================================
+
+ Block definitions for toolpath output
+
+================================================
+---------------------------------------------------
+ Commands output at the start of the file
+---------------------------------------------------
begin HEADER
"'[TP_FILENAME]"
"'File created: [DATE] - [TIME]"
"'SHOPBOT FILE IN INCHES"
"IF %(25)=1 THEN GOTO UNIT_ERROR 'check to see software is set to standard"
"C#,90 'Lookup offset values"
"'"
"'Turning router ON"
"IF [S] < 100 Then SO,1,0"
"IF [S] >= 100 Then SO,1,1"
""
"PAUSE 2"
"'"
+ "'[FILE_NOTES]"
+ "'Toolpaths used in this file:"
+ "'[TOOLPATHS_OUTPUT]"
+ "'Tools used in this file: "
+ "'[TOOLS_USED]"
"'"
"'Toolpath Name = [TOOLPATH_NAME]"
"'Tool Name = [TOOLNAME]"
+ "'[TOOLPATH_NOTES]"
"MS,[FC],[FP]"
"JZ,[ZH]"
"J2,[XH],[YH]"
+---------------------------------------------------
+ Commands output for rapid moves
+---------------------------------------------------
begin RAPID_MOVE
"J3,[X],[Y],[Z]"
+---------------------------------------------------
+ Commands output for the first feed rate move
+---------------------------------------------------
begin FIRST_FEED_MOVE
"M3,[X],[Y],[Z]"
+---------------------------------------------------
+ Commands output for feed rate moves
+---------------------------------------------------
begin FEED_MOVE
"M3,[X],[Y],[Z]"
+---------------------------------------------------
+ Commands output for clockwise arc move
+---------------------------------------------------
begin CW_ARC_MOVE
"CG, ,[X],[Y],[I],[J],T,1"
+---------------------------------------------------
+ Commands output for counterclockwise arc move
+---------------------------------------------------
begin CCW_ARC_MOVE
"CG, ,[X],[Y],[I],[J],T,-1"
+---------------------------------------------------
+ Commands output for a new segment - toolpath
+ with same toolnumber but maybe different feedrates
+---------------------------------------------------
begin NEW_SEGMENT
"'Toolpath Name = [TOOLPATH_NAME]"
"'Tool Name = [TOOLNAME]"
"'----------------------------------------------------------------"
+ "'[TOOLPATH_NOTES]"
"'----------------------------------------------------------------"
"'Turning router ON"
"IF [S] < 100 Then SO,1,0"
"IF [S] >= 100 Then SO,1,1"
""
"PAUSE 2"
"MS,[FC],[FP]"
"J3,[X],[Y],[ZH]"
+---------------------------------------------------
+ Commands output at the end of the file
+---------------------------------------------------
begin FOOTER
"JZ,[ZH]"
"'"
"'Turning router OFF"
"SO,1,0"
"J2,[XH],[YH]"
"END"
"'"
"UNIT_ERROR:"
"C#,91 'Run file explaining unit error"
"END"