
M563 command extended to allow the tool number origin to be adjusted. If there is no P parameter in the command then the S parameter specifies an offset to be added to tool numbers in T, G10, M104 and M109 commands. This is so that multi-media gcode files generated by slic3r can be printed without having to edit all the tool numbers in the gcode file first. This extension is intended to be temporary, until slicer provides a mechanism for specifying the tool numbers. A separate offset is maintained for each data source (USB, web or SD card) and the offset for data from the SD card is reset to zero when a new file is started. To use this facility to print slic3r multi-media gcode files, add M563 S1 to your start gcode. M104 and M109 commands now accept an optional T parameter to specify the tool number, as generated by slic3r in multi-media gcode files. Movement code from RepRapPro's dev branch incorporated, including 5-point manual or automatic bed compensation mechanism. Heater status (off/standby/on) is included in the status poll response for the web interface. This will be used in a future version of the web interface. Incorporated code from RepRapPro dev branch to allow many more M-commands to return values as well as set them. Incorporated code from RepRapPro dev branch to implement the M119 and M135 commands. There is currently a bug in the M135 (set heat sample interval) command, which means that if you change the interval from its default value of 0.5 seconds then you need to adjust the I parameter by the same ratio and the D parameter by the inverse ratio. Extrusion totals are reset to zero when starting a new print from SD card.
102 lines
3.4 KiB
C
102 lines
3.4 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"
|
|
#define VERSION "0.78f-dc42"
|
|
#define DATE "2014-07-27"
|
|
#define AUTHORS "reprappro, dc42. zpl"
|
|
|
|
// 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...
|
|
|
|
#define ABS_ZERO (-273.15) // Celsius
|
|
|
|
#define INCH_TO_MM (25.4)
|
|
|
|
#define HEAT_SAMPLE_TIME (0.5) // Seconds
|
|
|
|
#define TEMPERATURE_CLOSE_ENOUGH (2.5) // Celsius
|
|
#define TEMPERATURE_LOW_SO_DONT_CARE (40.0) // Celsius
|
|
|
|
// 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
|
|
|
|
#define STANDBY_INTERRUPT_RATE 2.0e-4 // Seconds
|
|
|
|
#define NUMBER_OF_PROBE_POINTS 5 // Maximum number of probe points
|
|
#define Z_DIVE 8.0 // Height from which to probe the bed (mm)
|
|
#define TRIANGLE_0 -0.001 // Slightly less than 0 for point-in-triangle tests
|
|
|
|
#define SILLY_Z_VALUE -9999.0
|
|
|
|
// Webserver stuff
|
|
|
|
#define DEFAULT_PASSWORD "reprap"
|
|
#define DEFAULT_NAME "My RepRap 1"
|
|
#define INDEX_PAGE "reprap.htm"
|
|
//#define MESSAGE_FILE "messages.txt" // currently unused
|
|
#define FOUR04_FILE "html404.htm"
|
|
#define CONFIG_FILE "config.g" // The file that sets the machine's parameters
|
|
#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 WEB_DEBUG_TRUE 9
|
|
#define WEB_DEBUG_FALSE 8
|
|
|
|
#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
|