-
Notifications
You must be signed in to change notification settings - Fork 1
/
fans.cfg
65 lines (58 loc) · 1.84 KB
/
fans.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
65
#####################################################################
# Fan
#####################################################################
[heater_fan hotend_fan] #Hotend FAN
pin: EBBCan: PA0
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0
[fan_generic Parts_fan] #Parts FAN / P0
pin: EBBCan: PA1
cycle_time: 0.01
hardware_pwm: false
[fan_generic Exhaust_fan] #Exhaust fan / P3
pin: PA3
cycle_time: 0.01
hardware_pwm: false
################################################################################
#When using the auxiliary fan, [heater_fan controller_fan] should be annotated.#
#보조팬을 사용할 경우, [heater_fan controller_fan]를 주석처리해야 한다.############
################################################################################
#[fan_generic Auxiliary_fan] #Auxiliary fan / P2
#pin: PA4
#cycle_time: 0.01
#hardware_pwm: false
[heater_fan controller_fan] #Driver FAN /
pin: PA4
max_power: 1.0
kick_start_time: 0.5
fan_speed: 0.8
heater: heater_bed
heater_temp: 40.0
[gcode_macro M106]
gcode:
{% set P = params.P | default(0) | int %}
{% set S = params.S | default(255) | int %}
{% set speed = S / 255 %}
{% if P == 0 %}
SET_FAN_SPEED FAN=Parts_fan SPEED={speed}
{% elif P == 2 %}
SET_FAN_SPEED FAN=Auxiliary_fan SPEED={speed}
{% elif P == 3 %}
SET_FAN_SPEED FAN=Exhaust_fan SPEED={speed}
{% endif %}
[gcode_macro M107]
gcode:
{% set fan = params.P | default(0) | int %}
{% if fan == 0 %}
SET_FAN_SPEED FAN=Parts_fan SPEED=0
{% elif fan == 2 %}
SET_FAN_SPEED FAN=Auxiliary_fan SPEED=0
{% elif fan == 3 %}
SET_FAN_SPEED FAN=Exhaust_fan SPEED=0
{% else %}
SET_FAN_SPEED FAN=Parts_fan SPEED=0
SET_FAN_SPEED FAN=Auxiliary_fan SPEED=0
SET_FAN_SPEED FAN=Exhaust_fan SPEED=0
{% endif %}