
New features ============ The PWM frequency for the heated bed and for any heater used as a chamber heater is now 10Hz for bettercompatibility with DC-AC SSRs. The PWM frequency for fans is now configurable using the F paramete ron the M106 command. The default is 500Hz, which gives esonable control of fans not designed for PWM. Increase it to 25000Hz when using 4-wire PWM fans. When a Duet 0.8.5 board is configured or detected, the fan control is now automatically inverted. If you previously used M106 P0 I1 in config.g to invert it, you will need to remove that. M579 (scale Cartesian axes) is now implemented (thanks chrishamm). M114, M119 and M573 commands can now be executed concurrently with other commands. When DDA debugging is enabled, the debug output now includes all active extruders instead of just the first two. M408 S0 now includes the fan speeds (for PanelDue). M119 now reports the Z probe as well as the endstop switch states. A tool can now be defined even if a tool with the same tool number exists already. The existing tool will be shut down and deleted. The bed heater can now be disabled using M140 S-1 (thanks chrishamm). The chamber heater (if present) and the endstop switch states are now reported to the web interface (thanks chrishamm). Increased defauklt Z prove dive height to 5mm. Increased default PID Ki to 0.2 Bug fixes ========= On a CoreXY machine, XY speeds were too low by a factor of sqrt(2). On a delta machine, after running auto calibration the Z=0 height could be slightly inaccurate, depending on the difference between the X and Z endstop corrections When using a non-intelligent modulated Z probe on a Duet 0.8.5, the modulation pin number was incorrect. The M27 (Report SD card print status) response was inverted compared to what it should be. When in Marlin mode it now includes the "byte n/m" field that some versions of Pronterface expect. Cold extrusion prevention did not work - an error message was generated, but the extruder was driven anyway. M999 PERASE is now more reliable (thanks chrishamm). M23, M30 and M32 commands did not work when the filename parameter passed included an absolute path. //A T command inside a macro file did not execute the tool change macros files. A memory leak occurred when a tool was deleted. All moves are now completed before switching to CoreXY mode. Polling requests from PanelDue were not relied to when a macro was being executed M667 with no parameters returned an incorrect string
153 lines
5.8 KiB
C
153 lines
5.8 KiB
C
/****************************************************************************************************
|
|
|
|
RepRapFirmware - Configuration
|
|
|
|
This is where all machine-independent configuration and other definitions are set up. Nothing that
|
|
depends on any particular RepRap, RepRap component, or RepRap controller should go in here. Define
|
|
machine-dependent things in Platform.h
|
|
|
|
-----------------------------------------------------------------------------------------------------
|
|
|
|
Version 0.1
|
|
|
|
18 November 2012
|
|
|
|
Adrian Bowyer
|
|
RepRap Professional Ltd
|
|
http://reprappro.com
|
|
|
|
Licence: GPL
|
|
|
|
****************************************************************************************************/
|
|
|
|
#ifndef CONFIGURATION_H
|
|
#define CONFIGURATION_H
|
|
|
|
#define NAME "RepRapFirmware"
|
|
|
|
#ifndef VERSION
|
|
#define VERSION "1.09m-beta3-dc42"
|
|
#endif
|
|
|
|
#ifndef DATE
|
|
#define DATE "2015-12-06"
|
|
#endif
|
|
|
|
#define AUTHORS "reprappro, dc42, zpl, t3p3, dnewman"
|
|
|
|
#define FLASH_SAVE_ENABLED (1)
|
|
|
|
// Other firmware that we might switch to be compatible with.
|
|
|
|
enum Compatibility
|
|
{
|
|
me = 0,
|
|
reprapFirmware = 1,
|
|
marlin = 2,
|
|
teacup = 3,
|
|
sprinter = 4,
|
|
repetier = 5
|
|
};
|
|
|
|
// Some numbers...
|
|
|
|
const uint32_t MainBaudRate = 115200; // Communication speed of the USB if needed
|
|
const uint32_t AuxBaudRate = 57600; // Communication speed of the auxiliary serial port
|
|
|
|
const unsigned int GcodeLength = 100; // Maximum length of a G Code string that we handle
|
|
const unsigned int MaxFilenameLength = 100; // Maximum length of a path + filename on the SD card
|
|
|
|
const float defaultIdleCurrentFactor = 0.3; // Proportion of normal motor current that we use for idle hold
|
|
const float defaultIdleTimeout = 30.0;
|
|
|
|
const float DefaultFeedRate = 3000; // The initial requested feed rate after resetting the printer
|
|
|
|
#define ABS_ZERO (-273.15) // Celsius
|
|
#define NEARLY_ABS_ZERO (-273) // Celsius
|
|
|
|
const float InchToMm = 25.4;
|
|
|
|
#define HEAT_SAMPLE_TIME (0.5) // Seconds
|
|
#define HEAT_PWM_AVERAGE_TIME (5.0) // Seconds
|
|
|
|
#define TEMPERATURE_CLOSE_ENOUGH (2.5) // Celsius
|
|
#define TEMPERATURE_LOW_SO_DONT_CARE (40.0) // Celsius
|
|
#define HOT_ENOUGH_TO_EXTRUDE (160.0) // Celsius
|
|
#define HOT_ENOUGH_TO_RETRACT (90.0) // Celsius
|
|
#define TIME_TO_HOT (150.0) // Seconds
|
|
|
|
// If temperatures fall outside this range, something nasty has happened.
|
|
|
|
#define MAX_BAD_TEMPERATURE_COUNT (6)
|
|
#define BAD_LOW_TEMPERATURE (-10.0)
|
|
#define BAD_HIGH_TEMPERATURE (300.0)
|
|
|
|
const unsigned int SlowHeaterPwmFreq = 10; // slow PWM frequency for bed and chamber heaters, compatible with DC/AC SSRs
|
|
const unsigned int NormalHeaterPwmFreq = 500; // normal PWM frequency used for hot ends
|
|
const unsigned int DefaultFanPwmFreq = 500; // increase to 25kHz using M106 command to meet Intel 4-wire PWM fan specification
|
|
|
|
const size_t MaxProbePoints = 16; // Maximum number of probe points
|
|
const size_t MaxDeltaCalibrationPoints = 16; // Must be <= MaxProbePoints, may be smaller to reduce matrix storage requirements. Preferably a power of 2.
|
|
|
|
const float DefaultZDive = 5.0; // Default height from which to probe the bed (mm)
|
|
const float DefaultProbeSpeed = 2.0; // Default Z probing speed
|
|
const float DefaultTravelSpeed = 100.0; // Default speed for travel to probe points
|
|
|
|
const float Triangle0 = -0.001; // Slightly less than 0 for point-in-triangle tests
|
|
const float SillyZValue = -9999.0;
|
|
|
|
// String lengths
|
|
|
|
#define STRING_LENGTH 1024
|
|
const size_t MaxPasswordLength = 20;
|
|
const size_t MaxNameLength = 40;
|
|
const size_t MaxMessageLength = 40;
|
|
const size_t MaxGcodeReplyLength = 2048;
|
|
|
|
// Print estimation defaults
|
|
const float DefaultNozzleDiameter = 0.5; // Thickness of the nozzle
|
|
const float DefaultFilamentWidth = 1.75; // Width of the filament
|
|
|
|
#define MAX_LAYER_SAMPLES 5 // Number of layer samples (except for first layer)
|
|
#define ESTIMATION_MIN_FILAMENT_USAGE 0.025 // Minimum per cent for filament usage estimation
|
|
#define FIRST_LAYER_SPEED_FACTOR 0.25 // First layer speed compared to others (only for layer-based estimation)
|
|
|
|
// Webserver stuff
|
|
|
|
#define DEFAULT_PASSWORD "reprap"
|
|
#define DEFAULT_NAME "My RepRap 1"
|
|
#define INDEX_PAGE "reprap.htm"
|
|
#define FOUR04_FILE "html404.htm"
|
|
#define CONFIG_FILE "config.g" // The file that sets the machine's parameters
|
|
#define DEFAULT_FILE "default.g" // If the config file isn't found
|
|
#define HOME_X_G "homex.g"
|
|
#define HOME_Y_G "homey.g"
|
|
#define HOME_Z_G "homez.g"
|
|
#define HOME_ALL_G "homeall.g"
|
|
#define HOME_DELTA_G "homedelta.g"
|
|
#define SET_BED_EQUATION "bed.g"
|
|
#define PAUSE_G "pause.g"
|
|
#define RESUME_G "resume.g"
|
|
#define STOP_G "stop.g"
|
|
#define SLEEP_G "sleep.g"
|
|
|
|
#define LIST_SEPARATOR ':' // Lists in G Codes
|
|
#define FILE_LIST_SEPARATOR ',' // Put this between file names when listing them
|
|
#define FILE_LIST_BRACKET '"' // Put these round file names when listing them
|
|
|
|
#define LONG_TIME 300.0 // Seconds
|
|
|
|
#define EOF_STRING "<!-- **EoF** -->" // For HTML uploads
|
|
|
|
#define FLASH_LED 'F' // Type byte of a message that is to flash an LED; the next two bytes define
|
|
// the frequency and M/S ratio.
|
|
#define DISPLAY_MESSAGE 'L' // Type byte of a message that is to appear on a local display; the L is
|
|
// not displayed; \f and \n should be supported.
|
|
#define HOST_MESSAGE 'H' // Type byte of a message that is to be sent to the host via USB; the H is not sent.
|
|
#define WEB_MESSAGE 'W' // Type byte of message that is to be sent to the web
|
|
#define WEB_ERROR_MESSAGE 'E' // Type byte of message that is to be sent to the web - flags an error
|
|
#define BOTH_MESSAGE 'B' // Type byte of message that is to be sent to the web & host
|
|
#define BOTH_ERROR_MESSAGE 'A' // Type byte of message that is to be sent to the web & host - flags an error
|
|
#define DEBUG_MESSAGE 'D' // Type byte of debug message to send in blocking mode to USB
|
|
|
|
#endif
|