浏览代码

Compiling errors with 4 Extruders defined

Here were a few changes that I had to make/add lines for the 4th hotend.
A compiling problem in the Temperature.cpp and missing lines in
configuration.h and configuration_adv.h. I added these lines in all of
the example configs too.
Natealus 9 年前
父节点
当前提交
697ee2dc50

+ 3
- 0
Marlin/Configuration.h 查看文件

122
 #define TEMP_SENSOR_0 -1
122
 #define TEMP_SENSOR_0 -1
123
 #define TEMP_SENSOR_1 -1
123
 #define TEMP_SENSOR_1 -1
124
 #define TEMP_SENSOR_2 0
124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125
 #define TEMP_SENSOR_BED 0
126
 #define TEMP_SENSOR_BED 0
126
 
127
 
127
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
128
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
139
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_2_MINTEMP 5
142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142
 #define BED_MINTEMP 5
144
 #define BED_MINTEMP 5
143
 
145
 
144
 // When temperature exceeds max temp, your heater will be switched off.
146
 // When temperature exceeds max temp, your heater will be switched off.
147
 #define HEATER_0_MAXTEMP 275
149
 #define HEATER_0_MAXTEMP 275
148
 #define HEATER_1_MAXTEMP 275
150
 #define HEATER_1_MAXTEMP 275
149
 #define HEATER_2_MAXTEMP 275
151
 #define HEATER_2_MAXTEMP 275
152
+#define HEATER_3_MAXTEMP 275
150
 #define BED_MAXTEMP 150
153
 #define BED_MAXTEMP 150
151
 
154
 
152
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 4
- 1
Marlin/example_configurations/Hephestos/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
122
 #define TEMP_SENSOR_0 1
122
 #define TEMP_SENSOR_0 1
123
 #define TEMP_SENSOR_1 0
123
 #define TEMP_SENSOR_1 0
124
 #define TEMP_SENSOR_2 0
124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125
 #define TEMP_SENSOR_BED 0
126
 #define TEMP_SENSOR_BED 0
126
 
127
 
127
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
128
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
139
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_2_MINTEMP 5
142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142
 #define BED_MINTEMP 5
144
 #define BED_MINTEMP 5
143
 
145
 
144
 // When temperature exceeds max temp, your heater will be switched off.
146
 // When temperature exceeds max temp, your heater will be switched off.
147
 #define HEATER_0_MAXTEMP 260
149
 #define HEATER_0_MAXTEMP 260
148
 #define HEATER_1_MAXTEMP 260
150
 #define HEATER_1_MAXTEMP 260
149
 #define HEATER_2_MAXTEMP 260
151
 #define HEATER_2_MAXTEMP 260
152
+#define HEATER_3_MAXTEMP 260
150
 #define BED_MAXTEMP 150
153
 #define BED_MAXTEMP 150
151
 
154
 
152
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 4
- 1
Marlin/example_configurations/K8200/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
124
 #define TEMP_SENSOR_0 5
124
 #define TEMP_SENSOR_0 5
125
 #define TEMP_SENSOR_1 0
125
 #define TEMP_SENSOR_1 0
126
 #define TEMP_SENSOR_2 0
126
 #define TEMP_SENSOR_2 0
127
+#define TEMP_SENSOR_3 0
127
 #define TEMP_SENSOR_BED 5
128
 #define TEMP_SENSOR_BED 5
128
 
129
 
129
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
130
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
141
 #define HEATER_0_MINTEMP 5
142
 #define HEATER_0_MINTEMP 5
142
 #define HEATER_1_MINTEMP 5
143
 #define HEATER_1_MINTEMP 5
143
 #define HEATER_2_MINTEMP 5
144
 #define HEATER_2_MINTEMP 5
145
+#define HEATER_3_MINTEMP 5
144
 #define BED_MINTEMP 5
146
 #define BED_MINTEMP 5
145
 
147
 
146
 // When temperature exceeds max temp, your heater will be switched off.
148
 // When temperature exceeds max temp, your heater will be switched off.
149
 #define HEATER_0_MAXTEMP 275
151
 #define HEATER_0_MAXTEMP 275
150
 #define HEATER_1_MAXTEMP 275
152
 #define HEATER_1_MAXTEMP 275
151
 #define HEATER_2_MAXTEMP 275
153
 #define HEATER_2_MAXTEMP 275
