|
|
|
|
113
|
// PID settings:
|
113
|
// PID settings:
|
114
|
// Comment the following line to disable PID and enable bang-bang.
|
114
|
// Comment the following line to disable PID and enable bang-bang.
|
115
|
#define PIDTEMP
|
115
|
#define PIDTEMP
|
116
|
-#define PID_MAX 255 // limits current to nozzle; 255=full current
|
|
|
|
|
116
|
+#define PID_MAX 256 // limits current to nozzle; 256=full current
|
117
|
#ifdef PIDTEMP
|
117
|
#ifdef PIDTEMP
|
118
|
//#define PID_DEBUG // Sends debug data to the serial port.
|
118
|
//#define PID_DEBUG // Sends debug data to the serial port.
|
119
|
//#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
|
119
|
//#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
|
|
|
|
|
156
|
|
156
|
|
157
|
// This sets the max power delived to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
|
157
|
// This sets the max power delived to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
|
158
|
// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
|
158
|
// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
|
159
|
-// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
|
|
|
|
|
159
|
+// setting this to anything other than 256 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
|
160
|
// so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)
|
160
|
// so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)
|
161
|
-#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
|
|
|
|
|
161
|
+#define MAX_BED_POWER 256 // limits duty cycle to bed; 256=full current
|
162
|
|
162
|
|
163
|
#ifdef PIDTEMPBED
|
163
|
#ifdef PIDTEMPBED
|
164
|
//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
|
164
|
//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
|