-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·258 lines (247 loc) · 9.8 KB
/
index.html
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>pcb2GCode online</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/forms.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<script type="text/javascript" src="script.js"></script>
</head>
<body onload="init();">
<div id="outerContainer">
<div id="container">
<h1>pcb2GCode online (beta)</h1>
<div id="ieerror">
<p>It seems your using Internet Explorer {version}. Since IE is the only browser that doesn't fully support SVG, we would like to ask you to download a browser that does. Like:
<ul>
<li><a href="http://www.mozilla.com/firefox/" target="_blank">Mozilla Firefox</a></li>
<li><a href="www.opera.com/" target="_blank">Opera</a></li>
<li><a href="http://www.chromium.org/" target="_blank">Chromium</a></li>
<li><a href="http://www.google.com/chrome" target="_blank">Google Chrome</a></li>
</ul>
</p>
</div>
<div id="editor">
<div id="frame1" class="frame">
<h2>input</h2>
<form enctype="multipart/form-data" method="post">
<!--action="pcb2gcode.php?action=generateGCode" -->
<div id="input">
<h3 class="first">input gerber files</h3>
<div>
<label>front</label>
<input type="file" name="front"/>
<p class="description">front side RS274-X .gbr</p>
</div>
<div>
<label>back</label>
<input type="file" name="back"/>
<p class="description">back side RS274-X .gbr</p>
</div>
<div>
<label>outline</label>
<input type="file" name="outline"/>
<p class="description">pcb outline RS274-X .gbr; outline drawn in 10mil traces</p>
</div>
<div>
<label>drill</label>
<input type="file" name="drill"/>
<p class="description">Excellon drill file</p>
</div>
<h3>isolation milling</h3>
<div>
<label>zwork</label>
<input type="text" name="zwork" value="-0.008" />
<p class="description">milling depth in inches (Z-coordinate while engraving)</p>
</div>
<div>
<label>zsafe</label>
<input type="text" name="zsafe" value="1" />
<p class="description">safety height (Z-coordinate during rapid moves)</p>
</div>
<div>
<label>offset</label>
<input type="text" name="offset" value="2" />
<p class="description">distance between the PCB traces and the end mill path in inches; usually half the isolation width</p>
</div>
<div>
<label>mill-feed</label>
<input type="text" name="mill-feed" value="6" />
<p class="description">feed while isolating in ipm</p>
</div>
<div>
<label>mill-speed</label>
<input type="text" name="mill-speed" value="30000" />
<p class="description">spindle rpm when milling</p>
</div>
<div>
<label>milldrill</label>
<input type="checkbox" name="milldrill" value="milldrill" />
<p class="description">drill using the mill head</p>
</div>
<div>
<label>extra-passes</label>
<input type="text" name="extra-passes" value="" />
<p class="description">specify the the number of extra isolation passes, increasing the isolation width half the tool diameter with each pass</p>
</div>
<h3>board outline milling</h3>
<div>
<label>cutter-diameter</label>
<input type="text" name="cutter-diameter" value="0.059055118" />
<p class="description">diameter of the end mill used for cutting out the PCB</p>
</div>
<div>
<label>zcut</label>
<input type="text" name="zcut" value="-0.08" />
<p class="description">PCB cutting depth in inches.</p>
</div>
<div>
<label>cut-feed</label>
<input type="text" name="cut-feed" value="6" />
<p class="description">PCB cutting feed</p>
</div>
<div>
<label>cut-speed</label>
<input type="text" name="cut-speed" value="20000" />
<p class="description">PCB cutting spindle speed</p>
</div>
<div>
<label>cut-infeed</label>
<input type="text" name="cut-infeed" value="1" />
<p class="description">Maximum cutting depth; PCB may be cut in multiple passes</p>
</div>
<h3>hole drilling</h3>
<div>
<label>zdrill</label>
<input type="text" name="zdrill" value="-0.08" />
<p class="description">drill depth</p>
</div>
<div>
<label>zchange</label>
<input type="text" name="zchange" value="0.25" />
<p class="description">tool changing height</p>
</div>
<div>
<label>drill-feed</label>
<input type="text" name="drill-feed" value="6" />
<p class="description">drill feed; ipm</p>
</div>
<div>
<label>drill-speed</label>
<input type="text" name="drill-speed" value="20000" />
<p class="description">spindle rpm when drilling</p>
</div>
<div>
<label>drill-front </label>
<input type="checkbox" name="drill-front" value="drill-front" />
<p class="description">drill through the front side of board</p>
</div>
<h3>general</h3>
<div>
<label>metric</label>
<input type="checkbox" name="metric" value="metric" />
<p class="description">all units are given metric</p>
</div>
<div>
<label>dpi</label>
<input type="text" name="dpi" value="1000" />
<p class="description">virtual photoplot resolution</p>
</div>
<div>
<label>mirror-absolute</label>
<input type="checkbox" name="mirror-absolute" value="mirror-absolute" />
<p class="description">mirror back side along absolute zero instead of board center</p>
</div>
<h3>output files</h3>
<div>
<label>basename</label>
<input type="text" name="basename" value="" />
<p class="description">prefix for default output file names</p>
</div>
<div>
<label>front-output</label>
<input type="text" name="front-output" value="front" />
<p class="description">output file for front layer</p>
</div>
<div>
<label>back-output</label>
<input type="text" name="back-output" value="back" />
<p class="description">output file for back layer</p>
</div>
<div>
<label>outline-output </label>
<input type="text" name="outline-output" value="outline" />
<p class="description">output file for outline</p>
</div>
<div>
<label>drill-output</label>
<input type="text" name="drill-output" value="drill" />
<p class="description">output file for drilling</p>
</div>
</div>
<input type="button" class="button" value="create GCode" onclick="onCreateGCODEMouseDown();"/>
</form>
</div>
<div id="frame2" class="frame">
<h2>GCode</h2>
<div class="tabs" id="gcodeTabs"></div>
<textarea name="gcode" onchange="onGCodeChanged();" id="gcode" class="code">
(Example gcode)
G21
G90
F100
S1000
G00 X0.000 Y0.000 Z0.000
G01 Z-1.000 F100
G01 X5 Y0 F100
G01 X5 Y5 F100
G01 X0 Y5 F100
G01 X0 Y0 F100
G01 Z1.000 F300
G00 X10.000 Y0.000 F300
G01 Z-0.500 F100
G01 X15 Y0 F100
G01 X15 Y5 F100
G01 X10 Y5 F100
G01 X10 Y0 F100
G01 Z1.000 F300
G00 X0.000 Y10.000 F300
G01 Z-0.200 F100
G01 X15 Y10 F100
G01 X15 Y14 F100
G01 X13 Y14 F100
G01 X13 Y15 F100
G01 X2 Y15 F100
G01 X2 Y14 F100
G01 X0 Y14 F100
G01 X0 Y10 F100
G01 Z1.000 F300
G00 X0.000 Y0.000 F300
</textarea><br />
<div id="gcodeDownloads" class="menu">
<input type="button" value="download" class="button" onclick="downloadCurrentGCode();" title="download this gcode" />
<input type="button" value="download all" class="button" onclick="download('all');" title="download all generated files" />
</div>
</div>
<div id="frame3" class="frame">
<h2>preview</h2>
<div class="menu" id="previewMenu"><input type="button" class="button" value="+" onclick="zoom(1);" title="zoom in" /><input type="button" class="button" value="⊕" onclick="zoom(0);" title="default viewbox" /><input type="button" class="button" value="−" onclick="zoom(-1);" title="zoom out" /></div>
<div class="tabs" id="previewTabs"><a href="#" onclick="gotoPreview('visualization')" class="active">visualization</a><a href="#" onclick="gotoPreview('org')">org</a><a href="#" onclick="gotoPreview('traced')">traced</a><a href="#" onclick="gotoPreview('info')">info</a></div>
<div id="previewContainer">
</div>
<div id="boundsDisplay"></div>
<input type="button" value="download" class="button" onclick="downloadCurrentPreview();" title="download this preview" />
</div>
<div class="clear"></div>
</div>
<div id="footer">
Initiative of <a href="http://www.fablabamersfoort.nl" target="_blank">Fablab Amersfoort</a> - Powered by <a href="http://sourceforge.net/apps/mediawiki/pcb2gcode/index.php?title=Main_Page" target="_blank">pcb2gcode</a> - <a href="https://github.com/PlanBCode/pcb2gcode" target="_blank">Code</a> - <a href="https://github.com/PlanBCode/pcb2gcode/issues" target="_blank">Issues / suggestions</a>
</div>
</div>
</div>
<form method="post" action="pcb2gcode.php?action=downloadContent" id="downloadForm">
<input type="hidden" value="" name="content" />
<input type="hidden" value="" name="type" />
</form>
</body>
</html>