-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
… control interface
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -219,78 +219,83 @@ e_axis_active = True | |
# Set 'active' = True for all units that are to be parsed. A False value means | ||
# it will be ignored | ||
|
||
[[M106/M107]] | ||
type = gcode | ||
command = M106, M107 | ||
output = Fan-0, Fan-1, Fan-2, Fan-3 | ||
|
||
# default PID control for heaters | ||
# When this config is parsed the 'active' flag is updated to reflect the | ||
# available thermistors for your Replicape version | ||
[[Control-E]] | ||
type = pid-control | ||
input = Thermistor-E | ||
target_temperature = 0.0 | ||
target_value = 0.0 | ||
pid_Kp = 0.1 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
darylbond
Author
Contributor
|
||
pid_Ti = 100.0 | ||
pid_Td = 0.3 | ||
ok_range = 4.0 | ||
max_power = 255 | ||
max_value = 255 | ||
sleep = 0.25 | ||
|
||
|
||
[[Control-H]] | ||
type = pid-control | ||
input = Thermistor-H | ||
target_temperature = 0.0 | ||
target_value = 0.0 | ||
pid_Kp = 0.1 | ||
pid_Ti = 100.0 | ||
pid_Td = 0.3 | ||
ok_range = 4.0 | ||
max_power = 255 | ||
max_value = 255 | ||
sleep = 0.25 | ||
|
||
|
||
[[Control-A]] | ||
type = pid-control | ||
input = Thermistor-A | ||
target_temperature = 0.0 | ||
target_value = 0.0 | ||
pid_Kp = 0.1 | ||
pid_Ti = 100.0 | ||
pid_Td = 0.3 | ||
ok_range = 4.0 | ||
max_power = 255 | ||
max_value = 255 | ||
sleep = 0.25 | ||
|
||
|
||
[[Control-B]] | ||
type = pid-control | ||
input = Thermistor-B | ||
target_temperature = 0.0 | ||
target_value = 0.0 | ||
pid_Kp = 0.1 | ||
pid_Ti = 100.0 | ||
pid_Td = 0.3 | ||
ok_range = 4.0 | ||
max_power = 255 | ||
max_value = 255 | ||
sleep = 0.25 | ||
|
||
|
||
[[Control-C]] | ||
type = pid-control | ||
input = Thermistor-C | ||
target_temperature = 0.0 | ||
target_value = 0.0 | ||
pid_Kp = 0.1 | ||
pid_Ti = 100.0 | ||
pid_Td = 0.3 | ||
ok_range = 4.0 | ||
max_power = 255 | ||
max_value = 255 | ||
sleep = 0.25 | ||
|
||
|
||
[[Control-HBP]] | ||
type = pid-control | ||
input = Thermistor-HBP | ||
target_temperature = 0.0 | ||
target_value = 0.0 | ||
pid_Kp = 0.1 | ||
pid_Ti = 100.0 | ||
pid_Td = 0.3 | ||
ok_range = 4.0 | ||
max_power = 255 | ||
max_value = 255 | ||
sleep = 0.5 | ||
|
||
# safety limits for heaters | ||
|
@@ -421,28 +426,23 @@ path_adc = /sys/bus/iio/devices/iio:device0/in_voltage6_raw | |
|
||
[[Fan-0]] | ||
type = fan | ||
input = 0 | ||
add-to-M106 = False | ||
channel = 0 | ||
input = 0 | ||
|
||
[[Fan-1]] | ||
type=fan | ||
input = 0 | ||
add-to-M106 = False | ||
channel = 0 | ||
input = 0 | ||
|
||
[[Fan-2]] | ||
type = fan | ||
input = 0 | ||
add-to-M106 = False | ||
channel = 0 | ||
input = 0 | ||
|
||
[[Fan-3]] | ||
type = fan | ||
input = 0 | ||
add-to-M106 = False | ||
channel = 0 | ||
|
||
input = 0 | ||
|
||
[Heaters] | ||
|
||
|
Note that the Kp, Ki, and Kd values can also be set by an M-code.
Therefore, I suggest that we define the configuration element a bit differently. For example,:
[[He_kP]]
type = setting
code = M301
sub-code = P
default = 0.1
[[Control-E]]
type= pid-control
input = Thermistor-E
target_value = He_E_Temp
k_p = He_kP
...
[[He_E_Temp]]
type = setting
code = M104
default = 0.0