154
+#define HEATER_3_MAXTEMP 275
152
 #define BED_MAXTEMP 150
155
 #define BED_MAXTEMP 150
153
 
156
 
154
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
157
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 4
- 1
Marlin/example_configurations/SCARA/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
142
 #define TEMP_SENSOR_0 1
142
 #define TEMP_SENSOR_0 1
143
 #define TEMP_SENSOR_1 0
143
 #define TEMP_SENSOR_1 0
144
 #define TEMP_SENSOR_2 0
144
 #define TEMP_SENSOR_2 0
145
+#define TEMP_SENSOR_3 0
145
 #define TEMP_SENSOR_BED 1
146
 #define TEMP_SENSOR_BED 1
146
 
147
 
147
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
148
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
159
 #define HEATER_0_MINTEMP 5
160
 #define HEATER_0_MINTEMP 5
160
 #define HEATER_1_MINTEMP 5
161
 #define HEATER_1_MINTEMP 5
161
 #define HEATER_2_MINTEMP 5
162
 #define HEATER_2_MINTEMP 5
163
+#define HEATER_3_MINTEMP 5
162
 #define BED_MINTEMP 5
164
 #define BED_MINTEMP 5
163
 
165
 
164
 // When temperature exceeds max temp, your heater will be switched off.
166
 // When temperature exceeds max temp, your heater will be switched off.
167
 #define HEATER_0_MAXTEMP 275
169
 #define HEATER_0_MAXTEMP 275
168
 #define HEATER_1_MAXTEMP 275
170
 #define HEATER_1_MAXTEMP 275
169
 #define HEATER_2_MAXTEMP 275
171
 #define HEATER_2_MAXTEMP 275
172
+#define HEATER_3_MAXTEMP 275
170
 #define BED_MAXTEMP 150
173
 #define BED_MAXTEMP 150
171
 
174
 
172
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
175
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 12
- 0
Marlin/example_configurations/SCARA/Configuration_adv.h 查看文件

78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 
84
 
478
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
479
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
479
   #define HEATER_2_USES_THERMISTOR
480
   #define HEATER_2_USES_THERMISTOR
480
 #endif
481
 #endif
482
+#if TEMP_SENSOR_3 > 0
483
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
484
+  #define HEATER_3_USES_THERMISTOR
485
+#endif
481
 #if TEMP_SENSOR_BED > 0
486
 #if TEMP_SENSOR_BED > 0
482
   #define THERMISTORBED TEMP_SENSOR_BED
487
   #define THERMISTORBED TEMP_SENSOR_BED
483
   #define BED_USES_THERMISTOR
488
   #define BED_USES_THERMISTOR
491
 #if TEMP_SENSOR_2 == -1
496
 #if TEMP_SENSOR_2 == -1
492
   #define HEATER_2_USES_AD595
497
   #define HEATER_2_USES_AD595
493
 #endif
498
 #endif
499
+#if TEMP_SENSOR_3 == -1
500
+  #define HEATER_3_USES_AD595
501
+#endif
494
 #if TEMP_SENSOR_BED == -1
502
 #if TEMP_SENSOR_BED == -1
495
   #define BED_USES_AD595
503
   #define BED_USES_AD595
496
 #endif
504
 #endif
509
   #undef HEATER_2_MINTEMP
517
   #undef HEATER_2_MINTEMP
510
   #undef HEATER_2_MAXTEMP
518
   #undef HEATER_2_MAXTEMP
511
 #endif
519
 #endif
520
+#if TEMP_SENSOR_3 == 0
521
+  #undef HEATER_3_MINTEMP
522
+  #undef HEATER_3_MAXTEMP
523
+#endif
512
 #if TEMP_SENSOR_BED == 0
524
 #if TEMP_SENSOR_BED == 0
513
   #undef BED_MINTEMP
525
   #undef BED_MINTEMP
514
   #undef BED_MAXTEMP
526
   #undef BED_MAXTEMP

+ 4
- 1
Marlin/example_configurations/WITBOX/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
125
 #define TEMP_SENSOR_0 1
125
 #define TEMP_SENSOR_0 1
126
 #define TEMP_SENSOR_1 0
126
 #define TEMP_SENSOR_1 0
127
 #define TEMP_SENSOR_2 0
127
 #define TEMP_SENSOR_2 0
