-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheaters.cfg
64 lines (55 loc) · 1.34 KB
/
heaters.cfg
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
[heater_bed]
heater_pin: PC8
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PA0
max_power: 1.0
control = pid
pid_kp = 71.039
pid_ki = 2.223
pid_kd = 567.421
min_temp: 0
max_temp: 125
[heater_generic chamber]
heater_pin: PB10
pwm_cycle_time: 0.003
max_power: 1.0
sensor_type: NTC 100K MGB18-104F39050L32
sensor_pin: PA1
smooth_time: 3
control = pid #watermark
pid_Kp=63.418
pid_Ki=1.342
pid_Kd=749.125
min_temp:0
max_temp:70
[verify_heater heater_bed]
max_error: 300
check_gain_time: 120
hysteresis: 5
heating_gain: 1
[verify_heater chamber]
max_error: 500
check_gain_time: 600
hysteresis: 5
heating_gain: 1
[temperature_sensor host_CPU]
sensor_type: temperature_host
[temperature_sensor MCU]
sensor_type: temperature_mcu
[temperature_sensor MCU_toolhead]
sensor_type: temperature_mcu
sensor_mcu: MKS_THR
#####################################################################
# Macros
#####################################################################
[gcode_macro M141]
gcode:
SET_HEATER_TEMPERATURE HEATER=chamber TARGET={params.S}
[gcode_macro M191]
gcode:
#Parameters
{% set s = params.S|float %}
M141 {% for p in params %}{'%s%s' % (p, params[p])}{% endfor %}
{% if s != 0 %}
TEMPERATURE_WAIT SENSOR="heater_generic chamber" MINIMUM={([s, 65] | min)} #MAXIMUM={s+1}
{% endif %}