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
259
260
261
262
263
|
package org.reprap;
import java.io.IOException;
import javax.media.j3d.Appearance;
import org.reprap.Device;
public interface Extruder
{
/**
* Dispose of the extruder object
*/
public void dispose();
/**
* Start the extruder motor at a given speed. This ranges from 0
* to 255 but is scaled by maxSpeed and t0, so that 255 corresponds to the
* highest permitted speed. It is also scaled so that 0 would correspond
* with the lowest extrusion speed.
* @param speed The speed to drive the motor at (0-255)
* @throws IOException
*/
public void setExtrusion(int speed) throws IOException;
/**
* Start the extruder motor at a given speed. This ranges from 0
* to 255 but is scaled by maxSpeed and t0, so that 255 corresponds to the
* highest permitted speed. It is also scaled so that 0 would correspond
* with the lowest extrusion speed.
* @param speed The speed to drive the motor at (0-255)
* @param reverse If set, run extruder in reverse
* @throws IOException
*/
public void setExtrusion(int speed, boolean reverse) throws IOException;
public void startExtruding();
public void stopExtruding();
/**
* Turn the heater of the extruder on. Inital temperature is defined by ???
* @throws Exception
*/
public void heatOn() throws Exception;
public void heatOff() throws Exception;
/**
* Set the temperature of the extruder at a given height. This height is given
* in centigrades, i.e. 100 equals 100 centigrades.
* @param temperature The temperature of the extruder in centigrades
* @throws Exception
*/
public void setTemperature(double temperature) throws Exception;
/**
* Set a heat output power. For normal production use you would
* normally call setTemperature, however this method may be useful
* for lower temperature profiling, etc.
* @param heat Heater power (0-255)
* @param maxTemp Cutoff temperature in celcius
* @throws IOException
*/
public void setHeater(int heat, double maxTemp) throws IOException;
/**
* Check if the extruder is out of feedstock
* @return true if there is no material remaining
*/
public boolean isEmpty();
/**
* @return the target temperature of the extruder
*/
public double getTemperatureTarget();
/**
* @return the default temperature of the extruder
*/
public double getDefaultTemperature();
/**
* @return the current temperature of the extruder
*/
public double getTemperature();
/**
* @return the infill speed as a value between [0,1]
*/
public double getInfillSpeedFactor();
/**
* @return the infill feedrate as a value in mm/minute
*/
public double getInfillFeedrate();
/**
* @return the outline speed as a avlue between [0,1]
*/
public double getOutlineSpeedFactor();
/**
* @return the outline feedrate as a value in mm/minute
*/
public double getOutlineFeedrate();
/**
* @return The length in mm to speed up when going round corners
*/
public double getAngleSpeedUpLength();
/**
* The factor by which to speed up when going round a corner.
* The formula is speed = baseSpeed*[1 - 0.5*(1 + ca)*getAngleSpeedFactor()]
* where ca is the cos of the angle between the lines. So it goes fastest when
* the line doubles back on itself (returning 1), and slowest when it
* continues straight (returning 1 - getAngleSpeedFactor()).
* @return the angle-speed factor
*/
public double getAngleSpeedFactor();
/**
* @return the angle feedrate as a value in mm/minute
*/
public double getAngleFeedrate();
/**
* Turn the cooler (fan?) on or off
* @param f true if the cooler is to be turned on, false to turn off
* @throws IOException
*/
public void setCooler(boolean f) throws IOException ;
/**
* Check if the extruder is available, which is determined by ???
* @return true if the extruder is available
*/
public boolean isAvailable();
/**
* @return the XY feedrate in mm/minute
*/
public double getXYFeedrate();
/**
* @return the extruder speeds
*/
public int getExtruderSpeed();
/**
* @return the extrusion size in millimeters
*/
public double getExtrusionSize();
/**
* @return the extrusion height in millimeters
*/
public double getExtrusionHeight();
/**
* @return the extrusion infill width in millimeters
*/
public double getExtrusionInfillWidth();
/**
* @return the extrusion overrun in millimeters
*/
public double getExtrusionOverRun();
/**
* @return the extrusion delay in seconds
*/
public long getExtrusionDelay();
/**
* @return the cooling period in seconds
*/
public int getCoolingPeriod();
/**
* @return the X offset in millimeters
*/
public double getOffsetX();
/**
* @return the Y offset in millimeters
*/
public double getOffsetY();
/**
* @return the Z offset in millimeters
*/
public double getOffsetZ();
/**
* @return the appearance (colour) to use in the simulation window for this material
*/
public Appearance getAppearance();
/**
* @return the material name
*/
public String toString();
/**
* @return whether nozzle wipe method is enabled or not
*/
public boolean getNozzleWipeEnabled();
/**
* @return the X-cord for the nozzle wiper
*/
public int getNozzleWipeDatumX();
/**
* @return the Y-cord for the nozzle wiper
*/
public int getNozzleWipeDatumY();
/**
* @return the length of the nozzle movement over the wiper
*/
public int getNozzleWipeStroke();
/**
* @return the number of times the nozzle moves over the wiper
*/
public int getNozzleWipeFreq();
/**
* Start polygons at a random location round their perimiter
* @return
*/
public boolean randomStart();
/**
* get short lengths which need to be plotted faster
* set -ve to turn this off.
* @return
*/
public double getShortLength();
/**
* Factor (between 0 and 1) to use to set the speed for
* short lines.
* @return
*/
public double getShortLineSpeedFactor();
/**
* Feedrate for short lines in mm/minute
* @return
*/
public double getShortLineFeedrate();
/**
* Number of mm to overlap the hatching infill with the outline. 0 gives none; -ve will
* leave a gap between the two
* @return
*/
public double getInfillOverlap();
}
|