Advertisement
Guest User

skul0 config

a guest
May 8th, 2018
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.82 KB | None | 0 0
  1. /**
  2.  
  3. //===========================================================================
  4. //============================= Mechanical Settings =========================
  5. //===========================================================================
  6.  
  7. // @section machine
  8.  
  9. // Uncomment one of these options to enable CoreXY, CoreXZ, or CoreYZ kinematics
  10. // either in the usual order or reversed
  11. //#define COREXY
  12. //#define COREXZ
  13. //#define COREYZ
  14. //#define COREYX
  15. //#define COREZX
  16. //#define COREZY
  17.  
  18. //===========================================================================
  19. //============================== Endstop Settings ===========================
  20. //===========================================================================
  21.  
  22. // @section homing
  23.  
  24. // Specify here all the endstop connectors that are connected to any endstop or probe.
  25. // Almost all printers will be using one per axis. Probes will use one or more of the
  26. // extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
  27. #define USE_XMIN_PLUG
  28. #define USE_YMIN_PLUG
  29. #define USE_ZMIN_PLUG
  30. //#define USE_XMAX_PLUG
  31. //#define USE_YMAX_PLUG
  32. //#define USE_ZMAX_PLUG
  33.  
  34. // coarse Endstop Settings
  35. //#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
  36.  
  37. #if DISABLED(ENDSTOPPULLUPS)
  38. // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
  39. //#define ENDSTOPPULLUP_XMAX
  40. //#define ENDSTOPPULLUP_YMAX
  41. //#define ENDSTOPPULLUP_ZMAX
  42. //#define ENDSTOPPULLUP_XMIN
  43. //#define ENDSTOPPULLUP_YMIN
  44. //#define ENDSTOPPULLUP_ZMIN
  45. //#define ENDSTOPPULLUP_ZMIN_PROBE
  46. #endif
  47.  
  48. // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
  49. #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  50. #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  51. #define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  52. #define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  53. #define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  54. #define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  55. #define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe.
  56.  
  57. // Enable this feature if all enabled endstop pins are interrupt-capable.
  58. // This will remove the need to poll the interrupt pins, saving many CPU cycles.
  59. //#define ENDSTOP_INTERRUPTS_FEATURE
  60.  
  61. //=============================================================================
  62. //============================== Movement Settings ============================
  63. //=============================================================================
  64. // @section motion
  65.  
  66. /**
  67. * Default Settings
  68. *
  69. * These settings can be reset by M502
  70. *
  71. * Note that if EEPROM is enabled, saved values will override these.
  72. */
  73.  
  74. /**
  75. * With this option each E stepper can have its own factors for the
  76. * following movement settings. If fewer factors are given than the
  77. * total number of extruders, the last value applies to the rest.
  78. */
  79. //#define DISTINCT_E_FACTORS
  80.  
  81. /**
  82. * Default Axis Steps Per Unit (steps/mm)
  83. * Override with M92
  84. * X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
  85. */
  86. #define DEFAULT_AXIS_STEPS_PER_UNIT { 100, 100, 800, 102.23 }
  87.  
  88. /**
  89. * Default Max Feed Rate (mm/s)
  90. * Override with M203
  91. * X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
  92. */
  93. #define DEFAULT_MAX_FEEDRATE { 400, 400, 80, 50 }
  94.  
  95. /**
  96. * Default Max Acceleration (change/s) change = mm/s
  97. * (Maximum start speed for accelerated moves)
  98. * Override with M201
  99. * X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
  100. */
  101. #define DEFAULT_MAX_ACCELERATION { 3000, 3000, 20, 10000 }
  102.  
  103. /**
  104. * Default Acceleration (change/s) change = mm/s
  105. * Override with M204
  106. *
  107. * M204 P Acceleration
  108. * M204 R Retract Acceleration
  109. * M204 T Travel Acceleration
  110. */
  111. #define DEFAULT_ACCELERATION 3000 // X, Y, Z and E acceleration for printing moves
  112. #define DEFAULT_RETRACT_ACCELERATION 3000 // E acceleration for retracts
  113. #define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
  114.  
  115. /**
  116. * Default Jerk (mm/s)
  117. * Override with M205 X Y Z E
  118. *
  119. * "Jerk" specifies the minimum speed change that requires acceleration.
  120. * When changing speed and direction, if the difference is less than the
  121. * value set here, it may happen instantaneously.
  122. */
  123. #define DEFAULT_XJERK 10.0
  124. #define DEFAULT_YJERK 10.0
  125. #define DEFAULT_ZJERK 0.3
  126. #define DEFAULT_EJERK 5.0
  127.  
  128. //===========================================================================
  129. //============================= Z Probe Options =============================
  130. //===========================================================================
  131. // @section probes
  132.  
  133. //
  134. // See http://marlinfw.org/docs/configuration/probes.html
  135. //
  136.  
  137. /**
  138. * Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  139. *
  140. * Enable this option for a probe connected to the Z Min endstop pin.
  141. */
  142. //#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  143.  
  144. /**
  145. * Z_MIN_PROBE_ENDSTOP
  146. *
  147. * Enable this option for a probe connected to any pin except Z-Min.
  148. * (By default Marlin assumes the Z-Max endstop pin.)
  149. * To use a custom Z Probe pin, set Z_MIN_PROBE_PIN below.
  150. *
  151. * - The simplest option is to use a free endstop connector.
  152. * - Use 5V for powered (usually inductive) sensors.
  153. *
  154. * - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:
  155. * - For simple switches connect...
  156. * - normally-closed switches to GND and D32.
  157. * - normally-open switches to 5V and D32.
  158. *
  159. * WARNING: Setting the wrong pin may have unexpected and potentially
  160. * disastrous consequences. Use with caution and do your homework.
  161. *
  162. */
  163. //#define Z_MIN_PROBE_ENDSTOP
  164.  
  165. /**
  166. * Probe Type
  167. *
  168. * Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.
  169. * Activate one of these to use Auto Bed Leveling below.
  170. */
  171.  
  172. /**
  173. * The "Manual Probe" provides a means to do "Auto" Bed Leveling without a probe.
  174. * Use G29 repeatedly, adjusting the Z height at each point with movement commands
  175. * or (with LCD_BED_LEVELING) the LCD controller.
  176. */
  177. //#define PROBE_MANUALLY
  178.  
  179. /**
  180. * A Fix-Mounted Probe either doesn't deploy or needs manual deployment.
  181. * (e.g., an inductive probe or a nozzle-based probe-switch.)
  182. */
  183. //#define FIX_MOUNTED_PROBE
  184.  
  185. /**
  186. * Z Servo Probe, such as an endstop switch on a rotating arm.
  187. */
  188. //#define Z_ENDSTOP_SERVO_NR 0 // Defaults to SERVO 0 connector.
  189. //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles
  190.  
  191. /**
  192. * The BLTouch probe uses a Hall effect sensor and emulates a servo.
  193. */
  194. //#define BLTOUCH
  195. #if ENABLED(BLTOUCH)
  196. //#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
  197. #endif
  198.  
  199. /**
  200. * Enable one or more of the following if probing seems unreliable.
  201. * Heaters and/or fans can be disabled during probing to minimize electrical
  202. * noise. A delay can also be added to allow noise and vibration to settle.
  203. * These options are most useful for the BLTouch probe, but may also improve
  204. * readings with inductive probes and piezo sensors.
  205. */
  206. //#define PROBING_HEATERS_OFF // Turn heaters off when probing
  207. //#define PROBING_FANS_OFF // Turn fans off when probing
  208. //#define DELAY_BEFORE_PROBING 200 // (ms) To prevent vibrations from triggering piezo sensors
  209.  
  210. // A probe that is deployed and stowed with a solenoid pin (SOL1_PIN)
  211. //#define SOLENOID_PROBE
  212.  
  213. // A sled-mounted probe like those designed by Charles Bell.
  214. //#define Z_PROBE_SLED
  215. //#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
  216.  
  217. //
  218. // For Z_PROBE_ALLEN_KEY see the Delta example configurations.
  219. //
  220.  
  221. /**
  222. * Z Probe to nozzle (X,Y) offset, relative to (0, 0).
  223. * X and Y offsets must be integers.
  224. *
  225. * In the following example the X and Y offsets are both positive:
  226. * #define X_PROBE_OFFSET_FROM_EXTRUDER 10
  227. * #define Y_PROBE_OFFSET_FROM_EXTRUDER 10
  228. *
  229. * +-- BACK ---+
  230. * | |
  231. * L | (+) P | R <-- probe (20,20)
  232. * E | | I
  233. * F | (-) N (+) | G <-- nozzle (10,10)
  234. * T | | H
  235. * | (-) | T
  236. * | |
  237. * O-- FRONT --+
  238. * (0,0)
  239. */
  240. #define X_PROBE_OFFSET_FROM_EXTRUDER 10 // X offset: -left +right [of the nozzle]
  241. #define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // Y offset: -front +behind [the nozzle]
  242. #define Z_PROBE_OFFSET_FROM_EXTRUDER 0 // Z offset: -below +above [the nozzle]
  243.  
  244. // X and Y axis travel speed (mm/m) between probes
  245. #define XY_PROBE_SPEED 8000
  246.  
  247. // Speed for the first approach when double-probing (MULTIPLE_PROBING == 2)
  248. #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
  249.  
  250. // Speed for the "accurate" probe of each point
  251. #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
  252.  
  253. // The number of probes to perform at each point.
  254. // Set to 2 for a fast/slow probe, using the second probe result.
  255. // Set to 3 or more for slow probes, averaging the results.
  256. //#define MULTIPLE_PROBING 2
  257.  
  258. /**
  259. * Z probes require clearance when deploying, stowing, and moving between
  260. * probe points to avoid hitting the bed and other hardware.
  261. * Servo-mounted probes require extra space for the arm to rotate.
  262. * Inductive probes need space to keep from triggering early.
  263. *
  264. * Use these settings to specify the distance (mm) to raise the probe (or
  265. * lower the bed). The values set here apply over and above any (negative)
  266. * probe Z Offset set with Z_PROBE_OFFSET_FROM_EXTRUDER, M851, or the LCD.
  267. * Only integer values >= 1 are valid here.
  268. *
  269. * Example: `M851 Z-5` with a CLEARANCE of 4 => 9mm from bed to nozzle.
  270. * But: `M851 Z+1` with a CLEARANCE of 2 => 2mm from bed to nozzle.
  271. */
  272. #define Z_CLEARANCE_DEPLOY_PROBE 10 // Z Clearance for Deploy/Stow
  273. #define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points
  274.  
  275. // For M851 give a range for adjusting the Z probe offset
  276. #define Z_PROBE_OFFSET_RANGE_MIN -20
  277. #define Z_PROBE_OFFSET_RANGE_MAX 20
  278.  
  279. // Enable the M48 repeatability test to test probe accuracy
  280. //#define Z_MIN_PROBE_REPEATABILITY_TEST
  281.  
  282. // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  283. // :{ 0:'Low', 1:'High' }
  284. #define X_ENABLE_ON 0
  285. #define Y_ENABLE_ON 0
  286. #define Z_ENABLE_ON 0
  287. #define E_ENABLE_ON 0 // For all extruders
  288.  
  289. // Disables axis stepper immediately when it's not being used.
  290. // WARNING: When motors turn off there is a chance of losing position accuracy!
  291. #define DISABLE_X false
  292. #define DISABLE_Y false
  293. #define DISABLE_Z false
  294. // Warn on display about possibly reduced accuracy
  295. //#define DISABLE_REDUCED_ACCURACY_WARNING
  296.  
  297. // @section extruder
  298.  
  299. #define DISABLE_E false // For all extruders
  300. #define DISABLE_INACTIVE_EXTRUDER true // Keep only the active extruder enabled.
  301.  
  302. // @section machine
  303.  
  304. // Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
  305. #define INVERT_X_DIR false
  306. #define INVERT_Y_DIR true
  307. #define INVERT_Z_DIR false
  308.  
  309. // Enable this option for Toshiba stepper drivers
  310. //#define CONFIG_STEPPERS_TOSHIBA
  311.  
  312. // @section extruder
  313.  
  314. // For direct drive extruder v9 set to true, for geared extruder set to false.
  315. #define INVERT_E0_DIR false
  316. #define INVERT_E1_DIR false
  317. #define INVERT_E2_DIR false
  318. #define INVERT_E3_DIR false
  319. #define INVERT_E4_DIR false
  320.  
  321. // @section homing
  322.  
  323. //#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
  324.  
  325. //#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
  326. // Be sure you have this distance over your Z_MAX_POS in case.
  327.  
  328. // Direction of endstops when homing; 1=MAX, -1=MIN
  329. // :[-1,1]
  330. #define X_HOME_DIR -1
  331. #define Y_HOME_DIR -1
  332. #define Z_HOME_DIR -1
  333.  
  334. // @section machine
  335.  
  336. // The size of the print bed
  337. #define X_BED_SIZE 155
  338. #define Y_BED_SIZE 180
  339.  
  340. // Travel limits (mm) after homing, corresponding to endstop positions.
  341. #define X_MIN_POS 0
  342. #define Y_MIN_POS 0
  343. #define Z_MIN_POS 0
  344. #define X_MAX_POS X_BED_SIZE
  345. #define Y_MAX_POS Y_BED_SIZE
  346. #define Z_MAX_POS 160
  347.  
  348. /**
  349. * Software Endstops
  350. *
  351. * - Prevent moves outside the set machine bounds.
  352. * - Individual axes can be disabled, if desired.
  353. * - X and Y only apply to Cartesian robots.
  354. * - Use 'M211' to set software endstops on/off or report current state
  355. */
  356.  
  357. // Min software endstops curtail movement below minimum coordinate bounds
  358. #define MIN_SOFTWARE_ENDSTOPS
  359. #if ENABLED(MIN_SOFTWARE_ENDSTOPS)
  360. #define MIN_SOFTWARE_ENDSTOP_X
  361. #define MIN_SOFTWARE_ENDSTOP_Y
  362. #define MIN_SOFTWARE_ENDSTOP_Z
  363. #endif
  364.  
  365. // Max software endstops curtail movement above maximum coordinate bounds
  366. #define MAX_SOFTWARE_ENDSTOPS
  367. #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
  368. #define MAX_SOFTWARE_ENDSTOP_X
  369. #define MAX_SOFTWARE_ENDSTOP_Y
  370. #define MAX_SOFTWARE_ENDSTOP_Z
  371. #endif
  372.  
  373. /**
  374. * Filament Runout Sensor
  375. * A mechanical or opto endstop is used to check for the presence of filament.
  376. *
  377. * RAMPS-based boards use SERVO3_PIN.
  378. * For other boards you may need to define FIL_RUNOUT_PIN.
  379. * By default the firmware assumes HIGH = has filament, LOW = ran out
  380. */
  381. //#define FILAMENT_RUNOUT_SENSOR
  382. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  383. #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
  384. #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
  385. #define FILAMENT_RUNOUT_SCRIPT "M600"
  386. #endif
  387.  
  388. //===========================================================================
  389. //=============================== Bed Leveling ==============================
  390. //===========================================================================
  391. // @section calibrate
  392.  
  393. /**
  394. * Choose one of the options below to enable G29 Bed Leveling. The parameters
  395. * and behavior of G29 will change depending on your selection.
  396. *
  397. * If using a Probe for Z Homing, enable Z_SAFE_HOMING also!
  398. *
  399. * - AUTO_BED_LEVELING_3POINT
  400. * Probe 3 arbitrary points on the bed (that aren't collinear)
  401. * You specify the XY coordinates of all 3 points.
  402. * The result is a single tilted plane. Best for a flat bed.
  403. *
  404. * - AUTO_BED_LEVELING_LINEAR
  405. * Probe several points in a grid.
  406. * You specify the rectangle and the density of sample points.
  407. * The result is a single tilted plane. Best for a flat bed.
  408. *
  409. * - AUTO_BED_LEVELING_BILINEAR
  410. * Probe several points in a grid.
  411. * You specify the rectangle and the density of sample points.
  412. * The result is a mesh, best for large or uneven beds.
  413. *
  414. * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
  415. * A comprehensive bed leveling system combining the features and benefits
  416. * of other systems. UBL also includes integrated Mesh Generation, Mesh
  417. * Validation and Mesh Editing systems.
  418. *
  419. * - MESH_BED_LEVELING
  420. * Probe a grid manually
  421. * The result is a mesh, suitable for large or uneven beds. (See BILINEAR.)
  422. * For machines without a probe, Mesh Bed Leveling provides a method to perform
  423. * leveling in steps so you can manually adjust the Z height at each grid-point.
  424. * With an LCD controller the process is guided step-by-step.
  425. */
  426. //#define AUTO_BED_LEVELING_3POINT
  427. //#define AUTO_BED_LEVELING_LINEAR
  428. //#define AUTO_BED_LEVELING_BILINEAR
  429. //#define AUTO_BED_LEVELING_UBL
  430. #define MESH_BED_LEVELING
  431.  
  432. /**
  433. * Enable detailed logging of G28, G29, M48, etc.
  434. * Turn on with the command 'M111 S32'.
  435. * NOTE: Requires a lot of PROGMEM!
  436. */
  437. //#define DEBUG_LEVELING_FEATURE
  438.  
  439. #if ENABLED(MESH_BED_LEVELING) || ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)
  440. // Gradually reduce leveling correction until a set height is reached,
  441. // at which point movement will be level to the machine's XY plane.
  442. // The height can be set with M420 Z<height>
  443. #define ENABLE_LEVELING_FADE_HEIGHT
  444.  
  445. // For Cartesian machines, instead of dividing moves on mesh boundaries,
  446. // split up moves into short segments like a Delta. This follows the
  447. // contours of the bed more closely than edge-to-edge straight moves.
  448. #define SEGMENT_LEVELED_MOVES
  449. #define LEVELED_SEGMENT_LENGTH 5.0 // (mm) Length of all segments (except the last one)
  450.  
  451. /**
  452. * Enable the G26 Mesh Validation Pattern tool.
  453. */
  454. #define G26_MESH_VALIDATION // Enable G26 mesh validation
  455. #if ENABLED(G26_MESH_VALIDATION)
  456. #define MESH_TEST_NOZZLE_SIZE 0.4 // (mm) Diameter of primary nozzle.
  457. #define MESH_TEST_LAYER_HEIGHT 0.2 // (mm) Default layer height for the G26 Mesh Validation Tool.
  458. #define MESH_TEST_HOTEND_TEMP 205.0 // (°C) Default nozzle temperature for the G26 Mesh Validation Tool.
  459. #define MESH_TEST_BED_TEMP 60.0 // (°C) Default bed temperature for the G26 Mesh Validation Tool.
  460. #endif
  461.  
  462. #endif
  463.  
  464. #if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)
  465.  
  466. // Set the number of grid points per dimension.
  467. #define GRID_MAX_POINTS_X 2
  468. #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  469.  
  470. // Set the boundaries for probing (where the probe can reach).
  471. #define LEFT_PROBE_BED_POSITION 15
  472. #define RIGHT_PROBE_BED_POSITION 170
  473. #define FRONT_PROBE_BED_POSITION 20
  474. #define BACK_PROBE_BED_POSITION 170
  475.  
  476. // The Z probe minimum outer margin (to validate G29 parameters).
  477. #define MIN_PROBE_EDGE 10
  478.  
  479. // Probe along the Y axis, advancing X after each column
  480. //#define PROBE_Y_FIRST
  481.  
  482. #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
  483.  
  484. // Beyond the probed grid, continue the implied tilt?
  485. // Default is to maintain the height of the nearest edge.
  486. //#define EXTRAPOLATE_BEYOND_GRID
  487.  
  488. //
  489. // Experimental Subdivision of the grid by Catmull-Rom method.
  490. // Synthesizes intermediate points to produce a more detailed mesh.
  491. //
  492. //#define ABL_BILINEAR_SUBDIVISION
  493. #if ENABLED(ABL_BILINEAR_SUBDIVISION)
  494. // Number of subdivisions between probe points
  495. #define BILINEAR_SUBDIVISIONS 3
  496. #endif
  497.  
  498. #endif
  499.  
  500. #elif ENABLED(AUTO_BED_LEVELING_3POINT)
  501.  
  502. // 3 arbitrary points to probe.
  503. // A simple cross-product is used to estimate the plane of the bed.
  504. #define ABL_PROBE_PT_1_X 15
  505. #define ABL_PROBE_PT_1_Y 180
  506. #define ABL_PROBE_PT_2_X 15
  507. #define ABL_PROBE_PT_2_Y 20
  508. #define ABL_PROBE_PT_3_X 170
  509. #define ABL_PROBE_PT_3_Y 20
  510.  
  511. #elif ENABLED(AUTO_BED_LEVELING_UBL)
  512.  
  513. //===========================================================================
  514. //========================= Unified Bed Leveling ============================
  515. //===========================================================================
  516.  
  517. //#define MESH_EDIT_GFX_OVERLAY // Display a graphics overlay while editing the mesh
  518.  
  519. #define MESH_INSET 1 // Mesh inset margin on print area
  520. #define GRID_MAX_POINTS_X 10 // Don't use more than 15 points per axis, implementation limited.
  521. #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  522.  
  523. #define UBL_PROBE_PT_1_X 39 // Probing points for 3-Point leveling of the mesh
  524. #define UBL_PROBE_PT_1_Y 180
  525. #define UBL_PROBE_PT_2_X 39
  526. #define UBL_PROBE_PT_2_Y 20
  527. #define UBL_PROBE_PT_3_X 180
  528. #define UBL_PROBE_PT_3_Y 20
  529.  
  530. #define UBL_MESH_EDIT_MOVES_Z // Sophisticated users prefer no movement of nozzle
  531. #define UBL_SAVE_ACTIVE_ON_M500 // Save the currently active mesh in the current slot on M500
  532.  
  533. #elif ENABLED(MESH_BED_LEVELING)
  534.  
  535. //===========================================================================
  536. //=================================== Mesh ==================================
  537. //===========================================================================
  538.  
  539. #define MESH_INSET 10 // Mesh inset margin on print area
  540. #define GRID_MAX_POINTS_X 2 // Don't use more than 7 points per axis, implementation limited.
  541. #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  542.  
  543. //#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest Z at Z_MIN_POS
  544.  
  545. #endif // BED_LEVELING
  546.  
  547. /**
  548. * Use the LCD controller for bed leveling
  549. * Requires MESH_BED_LEVELING or PROBE_MANUALLY
  550. */
  551. #define LCD_BED_LEVELING
  552.  
  553. #if ENABLED(LCD_BED_LEVELING)
  554. #define MBL_Z_STEP 0.025 // Step size while manually probing Z axis.
  555. #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
  556. #endif
  557.  
  558. // Add a menu item to move between bed corners for manual bed adjustment
  559. #define LEVEL_BED_CORNERS
  560.  
  561. /**
  562. * Commands to execute at the end of G29 probing.
  563. * Useful to retract or move the Z probe out of the way.
  564. */
  565. //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
  566.  
  567.  
  568. // @section homing
  569.  
  570. // The center of the bed is at (X=0, Y=0)
  571. //#define BED_CENTER_AT_0_0
  572.  
  573. // Manually set the home position. Leave these undefined for automatic settings.
  574. // For DELTA this is the top-center of the Cartesian print volume.
  575. //#define MANUAL_X_HOME_POS 0
  576. //#define MANUAL_Y_HOME_POS 0
  577. //#define MANUAL_Z_HOME_POS 0
  578.  
  579. // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
  580. //
  581. // With this feature enabled:
  582. //
  583. // - Allow Z homing only after X and Y homing AND stepper drivers still enabled.
  584. // - If stepper drivers time out, it will need X and Y homing again before Z homing.
  585. // - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
  586. // - Prevent Z homing when the Z probe is outside bed area.
  587. //
  588. //#define Z_SAFE_HOMING
  589.  
  590. #if ENABLED(Z_SAFE_HOMING)
  591. #define Z_SAFE_HOMING_X_POINT ((X_BED_SIZE) / 2) // X point for Z homing when homing all axes (G28).
  592. #define Z_SAFE_HOMING_Y_POINT ((Y_BED_SIZE) / 2) // Y point for Z homing when homing all axes (G28).
  593. #endif
  594.  
  595. // Homing speeds (mm/m)
  596. #define HOMING_FEEDRATE_XY (50*60)
  597. #define HOMING_FEEDRATE_Z (5*60)
  598.  
  599. // @section calibrate
  600.  
  601. /**
  602. * Bed Skew Compensation
  603. *
  604. * This feature corrects for misalignment in the XYZ axes.
  605. *
  606. * Take the following steps to get the bed skew in the XY plane:
  607. * 1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
  608. * 2. For XY_DIAG_AC measure the diagonal A to C
  609. * 3. For XY_DIAG_BD measure the diagonal B to D
  610. * 4. For XY_SIDE_AD measure the edge A to D
  611. *
  612. * Marlin automatically computes skew factors from these measurements.
  613. * Skew factors may also be computed and set manually:
  614. *
  615. * - Compute AB : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
  616. * - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
  617. *
  618. * If desired, follow the same procedure for XZ and YZ.
  619. * Use these diagrams for reference:
  620. *
  621. * Y Z Z
  622. * ^ B-------C ^ B-------C ^ B-------C
  623. * | / / | / / | / /
  624. * | / / | / / | / /
  625. * | A-------D | A-------D | A-------D
  626. * +-------------->X +-------------->X +-------------->Y
  627. * XY_SKEW_FACTOR XZ_SKEW_FACTOR YZ_SKEW_FACTOR
  628. */
  629. //#define SKEW_CORRECTION
  630.  
  631. #if ENABLED(SKEW_CORRECTION)
  632. // Input all length measurements here:
  633. #define XY_DIAG_AC 282.8427124746
  634. #define XY_DIAG_BD 282.8427124746
  635. #define XY_SIDE_AD 200
  636.  
  637. // Or, set the default skew factors directly here
  638. // to override the above measurements:
  639. #define XY_SKEW_FACTOR 0.0
  640.  
  641. //#define SKEW_CORRECTION_FOR_Z
  642. #if ENABLED(SKEW_CORRECTION_FOR_Z)
  643. #define XZ_DIAG_AC 282.8427124746
  644. #define XZ_DIAG_BD 282.8427124746
  645. #define YZ_DIAG_AC 282.8427124746
  646. #define YZ_DIAG_BD 282.8427124746
  647. #define YZ_SIDE_AD 200
  648. #define XZ_SKEW_FACTOR 0.0
  649. #define YZ_SKEW_FACTOR 0.0
  650. #endif
  651.  
  652. // Enable this option for M852 to set skew at runtime
  653. //#define SKEW_CORRECTION_GCODE
  654. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement