Browse Source

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 years ago
parent
commit
697ee2dc50

+ 3
- 0
Marlin/Configuration.h View File

@@ -122,6 +122,7 @@ Here are some standard links for getting your machine calibrated:
122 122
 #define TEMP_SENSOR_0 -1
123 123
 #define TEMP_SENSOR_1 -1
124 124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125 126
 #define TEMP_SENSOR_BED 0
126 127
 
127 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,6 +140,7 @@ Here are some standard links for getting your machine calibrated:
139 140
 #define HEATER_0_MINTEMP 5
140 141
 #define HEATER_1_MINTEMP 5
141 142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142 144
 #define BED_MINTEMP 5
143 145
 
144 146
 // When temperature exceeds max temp, your heater will be switched off.
@@ -147,6 +149,7 @@ Here are some standard links for getting your machine calibrated:
147 149
 #define HEATER_0_MAXTEMP 275
148 150
 #define HEATER_1_MAXTEMP 275
149 151
 #define HEATER_2_MAXTEMP 275
152
+#define HEATER_3_MAXTEMP 275
150 153
 #define BED_MAXTEMP 150
151 154
 
152 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 View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -122,6 +122,7 @@ Here are some standard links for getting your machine calibrated:
122 122
 #define TEMP_SENSOR_0 1
123 123
 #define TEMP_SENSOR_1 0
124 124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125 126
 #define TEMP_SENSOR_BED 0
126 127
 
127 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,6 +140,7 @@ Here are some standard links for getting your machine calibrated:
139 140
 #define HEATER_0_MINTEMP 5
140 141
 #define HEATER_1_MINTEMP 5
141 142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142 144
 #define BED_MINTEMP 5
143 145
 
144 146
 // When temperature exceeds max temp, your heater will be switched off.
@@ -147,6 +149,7 @@ Here are some standard links for getting your machine calibrated:
147 149
 #define HEATER_0_MAXTEMP 260
148 150
 #define HEATER_1_MAXTEMP 260
149 151
 #define HEATER_2_MAXTEMP 260
152
+#define HEATER_3_MAXTEMP 260
150 153
 #define BED_MAXTEMP 150
151 154
 
152 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 View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -124,6 +124,7 @@ Here are some standard links for getting your machine calibrated:
124 124
 #define TEMP_SENSOR_0 5
125 125
 #define TEMP_SENSOR_1 0
126 126
 #define TEMP_SENSOR_2 0
127
+#define TEMP_SENSOR_3 0
127 128
 #define TEMP_SENSOR_BED 5
128 129
 
129 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,6 +142,7 @@ Here are some standard links for getting your machine calibrated:
141 142
 #define HEATER_0_MINTEMP 5
142 143
 #define HEATER_1_MINTEMP 5
143 144
 #define HEATER_2_MINTEMP 5
145
+#define HEATER_3_MINTEMP 5
144 146
 #define BED_MINTEMP 5
145 147
 
146 148
 // When temperature exceeds max temp, your heater will be switched off.
@@ -149,6 +151,7 @@ Here are some standard links for getting your machine calibrated:
149 151
 #define HEATER_0_MAXTEMP 275
150 152
 #define HEATER_1_MAXTEMP 275
151 153
 #define HEATER_2_MAXTEMP 275
154
+#define HEATER_3_MAXTEMP 275
152 155
 #define BED_MAXTEMP 150
153 156
 
154 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 View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -142,6 +142,7 @@ Here are some standard links for getting your machine calibrated:
142 142
 #define TEMP_SENSOR_0 1
143 143
 #define TEMP_SENSOR_1 0
144 144
 #define TEMP_SENSOR_2 0
145
+#define TEMP_SENSOR_3 0
145 146
 #define TEMP_SENSOR_BED 1
146 147
 
147 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,6 +160,7 @@ Here are some standard links for getting your machine calibrated:
159 160
 #define HEATER_0_MINTEMP 5
160 161
 #define HEATER_1_MINTEMP 5
161 162
 #define HEATER_2_MINTEMP 5
163
+#define HEATER_3_MINTEMP 5
162 164
 #define BED_MINTEMP 5
163 165
 
164 166
 // When temperature exceeds max temp, your heater will be switched off.
@@ -167,6 +169,7 @@ Here are some standard links for getting your machine calibrated:
167 169
 #define HEATER_0_MAXTEMP 275
168 170
 #define HEATER_1_MAXTEMP 275
169 171
 #define HEATER_2_MAXTEMP 275
172
+#define HEATER_3_MAXTEMP 275
170 173
 #define BED_MAXTEMP 150
171 174
 
172 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 View File

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

+ 4
- 1
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -125,6 +125,7 @@ Here are some standard links for getting your machine calibrated:
125 125
 #define TEMP_SENSOR_0 1
126 126
 #define TEMP_SENSOR_1 0
127 127
 #define TEMP_SENSOR_2 0
128
+#define TEMP_SENSOR_3 0
128 129
 #define TEMP_SENSOR_BED 0