128
+#define TEMP_SENSOR_3 0
128
 #define TEMP_SENSOR_BED 0
129
 #define TEMP_SENSOR_BED 0
129
 
130
 
130
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
131
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
142
 #define HEATER_0_MINTEMP 5
143
 #define HEATER_0_MINTEMP 5
143
 #define HEATER_1_MINTEMP 5
144
 #define HEATER_1_MINTEMP 5
144
 #define HEATER_2_MINTEMP 5
145
 #define HEATER_2_MINTEMP 5
146
+#define HEATER_3_MINTEMP 5
145
 #define BED_MINTEMP 5
147
 #define BED_MINTEMP 5
146
 
148
 
147
 // When temperature exceeds max temp, your heater will be switched off.
149
 // When temperature exceeds max temp, your heater will be switched off.
150
 #define HEATER_0_MAXTEMP 260
152
 #define HEATER_0_MAXTEMP 260
151
 #define HEATER_1_MAXTEMP 260
153
 #define HEATER_1_MAXTEMP 260
152
 #define HEATER_2_MAXTEMP 260
154
 #define HEATER_2_MAXTEMP 260
155
+#define HEATER_3_MAXTEMP 260
153
 #define BED_MAXTEMP 150
156
 #define BED_MAXTEMP 150
154
 
157
 
155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
158
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 4
- 1
Marlin/example_configurations/delta/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
147
 #define TEMP_SENSOR_0 -1
147
 #define TEMP_SENSOR_0 -1
148
 #define TEMP_SENSOR_1 -1
148
 #define TEMP_SENSOR_1 -1
149
 #define TEMP_SENSOR_2 0
149
 #define TEMP_SENSOR_2 0
150
+#define TEMP_SENSOR_3 0
150
 #define TEMP_SENSOR_BED 0
151
 #define TEMP_SENSOR_BED 0
151
 
152
 
152
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
153
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
164
 #define HEATER_0_MINTEMP 5
165
 #define HEATER_0_MINTEMP 5
165
 #define HEATER_1_MINTEMP 5
166
 #define HEATER_1_MINTEMP 5
166
 #define HEATER_2_MINTEMP 5
167
 #define HEATER_2_MINTEMP 5
168
+#define HEATER_3_MINTEMP 5
167
 #define BED_MINTEMP 5
169
 #define BED_MINTEMP 5
168
 
170
 
169
 // When temperature exceeds max temp, your heater will be switched off.
171
 // When temperature exceeds max temp, your heater will be switched off.
172
 #define HEATER_0_MAXTEMP 275
174
 #define HEATER_0_MAXTEMP 275
173
 #define HEATER_1_MAXTEMP 275
175
 #define HEATER_1_MAXTEMP 275
174
 #define HEATER_2_MAXTEMP 275
176
 #define HEATER_2_MAXTEMP 275
177
+#define HEATER_3_MAXTEMP 275
175
 #define BED_MAXTEMP 150
178
 #define BED_MAXTEMP 150
176
 
179
 
177
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
180
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 12
- 0
Marlin/example_configurations/delta/Configuration_adv.h 查看文件

78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 
84
 
472
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
473
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
473
   #define HEATER_2_USES_THERMISTOR
474
   #define HEATER_2_USES_THERMISTOR
474
 #endif
475
 #endif
476
+#if TEMP_SENSOR_3 > 0
477
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
478
+  #define HEATER_3_USES_THERMISTOR
479
+#endif
475
 #if TEMP_SENSOR_BED > 0
480
 #if TEMP_SENSOR_BED > 0
476
   #define THERMISTORBED TEMP_SENSOR_BED
481
   #define THERMISTORBED TEMP_SENSOR_BED
477
   #define BED_USES_THERMISTOR
482
   #define BED_USES_THERMISTOR
485
 #if TEMP_SENSOR_2 == -1
490
 #if TEMP_SENSOR_2 == -1
486
   #define HEATER_2_USES_AD595
491
   #define HEATER_2_USES_AD595
487
 #endif
492
 #endif
493
+#if TEMP_SENSOR_3 == -1
494
+  #define HEATER_3_USES_AD595
495
+#endif
488
 #if TEMP_SENSOR_BED == -1
496
 #if TEMP_SENSOR_BED == -1
489
   #define BED_USES_AD595
497
   #define BED_USES_AD595
