forked from RF1000community/Repetier-Firmware
/
RF1000.h
1219 lines (929 loc) · 66.5 KB
/
RF1000.h
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
This file is part of the Repetier-Firmware for RF devices from Conrad Electronic SE.
Repetier-Firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Repetier-Firmware is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Repetier-Firmware. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef RF1000_H
#define RF1000_H
// this file contains all definitions which are specific to the RF1000 hardware
#define UI_PRINTER_NAME "RF1000"
// ##########################################################################################
// ## main hardware configuration
// ##########################################################################################
/** \brief Allows to use the device for milling */
#define FEATURE_MILLING_MODE 1 // 1 = on, 0 = off
#if FEATURE_MILLING_MODE
/** \brief Enables automatic compensation in z direction for the operationg mode "mill" */
#define FEATURE_WORK_PART_Z_COMPENSATION 1 // 1 = on, 0 = off
/** \brief This feature allows to move the milling bed upwards automatically until the miller is hit. The found position is taken over as Z=0 automatically.
Be aware that mis-using of this functionality can ruin the tool (e.g. in case the tool is placed above the milling bed and not above the to-be-milled object). */
#define FEATURE_FIND_Z_ORIGIN 1 // 1 = on, 0 = off
/** \brief Enables/disables the menu entry which allows to choose the currently installed miller type */
#define FEATURE_CONFIGURABLE_MILLER_TYPE 1 // 1 = on, 0 = off
#if FEATURE_WORK_PART_Z_COMPENSATION && !FEATURE_FIND_Z_ORIGIN
#error It does not make sense to enable the work part z-compensation without enabling of the automatic detection of the z-origin
#endif // FEATURE_WORK_PART_Z_COMPENSATION && !FEATURE_FIND_Z_ORIGIN
#endif // FEATURE_MILLING_MODE
/** \brief Number of extruders */
#define NUM_EXTRUDER 1
/** \brief Allows to use the 230V output */
#define FEATURE_230V_OUTPUT 0 // the RF1000 does not support the 230 V output
/** \brief Allows to use the RGB light effects */
#define FEATURE_RGB_LIGHT_EFFECTS 0 // the RF1000 does not support RGB light effects
/** \brief Allows to use the 24V FET outputs */
#define FEATURE_24V_FET_OUTPUTS 0 // the RF1000 does not support the 24V FET outputs
/** \brief Allows to use the EEPROM which provides type information */
#define FEATURE_TYPE_EEPROM 1 // 1 = on, 0 = off
/** \brief Allows to use the case fan
WARNING: Do not enable the case fan feature in case you have a second extruder attached to the HZ2 pin (X8) - this could heat up the extruder endlessly and could destroy it */
#define FEATURE_CASE_FAN 0 // 0 = off, 1 = on
#if FEATURE_CASE_FAN && NUM_EXTRUDER > 1
#error The case fan and the 2. extruder use the same output, they can not be used simultaneously.
#endif // FEATURE_CASE_FAN && NUM_EXTRUDER > 1
/** \brief Define the type of the present extruders */
#if NUM_EXTRUDER == 2
#define EXT0_HOTEND_TYPE HOTEND_TYPE_V2
#define EXT1_HOTEND_TYPE HOTEND_TYPE_V2
#else
#define EXT0_HOTEND_TYPE HOTEND_TYPE_V2
#endif // NUM_EXTRUDER == 2
#define FEATURE_CONFIGURABLE_Z_ENDSTOPS 1 // 1 = the z-endstop type can be switched between z-min (= single) and z-min + z-max in one circuit (= circuit), 0 = only the z-min endstop is installed
#if FEATURE_MILLING_MODE
/** \brief Define the type of the present miller hardware */
#define MILLER_TYPE MILLER_TYPE_TWO_TRACKS
/** \brief Define lower acceleration to reach very small speeds */
#define MILLER_ACCELERATION 15
/** \brief Default operating mode */
#define DEFAULT_OPERATING_MODE OPERATING_MODE_PRINT
#endif // FEATURE_MILLING_MODE
#if FEATURE_CONFIGURABLE_Z_ENDSTOPS
/** \brief Define Default z-endstop type */
#define DEFAULT_Z_ENDSTOP_TYPE ENDSTOP_TYPE_SINGLE
#endif // FEATURE_CONFIGURABLE_Z_ENDSTOPS
/** \brief Allows to choose whether the setpoint and the current value of the heat bed temperature shall be compensated so that the temperature offset which is caused by the printing plate is reduced */
#define FEATURE_HEAT_BED_TEMP_COMPENSATION 0 // 1 = on, 0 = off
// ##########################################################################################
// ## Calibration
// ##########################################################################################
/** \brief maximum positions in mm - only fixed numbers!
For delta robot Z_MAX_LENGTH is the maximum travel of the towers and should be set to the distance between the hotend
and the platform when the printer is at its home position.
If EEPROM is enabled these values will be overidden with the values in the EEPROM */
#if NUM_EXTRUDER == 2
#define X_MAX_LENGTH_PRINT (long)180
#else
#define X_MAX_LENGTH_PRINT (long)245
#endif // NUM_EXTRUDER == 2
#define X_MAX_LENGTH_MILL (long)230
#define Y_MAX_LENGTH (long)245
#define Z_MAX_LENGTH (long)200
/** \brief Coordinates for the minimum axis. Can also be negative if you want to have the bed start at 0 and the printer can go to the left side
of the bed. Maximum coordinate is given by adding the above MAX_LENGTH values. */
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
/** \brief Drive settings for printers with cartesian drive systems */
/** \brief Number of steps for a 1mm move in x direction.
For xy gantry use 2*belt moved!
Overridden if EEPROM activated. */
#define XAXIS_STEPS_PER_MM float(4.761875 * (float)RF_MICRO_STEPS)
/** \brief Number of steps for a 1mm move in y direction.
For xy gantry use 2*belt moved!
Overridden if EEPROM activated.*/
#define YAXIS_STEPS_PER_MM float(4.761875 * (float)RF_MICRO_STEPS)
/** \brief Number of steps for a 1mm move in z direction Overridden if EEPROM activated.*/
#define ZAXIS_STEPS_PER_MM float(80 * (float)RF_MICRO_STEPS)
// ##########################################################################################
// ## Common extruder configuration
// ##########################################################################################
/** \brief for each extruder, fan will stay on until extruder temperature is below this value */
#define EXTRUDER_FAN_COOL_TEMP 50
/** \brief Minimal temperature which can be set for the extruder */
#define EXTRUDER_MIN_TEMP 40
/** \brief Maximal temperature which can be set for the extruder */
#define EXTRUDER_MAX_TEMP 275
/** \brief Extruder allow cold movement which can be set for the extruder */
#define EXTRUDER_ALLOW_COLD_MOVE 0
// ##########################################################################################
// ## Hotend V1
// ##########################################################################################
/** \brief The maximum value, I-gain can contribute to the output. */
#define HT2_PID_INTEGRAL_DRIVE_MAX 130
/** \brief lower value for integral part. */
#define HT2_PID_INTEGRAL_DRIVE_MIN 5
/** \brief P-gain. */
#define HT2_PID_P 37.52
/** \brief I-gain. */
#define HT2_PID_I 10
/** \brief Dgain. */
#define HT2_PID_D 35.18
// ##########################################################################################
// ## Hotend V2
// ##########################################################################################
/** \brief The maximum value, I-gain can contribute to the output. */
#define HT3_PID_INTEGRAL_DRIVE_MAX 120
/** \brief lower value for integral part. */
#define HT3_PID_INTEGRAL_DRIVE_MIN 5
/** \brief P-gain. */
#define HT3_PID_P 12.5
/** \brief I-gain. */
#define HT3_PID_I 3.2
/** \brief Dgain. */
#define HT3_PID_D 18
// ##########################################################################################
// ## Miller type 1 (= one track)
// ##########################################################################################
#define MT1_WORK_PART_SCAN_CONTACT_PRESSURE_DELTA 10 // [digits]
#define MT1_WORK_PART_SCAN_RETRY_PRESSURE_DELTA 5 // [digits]
// ##########################################################################################
// ## Miller type 2 (= two tracks)
// ##########################################################################################
#define MT2_WORK_PART_SCAN_CONTACT_PRESSURE_DELTA 30 // [digits]
#define MT2_WORK_PART_SCAN_RETRY_PRESSURE_DELTA 20 // [digits]
// ##########################################################################################
// ## Configuration of the 1. extruder
// ##########################################################################################
#define EXT0_X_OFFSET 0
#define EXT0_Y_OFFSET 0
#define EXT0_Z_OFFSET 0 //to support Nozzle-Tip-Down-Hotends
/** \brief for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated. */
#define EXT0_STEPS_PER_MM (8.75 * RF_MICRO_STEPS)
/** \brief What type of sensor is used?
NTC-Thermistors
1: Epcos B57560G0107F000
2: 200k Thermistor
3: Hotend V2 Sensor Conrad Renkforce / mendel-parts thermistor (EPCOS G550) = NTC mit 100kOhm
4: 10k Thermistor
5: USER_THERMISTORTABLE0 als NTC
6: USER_THERMISTORTABLE1 als NTC
7: USER_THERMISTORTABLE2 als NTC
8: E3D Thermistor ATC Semitec 104-GT2 (300°C)
9: 100k Honeywell 135-104LAG-J01
10: 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
11: 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
12: 100k RS Thermistor 198-961 (4.7k pullup)
14: Thermistor NTC 3950 100k Ohm (Version 1)
15: Thermistor NTC 3950 100k Ohm (Version 2)
97: USE_GENERIC_THERMISTORTABLE_1 and GENERIC_THERM_NUM_ENTRIES Define Raw Thermistor and Resistor-Settings within configuration.h
98: USE_GENERIC_THERMISTORTABLE_2 and GENERIC_THERM_NUM_ENTRIES Define Raw Thermistor and Resistor-Settings within configuration.h
99: USE_GENERIC_THERMISTORTABLE_3 and GENERIC_THERM_NUM_ENTRIES Define Raw Thermistor and Resistor-Settings within configuration.h
PTC-Thermistors
13: E3D PT100 (externe Platine, 500°C)
50: USER_THERMISTORTABLE0 als PTC
51: USER_THERMISTORTABLE1 als PTC
52: USER_THERMISTORTABLE2 als PTC
60: HEATER_USES_AD8495 (Delivers 5mV/degC)
100: AD595 */
#define EXT0_TEMPSENSOR_TYPE 3
/** \brief Analog input pin for reading temperatures or pin enabling SS for MAX6675 */
#define EXT0_TEMPSENSOR_PIN TEMP_0_PIN
/** \brief Which pin enables the heater */
#define EXT0_HEATER_PIN HEATER_0_PIN
#define EXT0_STEP_PIN E0_STEP_PIN
#define EXT0_DIR_PIN E0_DIR_PIN
/** \brief set to 0/1 for normal/inverse direction */
#define EXT0_INVERSE false
#define EXT0_ENABLE_PIN E0_ENABLE_PIN
/** \brief For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 */
#define EXT0_ENABLE_ON true
/** \brief The following speed settings are for skeinforge 40+ where e is the
length of filament pulled inside the heater. For repsnap or older
skeinforge use higher values.
Overridden if EEPROM activated. */
#define EXT0_MAX_FEEDRATE 25
/** \brief Feedrate from halted extruder in mm/s
Overridden if EEPROM activated. */
#define EXT0_MAX_START_FEEDRATE 18
/** \brief Acceleration in mm/s^2
Overridden if EEPROM activated. */
#define EXT0_MAX_ACCELERATION 6000
/** \brief Type of heat manager for this extruder.
- 0 = Simply switch on/off if temperature is reached. Works always.
- 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.
- 3 = Dead-time control. PID_P becomes dead-time in seconds.
Overridden if EEPROM activated. */
#define EXT0_HEAT_MANAGER 1
/** \brief Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
#define EXT0_WATCHPERIOD 20
#if EXT0_HOTEND_TYPE == HOTEND_TYPE_V1
/** \brief The maximum value, I-gain can contribute to the output. Overridden if EEPROM activated. */
#define EXT0_PID_INTEGRAL_DRIVE_MAX HT2_PID_INTEGRAL_DRIVE_MAX
/** \brief lower value for integral part. Overridden if EEPROM activated. */
#define EXT0_PID_INTEGRAL_DRIVE_MIN HT2_PID_INTEGRAL_DRIVE_MIN
/** \brief P-gain. Overridden if EEPROM activated. */
#define EXT0_PID_P HT2_PID_P
/** \brief I-gain. Overridden if EEPROM activated. */
#define EXT0_PID_I HT2_PID_I
/** \brief Dgain. Overridden if EEPROM activated.*/
#define EXT0_PID_D HT2_PID_D
#endif // EXT0_HOTEND_TYPE == HOTEND_TYPE_V1
#if EXT0_HOTEND_TYPE == HOTEND_TYPE_V2
/** \brief The maximum value, I-gain can contribute to the output. Overridden if EEPROM activated. */
#define EXT0_PID_INTEGRAL_DRIVE_MAX HT3_PID_INTEGRAL_DRIVE_MAX
/** \brief lower value for integral part. Overridden if EEPROM activated. */
#define EXT0_PID_INTEGRAL_DRIVE_MIN HT3_PID_INTEGRAL_DRIVE_MIN
/** \brief P-gain. Overridden if EEPROM activated. */
#define EXT0_PID_P HT3_PID_P
/** \brief I-gain. Overridden if EEPROM activated. */
#define EXT0_PID_I HT3_PID_I
/** \brief Dgain. Overridden if EEPROM activated.*/
#define EXT0_PID_D HT3_PID_D
#endif // EXT0_HOTEND_TYPE == HOTEND_TYPE_V2
/** \brief maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated. */
#define EXT0_PID_MAX 255
/** \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated.
K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use
the quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.
L is the linear factor and seems to be working better then the quadratic dependency. */
#define EXT0_ADVANCE_K 0.0f
#define EXT0_ADVANCE_L 0.0f
/** \brief Motor steps to remove backlash for advance alorithm. These are the steps
needed to move the motor cog in reverse direction until it hits the driving
cog. Direct drive extruder need 0. */
#define EXT0_ADVANCE_BACKLASH_STEPS 0
/** \brief Temperature to retract filament when extruder is heating up. Overridden if EEPROM activated. */
#define EXT0_WAIT_RETRACT_TEMP 150
/** \brief Units (mm/inches) to retract filament when extruder is heating up. Overridden if EEPROM activated. Set
to 0 to disable. */
#define EXT0_WAIT_RETRACT_UNITS 0
/** \brief You can run any gcode command on extruder deselect/select. Seperate multiple commands with a new line \n.
That way you can execute some mechanical components needed for extruder selection or retract filament or whatever you need.
The codes are only executed for multiple extruder when changing the extruder. */
#define EXT0_SELECT_COMMANDS "M117 Extruder 0"
#define EXT0_DESELECT_COMMANDS ""
/** \brief The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. */
#define EXT0_EXTRUDER_COOLER_PIN -1
/** \brief PWM speed for the cooler fan. 0=off 255=full speed */
#define EXT0_EXTRUDER_COOLER_SPEED 255
#if NUM_EXTRUDER>0 && EXT0_TEMPSENSOR_TYPE<101
#define EXT0_ANALOG_INPUTS 1
#define EXT0_SENSOR_INDEX 0
#define EXT0_ANALOG_CHANNEL EXT0_TEMPSENSOR_PIN
#define ACCOMMA0 ,
#else
#define EXT0_ANALOG_INPUTS 0
#define EXT0_SENSOR_INDEX EXT0_TEMPSENSOR_PIN
#define EXT0_ANALOG_CHANNEL
#define ACCOMMA0
#endif // NUM_EXTRUDER>0 && EXT0_TEMPSENSOR_TYPE<101
#if NUM_EXTRUDER == 2
// ##########################################################################################
// ## Configuration of the 2. extruder
// ##########################################################################################
#define EXT1_X_OFFSET (int32_t)(33.9 * XAXIS_STEPS_PER_MM) // [steps]
#define EXT1_Y_OFFSET (int32_t)( 0.1 * YAXIS_STEPS_PER_MM) // [steps]
#define EXT1_Z_OFFSET (int32_t)( 0.0 * YAXIS_STEPS_PER_MM) // [steps] //to support Nozzle-Tip-Down-Hotends
/** \brief for skeinforge 40 and later, steps to pull the plasic 1 mm inside the extruder, not out. Overridden if EEPROM activated. */
#define EXT1_STEPS_PER_MM (8.75 * RF_MICRO_STEPS)
/** \brief What type of sensor is used?
NTC-Thermistors
1: Epcos B57560G0107F000
2: 200k Thermistor
3: Hotend V2 Sensor Conrad Renkforce / mendel-parts thermistor (EPCOS G550) = NTC mit 100kOhm
4: 10k Thermistor
5: USER_THERMISTORTABLE0 als NTC
6: USER_THERMISTORTABLE1 als NTC
7: USER_THERMISTORTABLE2 als NTC
8: E3D Thermistor ATC Semitec 104-GT2 (300°C)
9: 100k Honeywell 135-104LAG-J01
10: 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
11: 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
12: 100k RS Thermistor 198-961 (4.7k pullup)
14: Thermistor NTC 3950 100k Ohm (Version 1)
15: Thermistor NTC 3950 100k Ohm (Version 2)
97: USE_GENERIC_THERMISTORTABLE_1 and GENERIC_THERM_NUM_ENTRIES Define Raw Thermistor and Resistor-Settings within configuration.h
98: USE_GENERIC_THERMISTORTABLE_2 and GENERIC_THERM_NUM_ENTRIES Define Raw Thermistor and Resistor-Settings within configuration.h
99: USE_GENERIC_THERMISTORTABLE_3 and GENERIC_THERM_NUM_ENTRIES Define Raw Thermistor and Resistor-Settings within configuration.h
PTC-Thermistors
13: E3D PT100 (externe Platine, 500°C)
50: USER_THERMISTORTABLE0 als PTC
51: USER_THERMISTORTABLE1 als PTC
52: USER_THERMISTORTABLE2 als PTC
60: HEATER_USES_AD8495 (Delivers 5mV/degC)
100: AD595 */
#define EXT1_TEMPSENSOR_TYPE 3
/** \brief Analog input pin for reading temperatures or pin enabling SS for MAX6675 */
#define EXT1_TEMPSENSOR_PIN TEMP_1_PIN
/** \brief Which pin enables the heater */
#define EXT1_HEATER_PIN HEATER_1_PIN
#define EXT1_STEP_PIN E1_STEP_PIN
#define EXT1_DIR_PIN E1_DIR_PIN
/** \brief set to 0/1 for normal/inverse direction */
#define EXT1_INVERSE true
#define EXT1_ENABLE_PIN E1_ENABLE_PIN
/** \brief For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 */
#define EXT1_ENABLE_ON true
/** \brief The following speed settings are for skeinforge 40+ where e is the
length of filament pulled inside the heater. For repsnap or older
skeinforge use heigher values.
Overridden if EEPROM activated. */
#define EXT1_MAX_FEEDRATE 25
/** \brief Feedrate from halted extruder in mm/s
Overridden if EEPROM activated. */
#define EXT1_MAX_START_FEEDRATE 18
/** \brief Acceleration in mm/s^2
Overridden if EEPROM activated. */
#define EXT1_MAX_ACCELERATION 6000
/** \brief Type of heat manager for this extruder.
- 0 = Simply switch on/off if temperature is reached. Works always.
- 1 = PID Temperature control. Is better but needs good PID values. Defaults are a good start for most extruder.
Overridden if EEPROM activated. */
#define EXT1_HEAT_MANAGER 1
/** \brief Wait x seconds, after reaching target temperature. Only used for M109. Overridden if EEPROM activated. */
#define EXT1_WATCHPERIOD 20
#if EXT1_HOTEND_TYPE == HOTEND_TYPE_V1
/** \brief The maximum value, I-gain can contribute to the output. Overridden if EEPROM activated. */
#define EXT1_PID_INTEGRAL_DRIVE_MAX HT2_PID_INTEGRAL_DRIVE_MAX
/** \brief lower value for integral part. Overridden if EEPROM activated. */
#define EXT1_PID_INTEGRAL_DRIVE_MIN HT2_PID_INTEGRAL_DRIVE_MIN
/** \brief P-gain. Overridden if EEPROM activated. */
#define EXT1_PID_P HT2_PID_P
/** \brief I-gain. Overridden if EEPROM activated. */
#define EXT1_PID_I HT2_PID_I
/** \brief Dgain. Overridden if EEPROM activated.*/
#define EXT1_PID_D HT2_PID_D
#endif // EXT1_HOTEND_TYPE == HOTEND_TYPE_V1
#if EXT1_HOTEND_TYPE == HOTEND_TYPE_V2
/** \brief The maximum value, I-gain can contribute to the output. Overridden if EEPROM activated. */
#define EXT1_PID_INTEGRAL_DRIVE_MAX HT3_PID_INTEGRAL_DRIVE_MAX
/** \brief lower value for integral part. Overridden if EEPROM activated. */
#define EXT1_PID_INTEGRAL_DRIVE_MIN HT3_PID_INTEGRAL_DRIVE_MIN
/** \brief P-gain. Overridden if EEPROM activated. */
#define EXT1_PID_P HT3_PID_P
/** \brief I-gain. Overridden if EEPROM activated. */
#define EXT1_PID_I HT3_PID_I
/** \brief Dgain. Overridden if EEPROM activated.*/
#define EXT1_PID_D HT3_PID_D
#endif // EXT1_HOTEND_TYPE == HOTEND_TYPE_V2
/** \brief maximum time the heater is can be switched on. Max = 255. Overridden if EEPROM activated. */
#define EXT1_PID_MAX 255
/** \brief Faktor for the advance algorithm. 0 disables the algorithm. Overridden if EEPROM activated.
K is the factor for the quadratic term, which is normally disabled in newer versions. If you want to use
the quadratic factor make sure ENABLE_QUADRATIC_ADVANCE is defined.
L is the linear factor and seems to be working better then the quadratic dependency. */
#define EXT1_ADVANCE_K 0.0f
#define EXT1_ADVANCE_L 0.0f
/** \brief Motor steps to remove backlash for advance alorithm. These are the steps
needed to move the motor cog in reverse direction until it hits the driving
cog. Direct drive extruder need 0. */
#define EXT1_ADVANCE_BACKLASH_STEPS 0
/** \brief Temperature to retract filament when extruder is heating up. Overridden if EEPROM activated. */
#define EXT1_WAIT_RETRACT_TEMP 150
/** \brief Units (mm/inches) to retract filament when extruder is heating up. Overridden if EEPROM activated. Set
to 0 to disable. */
#define EXT1_WAIT_RETRACT_UNITS 0
/** \brief You can run any gcode command on extruder deselect/select. Seperate multiple commands with a new line \n.
That way you can execute some mechanical components needed for extruder selection or retract filament or whatever you need.
The codes are only executed for multiple extruder when changing the extruder. */
#define EXT1_SELECT_COMMANDS "M117 Extruder 1"
#define EXT1_DESELECT_COMMANDS ""
/** \brief The extruder cooler is a fan to cool the extruder when it is heating. If you turn the etxruder on, the fan goes on. */
#define EXT1_EXTRUDER_COOLER_PIN -1
/** \brief PWM speed for the cooler fan. 0=off 255=full speed */
#define EXT1_EXTRUDER_COOLER_SPEED 255
#endif // NUM_EXTRUDER == 2
#if NUM_EXTRUDER>1 && EXT1_TEMPSENSOR_TYPE<101
#define EXT1_ANALOG_INPUTS 1
#define EXT1_SENSOR_INDEX EXT0_ANALOG_INPUTS
#define EXT1_ANALOG_CHANNEL ACCOMMA0 EXT1_TEMPSENSOR_PIN
#define ACCOMMA1 ,
#else
#define EXT1_ANALOG_INPUTS 0
#define EXT1_SENSOR_INDEX EXT1_TEMPSENSOR_PIN
#define EXT1_ANALOG_CHANNEL
#define ACCOMMA1 ACCOMMA0
#endif // NUM_EXTRUDER>1 && EXT1_TEMPSENSOR_TYPE<101
// ##########################################################################################
// ## Configuration of the heated bed
// ##########################################################################################
/** \brief Set true if you have a heated bed conected to your board, false if not */
#define HAVE_HEATED_BED true
/** \brief Minimal temperature which can be set for the heating bed */
#define HEATED_BED_MIN_TEMP 40
/** \brief Maximal temperature which can be set for the heating bed */
#define HEATED_BED_MAX_TEMP 180
/** \brief Select type of your heated bed. It's the same as for EXT0_TEMPSENSOR_TYPE
set to 0 if you don't have a heated bed */
#define HEATED_BED_SENSOR_TYPE 3
/** \brief Analog pin of analog sensor to read temperature of heated bed. */
#define HEATED_BED_SENSOR_PIN TEMP_2_PIN
/** \brief Pin to enable heater for bed. */
#define HEATED_BED_HEATER_PIN HEATER_2_PIN
/** \brief How often the temperature of the heated bed is set (msec) */
#define HEATED_BED_SET_INTERVAL 5000
/** \brief
Heat manager for heated bed:
0 = Bang Bang, fast update
1 = PID controlled
2 = Bang Bang, limited check every HEATED_BED_SET_INTERVAL. Use this with relay-driven beds to save life time
3 = dead time control */
#define HEATED_BED_HEAT_MANAGER 1
/** \brief The maximum value, I-gain can contribute to the output.
The precise values may differ for different nozzle/resistor combination.
Overridden if EEPROM activated. */
#define HEATED_BED_PID_INTEGRAL_DRIVE_MAX 80
/** \brief lower value for integral part
The I state should converge to the exact heater output needed for the target temperature.
To prevent a long deviation from the target zone, this value limits the lower value.
A good start is 30 lower then the optimal value. You need to leave room for cooling.
Overridden if EEPROM activated. */
#define HEATED_BED_PID_INTEGRAL_DRIVE_MIN 5
/** \brief P-gain. Overridden if EEPROM activated. */
#define HEATED_BED_PID_PGAIN 53.74
/** \brief I-gain Overridden if EEPROM activated.*/
#define HEATED_BED_PID_IGAIN 7.48
/** \brief Dgain. Overridden if EEPROM activated.*/
#define HEATED_BED_PID_DGAIN 96.52
/** \brief maximum time the heater can be switched on. Max = 255. Overridden if EEPROM activated.*/
#define HEATED_BED_PID_MAX 255
/** \brief Extreme values to detect defect thermistors. */
#define MIN_DEFECT_TEMPERATURE -10
#define MAX_DEFECT_TEMPERATURE 300
#if HAVE_HEATED_BED==true && HEATED_BED_SENSOR_TYPE<101
#define BED_ANALOG_INPUTS 1
#define BED_SENSOR_INDEX EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS
#define BED_ANALOG_CHANNEL ACCOMMA1 HEATED_BED_SENSOR_PIN
#else
#define BED_ANALOG_INPUTS 0
#define BED_SENSOR_INDEX HEATED_BED_SENSOR_PIN
#define BED_ANALOG_CHANNEL
#endif // HAVE_HEATED_BED==true && HEATED_BED_SENSOR_TYPE<101
#if FEATURE_HEAT_BED_TEMP_COMPENSATION
/** \brief The following vlaue must be NumberOfTemperatures -1 */
#define BED_TEMP_COMPENSATION_INDEX_MAX 5
/** \brief The following values represent the setpoint temperatures */
#define BED_SETPOINT_TEMPERATURES {60, 80, 100, 120, 140, 160}
/** \brief The following values represent the real temperature which is measured at the surface of the printing bed in case the temperature sensor delivers the setpoint temperatures */
#define BED_MEASURED_TEMPERATURES {60, 80, 100, 120, 140, 160}
#endif // FEATURE_HEAT_BED_TEMP_COMPENSATION
// ##########################################################################################
// ## Configuration of the endstops
// ##########################################################################################
/** \brief Specifies the maximal drive over millimeters which the z-endstop can bear without getting damaged or degraded */
#define Z_ENDSTOP_DRIVE_OVER 0.8f //mm
/** \brief Specifies the maximal steps which can be moved into z-direction after the z-endstop has been reached */
#define Z_OVERRIDE_MAX long(ZAXIS_STEPS_PER_MM * Z_ENDSTOP_DRIVE_OVER)
/** \brief By default all endstops are pulled up to HIGH. You need a pullup if you
use a mechanical endstop connected with GND. Set value to false for no pullup
on this endstop. */
#define ENDSTOP_PULLUP_X_MIN true
#define ENDSTOP_PULLUP_Y_MIN true
#define ENDSTOP_PULLUP_Z_MIN true
#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_PULLUP_Y_MAX true
#define ENDSTOP_PULLUP_Z_MAX true
/** \brief set to true to invert the logic of the endstops */
#define ENDSTOP_X_MIN_INVERTING true
#define ENDSTOP_Y_MIN_INVERTING true
#define ENDSTOP_Z_MIN_INVERTING true
#define ENDSTOP_X_MAX_INVERTING true
#define ENDSTOP_Y_MAX_INVERTING true
#define ENDSTOP_Z_MAX_INVERTING true
/** \brief Set the values true where you have a hardware endstop. The Pin number is taken from pins.h. */
#define MIN_HARDWARE_ENDSTOP_X true
#define MIN_HARDWARE_ENDSTOP_Y true
#define MIN_HARDWARE_ENDSTOP_Z true
#define MAX_HARDWARE_ENDSTOP_X false
#define MAX_HARDWARE_ENDSTOP_Y false
#if FEATURE_CONFIGURABLE_Z_ENDSTOPS // the z-max endstop is optional for the RF1000
#define MAX_HARDWARE_ENDSTOP_Z true
#else
#define MAX_HARDWARE_ENDSTOP_Z false
#endif // FEATURE_CONFIGURABLE_Z_ENDSTOPS
/** \brief Sets direction of endstops when homing; 1=MAX, -1=MIN */
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#if !FEATURE_MILLING_MODE
#define Z_HOME_DIR -1
#endif // !FEATURE_MILLING_MODE
/** \brief If true, axis won't move to coordinates less than zero. */
#define min_software_endstop_x false
#define min_software_endstop_y false
#define min_software_endstop_z false
/** \brief If true, axis won't move to coordinates greater than the defined lengths below. */
#define max_software_endstop_x true
#define max_software_endstop_y true
#define max_software_endstop_z true
/** \brief If during homing the endstop is reached, how many mm should the printer move back for the second try */
#define ENDSTOP_X_BACK_MOVE 5
#define ENDSTOP_Y_BACK_MOVE 5
#define ENDSTOP_Z_BACK_MOVE float(0.3f+Z_ENDSTOP_DRIVE_OVER)
/** \brief For higher precision you can reduce the speed for the second test on the endstop
during homing operation. The homing speed is divided by the value. 1 = same speed, 2 = half speed */
#define ENDSTOP_X_RETEST_REDUCTION_FACTOR 20
#define ENDSTOP_Y_RETEST_REDUCTION_FACTOR 20
#define ENDSTOP_Z_RETEST_REDUCTION_FACTOR 20
/** \brief When you have several endstops in one circuit you need to disable it after homing by moving a
small amount back. This is also the case with H-belt systems. */
#define ENDSTOP_X_BACK_ON_HOME 0
#define ENDSTOP_Y_BACK_ON_HOME 0
#if FEATURE_MILLING_MODE
#define LEAVE_Z_MAX_ENDSTOP_AFTER_HOME long(-ZAXIS_STEPS_PER_MM * 2) // [steps]
#else
/** \brief Remark: in case this value is set to non-0, the z-compensation must be made fit for this first */
#define ENDSTOP_Z_BACK_ON_HOME 0
#endif // FEATURE_MILLING_MODE
/** \brief You can disable endstop checking for print moves. This is needed, if you get sometimes
false signals from your endstops. If your endstops don't give false signals, you
can set it on for safety. */
#define ALWAYS_CHECK_ENDSTOPS true
// ##########################################################################################
// ## miscellaneous configurations
// ##########################################################################################
/** \brief Motor Current MAX setting */
#define MOTOR_CURRENT_MAX {150,150,126,126,126} // Values 0-255 (126 = ~2A), order: driver 1 (x), driver 2 (y), driver 3 (z), driver 4 (extruder 1), driver 5 (reserved)
/** \brief Motor Current settings at start: Tweak with menu for better silence <-> stability */
#define MOTOR_CURRENT_NORMAL {110,110,95,90,90}
#define MOTOR_CURRENT_MIN EXTRUDER_CURRENT_PAUSED
/** \brief number of analog input signals. Normally 1 for each temperature sensor */
#define ANALOG_INPUTS (EXT0_ANALOG_INPUTS+EXT1_ANALOG_INPUTS+BED_ANALOG_INPUTS)
#if ANALOG_INPUTS>0
/** \brief Channels are the MUX-part of ADMUX register */
#define ANALOG_INPUT_CHANNELS {EXT0_ANALOG_CHANNEL EXT1_ANALOG_CHANNEL BED_ANALOG_CHANNEL}
#endif // ANALOG_INPUTS>0
/** \brief For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 */
#define X_ENABLE_ON 1
#define Y_ENABLE_ON 1
#define Z_ENABLE_ON 1
/** \brief Disables axis when it's not being used. */
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false
/** \brief Inverting axis direction */
#define INVERT_X_DIR true
#define INVERT_Y_DIR false
#define INVERT_Z_DIR false
#if FEATURE_CONFIGURABLE_Z_ENDSTOPS
/** \brief We set the current "steps after endstop" to the following offset values in order to avoid to reach a "steps after endstop" value of 0 (e.g. because of the up and down moving z-compensation or because of manual z movements.
This initial value is set to a level which is above the steps which are possible in z-direction during the distance where the z-endstop is constantly pressed. */
#define Z_ENDSTOP_MIN_TO_MAX_INITIAL_STEPS long(ZAXIS_STEPS_PER_MM * 10) // [steps]
#define Z_ENDSTOP_MAX_TO_MIN_INITIAL_STEPS long(-ZAXIS_STEPS_PER_MM * 10) // [steps]
/** \brief There can not be less than the following amount of steps between the hits of the z-min and z-max endstops.
*/
#define MINIMAL_Z_ENDSTOP_MIN_TO_MAX_STEPS long(ZAXIS_STEPS_PER_MM * 100) // [steps]
#define MINIMAL_Z_ENDSTOP_MAX_TO_MIN_STEPS long(-ZAXIS_STEPS_PER_MM * 100) // [steps]
#endif // FEATURE_CONFIGURABLE_Z_ENDSTOPS
#define XYZ_DIRECTION_CHANGE_DELAY 250 // [us]
#define XYZ_STEPPER_HIGH_DELAY 250 // [us]
#define XYZ_STEPPER_LOW_DELAY 250 // [us]
#define LOOP_INTERVAL 2000 // [ms]
/** \brief Automatic filament change, unmounting of the filament - ensure that G1 does not attempt to extrude more than EXTRUDE_MAXLENGTH */
#define UNMOUNT_FILAMENT_SCRIPT_WITH_HEATING "M109 S" xstr(UI_SET_EXTRUDER_TEMP_UNMOUNT) "\nG21\nG90\nG92 E0\nG1 E-90 F500\nM104 S0"
/** \brief Automatic filament change, unmounting of the filament - ensure that G1 does not attempt to extrude more than EXTRUDE_MAXLENGTH */
#define UNMOUNT_FILAMENT_SCRIPT_WITHOUT_HEATING "G21\nG90\nG92 E0\nG1 E-90 F500"
/** \brief Automatic filament change, mounting of the filament with heating - ensure that G1 does not attempt to extrude more than EXTRUDE_MAXLENGTH */
#define MOUNT_FILAMENT_SCRIPT_WITH_HEATING "M109 S" xstr(UI_SET_PRESET_EXTRUDER_TEMP_ABS) "\nG21\nG90\nG92 E0\nG1 E90 F100\nM104 S0"
/** \brief Automatic filament change, mounting of the filament without heating - ensure that G1 does not attempt to extrude more than EXTRUDE_MAXLENGTH */
#define MOUNT_FILAMENT_SCRIPT_WITHOUT_HEATING "G21\nG90\nG92 E0\nG1 E90 F100"
/** \brief speed of the PWM signal, 0 = 15.25Hz, 1 = 30.51Hz, 2 = 61.03Hz, 3 = 122.06Hz */
#define HEATER_PWM_SPEED 1
#define COOLER_PWM_SPEED 0
/** Some fans won't start for low values, but would run if started with higher power at the beginning.
This defines the full power duration before returning to set value. Time is in milliseconds */
#define FAN_KICKSTART_TIME 200 // [ms]
/** Defines the max. fan speed for M106 controlled fans. Normally 255 to use full range, but for
12V fans on 24V this might help preventing a defect. For all other fans there is a explicit maximum PWM value
you can set, so this is not used for other fans! */
#define MAX_FAN_PWM 255
/** \brief use PDM instead of PWM for part fan */
// --> set EEPROM value or change mode in printers menu
// ##########################################################################################
// ## Movement settings
// ##########################################################################################
/** \brief After x seconds of inactivity, the stepper motors are disabled.
Set to 0 to leave them enabled.
This helps cooling the Stepper motors between two print jobs.
Overridden if EEPROM activated. */
#define STEPPER_INACTIVE_TIME 600
/** \brief After x seconds of inactivity, the system will go down as far it can.
It will at least disable all stepper motors and heaters. If the board has
a power pin, it will be disabled, too.
Set value to 0 for disabled.
Overridden if EEPROM activated. */
#define MAX_INACTIVE_TIME 0L
/** \brief Maximum feedrate, the system allows. Higher feedrates are reduced to these values.
The axis order in all axis related arrays is X, Y, Z
Overridden if EEPROM activated. */
#define MAX_FEEDRATE_X 500
#define MAX_FEEDRATE_Y 500
#define MAX_FEEDRATE_Z 50
/** \brief Home position speed in mm/s. Overridden if EEPROM activated. */
#define HOMING_FEEDRATE_X_PRINT 165
#define HOMING_FEEDRATE_Y_PRINT 165
#define HOMING_FEEDRATE_Z_PRINT 10
#define HOMING_FEEDRATE_X_MILL 70
#define HOMING_FEEDRATE_Y_MILL 70
#define HOMING_FEEDRATE_Z_MILL 7
/** \brief Speed for direct movements in mm/s. Overridden if EEPROM activated. */
#define DIRECT_FEEDRATE_XY 100
#define DIRECT_FEEDRATE_Z 10
#define DIRECT_FEEDRATE_E 25
/** \brief Set order of axis homing. Use HOME_ORDER_XYZ and replace XYZ with your order. */
#if FEATURE_MILLING_MODE
#define HOMING_ORDER_PRINT HOME_ORDER_XYZ
#define HOMING_ORDER_MILL HOME_ORDER_ZXY
#else
#define HOMING_ORDER HOME_ORDER_XYZ
#endif // FEATURE_MILLING_MODE
/** \brief If you have a backlash in both z-directions, you can use this. For most printer, the bed will be pushed down by it's
own weight, so this is nearly never needed. */
#define ENABLE_BACKLASH_COMPENSATION false
#define Z_BACKLASH 0
#define X_BACKLASH 0
#define Y_BACKLASH 0
/** \brief Comment this to disable ramp acceleration */
#define RAMP_ACCELERATION 1
// ##########################################################################################
// ## configuration of the stepper drivers
// ##########################################################################################
/** \brief Specifies whether the firmware shall wait a short time after turning on of the stepper motors - this shall avoid that the first steps are sent to the stepper before it is ready */
#define STEPPER_ON_DELAY 25 // [ms]
/** \brief If your stepper needs a longer high signal then given, you can add a delay here.
The delay is realized as a simple loop wasting time, which is not available for other
computations. So make it as low as possible. For the most common drivers no delay is needed, as the
included delay is already enough. */
#define STEPPER_HIGH_DELAY 0
// ##########################################################################################
// ## configuration of the speed vs. cpu usage
// ##########################################################################################
// MAIN SWITCH FOR SPEED AND PRECISION IS RF_MICRO_STEPS!! That is the source of frequency vs. speed overall!
/** \brief The firmware can only handle 16000Hz interrupt frequency cleanly. If you need higher speeds
a faster solution is needed, and this is to double/quadruple the steps in one interrupt call.
This is like reducing your 1/16th microstepping to 1/8 or 1/4. It is much cheaper then 1 or 3
additional stepper interrupts with all it's overhead. As a result you can go as high as
40000Hz. STEP_DOUBLER_FREQUENCY should be in range 5000-12000 for RFx000 but 8000 is much for RF2000 (with ADVANCE?).*/
#define STEP_DOUBLER_FREQUENCY 6500
/** \brief If you need frequencies off more then 30000 you definitely need to enable this. If you have only 1/8 stepping
enabling this may cause to stall your moves when 20000Hz is reached. */
#define ALLOW_QUADSTEPPING true
/** \brief If you reach STEP_DOUBLER_FREQUENCY the firmware will do 2 or 4 steps with nearly no delay. That can be too fast
for some printers causing an early stall. */
#define DOUBLE_STEP_DELAY 0 // [us] was 1, NIBBELS: Repetier set this to 0 when removing half stepping
/** \brief Number of moves we can cache in advance.
This number of moves can be cached in advance. If you wan't to cache more, increase this. Especially on
many very short moves the cache may go empty. The minimum value is 5. */
#define MOVE_CACHE_SIZE 16
/** \brief Low filled cache size.
If the cache contains less then MOVE_CACHE_LOW segments, the time per segment is limited to LOW_TICKS_PER_MOVE clock cycles.
If a move would be shorter, the feedrate will be reduced. This should prevent buffer underflows. Set this to 0 if you
don't care about empty buffers during print. */
#define MOVE_CACHE_LOW 10
/** \brief Cycles per move, if move cache is low.
This value must be high enough, that the buffer has time to fill up. The problem only occurs at the beginning of a print or
if you are printing many very short segments at high speed. Higher delays here allow higher values in PATH_PLANNER_CHECK_SEGMENTS. */
#define LOW_TICKS_PER_MOVE 250000
// ##########################################################################################
// ## Acceleration settings
// ##########################################################################################
// RF2000: Tests haben gezeigt, dass x-y-acceleration unter 2000 oder unter 1500 das Teil ziemlich gut aussieht.
/** \brief X, Y, Z max acceleration in mm/s^2 for printing moves or retracts. Make sure your printer can go that high!
Overridden if EEPROM activated. */
#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_X 1000
#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1000
#define MAX_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100
/** \brief X, Y, Z max acceleration in mm/s^2 for travel moves. Overridden if EEPROM activated.*/
#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_X 1000
#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Y 1000
#define MAX_TRAVEL_ACCELERATION_UNITS_PER_SQ_SECOND_Z 100
/** \brief Maximum allowable jerk.
Caution: This is no real jerk in a physical meaning.
The jerk determines your start speed and the maximum speed at the join of two segments.
Its unit is mm/s. If the printer is standing still, the start speed is jerk/2. At the
join of two segments, the speed difference is limited to the jerk value.
Examples:
For all examples jerk is assumed as 40.
Segment 1: vx = 50, vy = 0
Segment 2: vx = 0, vy = 50
v_diff = sqrt((50-0)^2+(0-50)^2) = 70.71
v_diff > jerk => vx_1 = vy_2 = jerk/v_diff*vx_1 = 40/70.71*50 = 28.3 mm/s at the join
Segment 1: vx = 50, vy = 0
Segment 2: vx = 35.36, vy = 35.36
v_diff = sqrt((50-35.36)^2+(0-35.36)^2) = 38.27 < jerk
Corner can be printed with full speed of 50 mm/s
Overridden if EEPROM activated. */
#define MAX_JERK 10 //std: 20, aber RFx000 sieht zwischen ca. 7 und 18 am besten aus: Renkforce sagt 10
#define MAX_ZJERK 0.28 //std: 0.3
//that will slowdown if you have sever direction changes in a short distance which is nearly the same as adding several jerks in a short sequence.
#define REDUCE_ON_SMALL_SEGMENTS 1
#define MAX_JERK_DISTANCE 0.6
//for a more logical jerk computation.
#define ALTERNATIVE_JERK 1
// ##########################################################################################
// ## Extruder control
// ##########################################################################################
/* \brief Minimum temperature for extruder operation
This is a saftey value. If your extruder temperature is below this temperature, no
extruder steps are executed. This is to prevent your extruder to move unless the filament
is at least molten. After havong some complains that the extruder does not work, I leave
it 0 as default. */
#if EXTRUDER_ALLOW_COLD_MOVE
#define MIN_EXTRUDER_TEMP 0
#else
#define MIN_EXTRUDER_TEMP 120
#endif
/** \brief Enable advance algorithm.
Without a correct adjusted advance algorithm, you get blobs at points, where acceleration changes. The
effect increases with speed and acceleration difference. Using the advance method decreases this effect.
For more informations, read the wiki. */
#define USE_ADVANCE 1
/** \brief enables quadratic component.
Uncomment to allow a quadratic advance dependency. Linear is the dominant value, so no real need
to activate the quadratic term. Only adds lots of computations and storage usage. */
//#define ENABLE_QUADRATIC_ADVANCE
// ##########################################################################################
// ## Configuration of the heat bed z compensation
// ##########################################################################################
#if FEATURE_HEAT_BED_Z_COMPENSATION
/** \brief Specifies until which height the z compensation must complete
This value should be roughly the double amount of mm which is detected as error of the heat bed. */
#define HEAT_BED_Z_COMPENSATION_MAX_MM 3 // [mm]
#define HEAT_BED_Z_COMPENSATION_MAX_STEPS long(HEAT_BED_Z_COMPENSATION_MAX_MM * ZAXIS_STEPS_PER_MM) // [steps]
/** \brief Specifies from which height on the z compensation shall be performed
Below this value the z compensation will only change the z axis so that a constant distance to the heat bed is hold (this is good for the first layer).
Above this value the z compensation will distribute the roughness of the surface over the layers until HEAT_BED_Z_COMPENSATION_MAX_STEPS is reached. */
#define HEAT_BED_Z_COMPENSATION_MIN_MM float(0.33) // [mm]
#define HEAT_BED_Z_COMPENSATION_MIN_STEPS long(HEAT_BED_Z_COMPENSATION_MIN_MM * ZAXIS_STEPS_PER_MM) // [steps]
/* Maximum number of steps to scan after the Z-min switch has been reached. If within these steps the surface has not
been reached, the scan is retried HEAT_BED_SCAN_RETRIES times and then (if still not found) aborted.
Note that the head bed scan matrix consists of 16 bit signed values, thus more then 32767 steps will lead to an overflow! */
#define HEAT_BED_SCAN_Z_SCAN_MAX_STEPS long(Z_ENDSTOP_DRIVE_OVER * ZAXIS_STEPS_PER_MM) // [steps]
/** \brief Configuration of the heat bed scan */
#if NUM_EXTRUDER == 2
#define HEAT_BED_SCAN_X_START_MM 0 // [mm] from the left border of the heat bed