129 130
 
130 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,6 +143,7 @@ Here are some standard links for getting your machine calibrated:
142 143
 #define HEATER_0_MINTEMP 5
143 144
 #define HEATER_1_MINTEMP 5
144 145
 #define HEATER_2_MINTEMP 5
146
+#define HEATER_3_MINTEMP 5
145 147
 #define BED_MINTEMP 5
146 148
 
147 149
 // When temperature exceeds max temp, your heater will be switched off.
@@ -150,6 +152,7 @@ Here are some standard links for getting your machine calibrated:
150 152
 #define HEATER_0_MAXTEMP 260
151 153
 #define HEATER_1_MAXTEMP 260
152 154
 #define HEATER_2_MAXTEMP 260
155
+#define HEATER_3_MAXTEMP 260
153 156
 #define BED_MAXTEMP 150
154 157
 
155 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 View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -147,6 +147,7 @@ Here are some standard links for getting your machine calibrated:
147 147
 #define TEMP_SENSOR_0 -1
148 148
 #define TEMP_SENSOR_1 -1
149 149
 #define TEMP_SENSOR_2 0
150
+#define TEMP_SENSOR_3 0
150 151
 #define TEMP_SENSOR_BED 0
151 152
 
152 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,6 +165,7 @@ Here are some standard links for getting your machine calibrated:
164 165
 #define HEATER_0_MINTEMP 5
165 166
 #define HEATER_1_MINTEMP 5
166 167
 #define HEATER_2_MINTEMP 5
168
+#define HEATER_3_MINTEMP 5
167 169
 #define BED_MINTEMP 5
168 170
 
169 171
 // When temperature exceeds max temp, your heater will be switched off.
@@ -172,6 +174,7 @@ Here are some standard links for getting your machine calibrated:
172 174
 #define HEATER_0_MAXTEMP 275
173 175
 #define HEATER_1_MAXTEMP 275
174 176
 #define HEATER_2_MAXTEMP 275
177
+#define HEATER_3_MAXTEMP 275
175 178
 #define BED_MAXTEMP 150
176 179
 
177 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 View File

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

+ 4
- 1
Marlin/example_configurations/makibox/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -127,6 +127,7 @@ Here are some standard links for getting your machine calibrated:
127 127
 #define TEMP_SENSOR_0 1
128 128
 #define TEMP_SENSOR_1 0
129 129
 #define TEMP_SENSOR_2 0
130
+#define TEMP_SENSOR_3 0
130 131
 #define TEMP_SENSOR_BED 12
131 132
 
132 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,6 +145,7 @@ Here are some standard links for getting your machine calibrated:
144 145
 #define HEATER_0_MINTEMP 5
145 146
 #define HEATER_1_MINTEMP 5
146 147
 #define HEATER_2_MINTEMP 5
148
+#define HEATER_3_MINTEMP 5
147 149
 #define BED_MINTEMP 5
148 150
 
149 151
 // When temperature exceeds max temp, your heater will be switched off.
@@ -152,6 +154,7 @@ Here are some standard links for getting your machine calibrated:
152 154
 #define HEATER_0_MAXTEMP 275
153 155
 #define HEATER_1_MAXTEMP 275
154 156
 #define HEATER_2_MAXTEMP 275
157
+#define HEATER_3_MAXTEMP 275
155 158
 #define BED_MAXTEMP 150
156 159
 
157 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 View File

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

+ 4
- 1
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -126,6 +126,7 @@ Here are some standard links for getting your machine calibrated:
126 126
 #define TEMP_SENSOR_0 5
127 127
 #define TEMP_SENSOR_1 0
128 128
 #define TEMP_SENSOR_2 0
129
+#define TEMP_SENSOR_3 0
129 130
 #define TEMP_SENSOR_BED 5
130 131
 
131 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,6 +144,7 @@ Here are some standard links for getting your machine calibrated:
143 144
 #define HEATER_0_MINTEMP 5
144 145
 #define HEATER_1_MINTEMP 5
145 146
 #define HEATER_2_MINTEMP 5
147
+#define HEATER_3_MINTEMP 5
146 148
 #define BED_MINTEMP 5
147 149
 
148 150
 // When temperature exceeds max temp, your heater will be switched off.
@@ -151,6 +153,7 @@ Here are some standard links for getting your machine calibrated:
151 153
 #define HEATER_0_MAXTEMP 275
152 154
 #define HEATER_1_MAXTEMP 275
153 155
 #define HEATER_2_MAXTEMP 275
156
+#define HEATER_3_MAXTEMP 275
154 157
 #define BED_MAXTEMP 150
155 158
 
156 159
 #define CONFIG_STEPPERS_TOSHIBA	1

+ 12
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

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

+ 1
- 2
Marlin/temperature.cpp View File

@@ -465,8 +465,7 @@ void checkExtruderAutoFans()
465 465
   #endif
466 466
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
467 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 469
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
471 470
   #endif
472 471
 }

Loading…
Cancel
Save