490
 #endif
498
 #endif
503
   #undef HEATER_2_MINTEMP
511
   #undef HEATER_2_MINTEMP
504
   #undef HEATER_2_MAXTEMP
512
   #undef HEATER_2_MAXTEMP
505
 #endif
513
 #endif
514
+#if TEMP_SENSOR_3 == 0
515
+  #undef HEATER_3_MINTEMP
516
+  #undef HEATER_3_MAXTEMP
517
+#endif
506
 #if TEMP_SENSOR_BED == 0
518
 #if TEMP_SENSOR_BED == 0
507
   #undef BED_MINTEMP
519
   #undef BED_MINTEMP
508
   #undef BED_MAXTEMP
520
   #undef BED_MAXTEMP

+ 4
- 1
Marlin/example_configurations/makibox/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
127
 #define TEMP_SENSOR_0 1
127
 #define TEMP_SENSOR_0 1
128
 #define TEMP_SENSOR_1 0
128
 #define TEMP_SENSOR_1 0
129
 #define TEMP_SENSOR_2 0
129
 #define TEMP_SENSOR_2 0
130
+#define TEMP_SENSOR_3 0
130
 #define TEMP_SENSOR_BED 12
131
 #define TEMP_SENSOR_BED 12
131
 
132
 
132
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
133
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
144
 #define HEATER_0_MINTEMP 5
145
 #define HEATER_0_MINTEMP 5
145
 #define HEATER_1_MINTEMP 5
146
 #define HEATER_1_MINTEMP 5
146
 #define HEATER_2_MINTEMP 5
147
 #define HEATER_2_MINTEMP 5
148
+#define HEATER_3_MINTEMP 5
147
 #define BED_MINTEMP 5
149
 #define BED_MINTEMP 5
148
 
150
 
149
 // When temperature exceeds max temp, your heater will be switched off.
151
 // When temperature exceeds max temp, your heater will be switched off.
152
 #define HEATER_0_MAXTEMP 275
154
 #define HEATER_0_MAXTEMP 275
153
 #define HEATER_1_MAXTEMP 275
155
 #define HEATER_1_MAXTEMP 275
154
 #define HEATER_2_MAXTEMP 275
156
 #define HEATER_2_MAXTEMP 275
157
+#define HEATER_3_MAXTEMP 275
155
 #define BED_MAXTEMP 150
158
 #define BED_MAXTEMP 150
156
 
159
 
157
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
160
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the

+ 12
- 0
Marlin/example_configurations/makibox/Configuration_adv.h 查看文件

78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 
84
 
469
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
470
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
470
   #define HEATER_2_USES_THERMISTOR
471
   #define HEATER_2_USES_THERMISTOR
471
 #endif
472
 #endif
473
+#if TEMP_SENSOR_3 > 0
474
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
475
+  #define HEATER_3_USES_THERMISTOR
476
+#endif
472
 #if TEMP_SENSOR_BED > 0
477
 #if TEMP_SENSOR_BED > 0
473
   #define THERMISTORBED TEMP_SENSOR_BED
478
   #define THERMISTORBED TEMP_SENSOR_BED
474
   #define BED_USES_THERMISTOR
479
   #define BED_USES_THERMISTOR
482
 #if TEMP_SENSOR_2 == -1
487
 #if TEMP_SENSOR_2 == -1
483
   #define HEATER_2_USES_AD595
488
   #define HEATER_2_USES_AD595
484
 #endif
489
 #endif
490
+#if TEMP_SENSOR_3 == -1
491
+  #define HEATER_3_USES_AD595
492
+#endif
485
 #if TEMP_SENSOR_BED == -1
493
 #if TEMP_SENSOR_BED == -1
486
   #define BED_USES_AD595
494
   #define BED_USES_AD595
487
 #endif
495
 #endif
500
   #undef HEATER_2_MINTEMP
508
   #undef HEATER_2_MINTEMP
501
   #undef HEATER_2_MAXTEMP
509
   #undef HEATER_2_MAXTEMP
502
 #endif
510
 #endif
511
+#if TEMP_SENSOR_3 == 0
512
+  #undef HEATER_3_MINTEMP
513
+  #undef HEATER_3_MAXTEMP
514
+#endif
503
 #if TEMP_SENSOR_BED == 0
515
 #if TEMP_SENSOR_BED == 0
504
   #undef BED_MINTEMP
516
   #undef BED_MINTEMP
505
   #undef BED_MAXTEMP
517
   #undef BED_MAXTEMP

+ 4
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h 查看文件

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
126
 #define TEMP_SENSOR_0 5
126
 #define TEMP_SENSOR_0 5
127
 #define TEMP_SENSOR_1 0
127
 #define TEMP_SENSOR_1 0
128
 #define TEMP_SENSOR_2 0
128
 #define TEMP_SENSOR_2 0
129
+#define TEMP_SENSOR_3 0
129
 #define TEMP_SENSOR_BED 5
130
 #define TEMP_SENSOR_BED 5
130
 
131
 
131
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
132
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
143
 #define HEATER_0_MINTEMP 5
144
 #define HEATER_0_MINTEMP 5
144
 #define HEATER_1_MINTEMP 5
145
 #define HEATER_1_MINTEMP 5
145
 #define HEATER_2_MINTEMP 5
146
 #define HEATER_2_MINTEMP 5
147
+#define HEATER_3_MINTEMP 5
146
 #define BED_MINTEMP 5
148
 #define BED_MINTEMP 5
147
 
149
 
148
 // When temperature exceeds max temp, your heater will be switched off.
150
 // When temperature exceeds max temp, your heater will be switched off.
151
 #define HEATER_0_MAXTEMP 275
153
 #define HEATER_0_MAXTEMP 275
152
 #define HEATER_1_MAXTEMP 275
154
 #define HEATER_1_MAXTEMP 275
153
 #define HEATER_2_MAXTEMP 275
155
 #define HEATER_2_MAXTEMP 275
156
+#define HEATER_3_MAXTEMP 275
154
 #define BED_MAXTEMP 150
157
 #define BED_MAXTEMP 150
155
 
158
 
156
 #define CONFIG_STEPPERS_TOSHIBA	1
159
 #define CONFIG_STEPPERS_TOSHIBA	1

+ 12
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h 查看文件

78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83
 
84
 
472
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
473
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
473
   #define HEATER_2_USES_THERMISTOR
474
   #define HEATER_2_USES_THERMISTOR
474
 #endif
475
 #endif
476
+#if TEMP_SENSOR_3 > 0
477
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
478
+  #define HEATER_3_USES_THERMISTOR
479
+#endif
475
 #if TEMP_SENSOR_BED > 0
480
 #if TEMP_SENSOR_BED > 0
476
   #define THERMISTORBED TEMP_SENSOR_BED
481
   #define THERMISTORBED TEMP_SENSOR_BED
477
   #define BED_USES_THERMISTOR
482
   #define BED_USES_THERMISTOR
485
 #if TEMP_SENSOR_2 == -1
490
 #if TEMP_SENSOR_2 == -1
486
   #define HEATER_2_USES_AD595
491
   #define HEATER_2_USES_AD595
487
 #endif
492
 #endif
493
+#if TEMP_SENSOR_3 == -1
494
+  #define HEATER_3_USES_AD595
495
+#endif
488
 #if TEMP_SENSOR_BED == -1
496
 #if TEMP_SENSOR_BED == -1
489
   #define BED_USES_AD595
497
   #define BED_USES_AD595
490
 #endif
498
 #endif
503
   #undef HEATER_2_MINTEMP
511
   #undef HEATER_2_MINTEMP
504
   #undef HEATER_2_MAXTEMP
512
   #undef HEATER_2_MAXTEMP
505
 #endif
513
 #endif
514
+#if TEMP_SENSOR_3 == 0
515
+  #undef HEATER_3_MINTEMP
516
+  #undef HEATER_3_MAXTEMP
517
+#endif
506
 #if TEMP_SENSOR_BED == 0
518
 #if TEMP_SENSOR_BED == 0
507
   #undef BED_MINTEMP
519
   #undef BED_MINTEMP
508
   #undef BED_MAXTEMP
520
   #undef BED_MAXTEMP

+ 1
- 2
Marlin/temperature.cpp 查看文件

465
   #endif
465
   #endif
466
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
466
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
467
     if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
467
     if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
468
-        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
469
-        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
468
+        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_2_AUTO_FAN_PIN)
470
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
469
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
471
   #endif
470
   #endif
472
 }
471
 }

正在加载...
取消
保存