Merge pull request #7816 from thinkyhead/bf2_inhibit_option
[2.0.x] Option to disallow motion before homing
This commit is contained in:
commit
f3677e077c
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -780,6 +780,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -844,6 +844,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -766,6 +766,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -751,6 +751,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -751,6 +751,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -759,6 +759,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -770,6 +770,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 5 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 5 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -742,6 +742,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -742,6 +742,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -775,6 +775,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -764,6 +764,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -784,6 +784,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -758,6 +758,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -772,6 +772,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -811,6 +811,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -760,6 +760,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -871,6 +871,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -874,6 +874,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 15 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 15 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -874,6 +874,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -883,6 +883,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -763,6 +763,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -746,6 +746,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -755,6 +755,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -765,6 +765,8 @@
|
|||||||
|
|
||||||
// @section homing
|
// @section homing
|
||||||
|
|
||||||
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
||||||
|
|
||||||
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
//#define Z_HOMING_HEIGHT 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
|
||||||
// Be sure you have this distance over your Z_MAX_POS in case.
|
// Be sure you have this distance over your Z_MAX_POS in case.
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* G42: Move X & Y axes to mesh coordinates (I & J)
|
* G42: Move X & Y axes to mesh coordinates (I & J)
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::G42() {
|
void GcodeSuite::G42() {
|
||||||
if (IsRunning()) {
|
if (MOTION_CONDITIONS) {
|
||||||
const bool hasI = parser.seenval('I');
|
const bool hasI = parser.seenval('I');
|
||||||
const int8_t ix = hasI ? parser.value_int() : 0;
|
const int8_t ix = hasI ? parser.value_int() : 0;
|
||||||
const bool hasJ = parser.seenval('J');
|
const bool hasJ = parser.seenval('J');
|
||||||
|
@ -41,7 +41,7 @@ void GcodeSuite::G0_G1(
|
|||||||
bool fast_move/*=false*/
|
bool fast_move/*=false*/
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
if (IsRunning()) {
|
if (MOTION_CONDITIONS) {
|
||||||
get_destination_from_command(); // For X Y Z E F
|
get_destination_from_command(); // For X Y Z E F
|
||||||
|
|
||||||
#if ENABLED(FWRETRACT)
|
#if ENABLED(FWRETRACT)
|
||||||
|
@ -211,7 +211,7 @@ void plan_arc(
|
|||||||
* G3 X20 Y12 R14 ; CCW circle with r=14 ending at X20 Y12
|
* G3 X20 Y12 R14 ; CCW circle with r=14 ending at X20 Y12
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::G2_G3(const bool clockwise) {
|
void GcodeSuite::G2_G3(const bool clockwise) {
|
||||||
if (IsRunning()) {
|
if (MOTION_CONDITIONS) {
|
||||||
|
|
||||||
#if ENABLED(SF_ARC_FIX)
|
#if ENABLED(SF_ARC_FIX)
|
||||||
const bool relative_mode_backup = relative_mode;
|
const bool relative_mode_backup = relative_mode;
|
||||||
|
@ -50,7 +50,7 @@ void plan_cubic_move(const float offset[4]) {
|
|||||||
* G5: Cubic B-spline
|
* G5: Cubic B-spline
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::G5() {
|
void GcodeSuite::G5() {
|
||||||
if (IsRunning()) {
|
if (MOTION_CONDITIONS) {
|
||||||
|
|
||||||
#if ENABLED(CNC_WORKSPACE_PLANES)
|
#if ENABLED(CNC_WORKSPACE_PLANES)
|
||||||
if (workspace_plane != PLANE_XY) {
|
if (workspace_plane != PLANE_XY) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
||||||
#if !defined(SPI_FULL_SPEED)
|
#ifndef SPI_FULL_SPEED
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SPI speed where 0 <= index <= 6
|
* SPI speed where 0 <= index <= 6
|
||||||
|
@ -632,7 +632,7 @@ static_assert(1 >= 0
|
|||||||
/**
|
/**
|
||||||
* Make sure Z raise values are set
|
* Make sure Z raise values are set
|
||||||
*/
|
*/
|
||||||
#if !defined(Z_CLEARANCE_DEPLOY_PROBE)
|
#ifndef Z_CLEARANCE_DEPLOY_PROBE
|
||||||
#error "You must define Z_CLEARANCE_DEPLOY_PROBE in your configuration."
|
#error "You must define Z_CLEARANCE_DEPLOY_PROBE in your configuration."
|
||||||
#elif !defined(Z_CLEARANCE_BETWEEN_PROBES)
|
#elif !defined(Z_CLEARANCE_BETWEEN_PROBES)
|
||||||
#error "You must define Z_CLEARANCE_BETWEEN_PROBES in your configuration."
|
#error "You must define Z_CLEARANCE_BETWEEN_PROBES in your configuration."
|
||||||
|
@ -2928,19 +2928,19 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if IS_KINEMATIC
|
#if IS_KINEMATIC || ENABLED(NO_MOTION_BEFORE_HOMING)
|
||||||
#define _MOVE_XYZ_ALLOWED (axis_homed[X_AXIS] && axis_homed[Y_AXIS] && axis_homed[Z_AXIS])
|
#define _MOVE_XYZ_ALLOWED (axis_homed[X_AXIS] && axis_homed[Y_AXIS] && axis_homed[Z_AXIS])
|
||||||
#if ENABLED(DELTA)
|
|
||||||
#define _MOVE_XY_ALLOWED (current_position[Z_AXIS] <= delta_clip_start_height)
|
|
||||||
void lcd_lower_z_to_clip_height() {
|
|
||||||
line_to_z(delta_clip_start_height);
|
|
||||||
lcd_synchronize();
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#define _MOVE_XY_ALLOWED true
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#define _MOVE_XYZ_ALLOWED true
|
#define _MOVE_XYZ_ALLOWED true
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(DELTA)
|
||||||
|
#define _MOVE_XY_ALLOWED (current_position[Z_AXIS] <= delta_clip_start_height)
|
||||||
|
void lcd_lower_z_to_clip_height() {
|
||||||
|
line_to_z(delta_clip_start_height);
|
||||||
|
lcd_synchronize();
|
||||||
|
}
|
||||||
|
#else
|
||||||
#define _MOVE_XY_ALLOWED true
|
#define _MOVE_XY_ALLOWED true
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
#include "../feature/bedlevel/bedlevel.h"
|
#include "../feature/bedlevel/bedlevel.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if NEED_UNHOMED_ERR && ENABLED(ULTRA_LCD)
|
#if HAS_AXIS_UNHOMED_ERR && ENABLED(ULTRA_LCD)
|
||||||
#include "../lcd/ultralcd.h"
|
#include "../lcd/ultralcd.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -820,7 +820,7 @@ void prepare_move_to_destination() {
|
|||||||
set_current_to_destination();
|
set_current_to_destination();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if NEED_UNHOMED_ERR
|
#if HAS_AXIS_UNHOMED_ERR
|
||||||
|
|
||||||
bool axis_unhomed_error(const bool x/*=true*/, const bool y/*=true*/, const bool z/*=true*/) {
|
bool axis_unhomed_error(const bool x/*=true*/, const bool y/*=true*/, const bool z/*=true*/) {
|
||||||
#if ENABLED(HOME_AFTER_DEACTIVATE)
|
#if ENABLED(HOME_AFTER_DEACTIVATE)
|
||||||
@ -848,7 +848,7 @@ void prepare_move_to_destination() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // HAS_AXIS_UNHOMED_ERR
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The homing feedrate may vary
|
* The homing feedrate may vary
|
||||||
|
@ -167,12 +167,26 @@ void clean_up_after_endstop_or_probe_move();
|
|||||||
// Homing
|
// Homing
|
||||||
//
|
//
|
||||||
|
|
||||||
#define NEED_UNHOMED_ERR (HAS_PROBING_PROCEDURE || HOTENDS > 1 || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED) || ENABLED(NOZZLE_CLEAN_FEATURE) || ENABLED(NOZZLE_PARK_FEATURE) || ENABLED(DELTA_AUTO_CALIBRATION))
|
#define HAS_AXIS_UNHOMED_ERR ( \
|
||||||
|
ENABLED(Z_PROBE_ALLEN_KEY) \
|
||||||
|
|| ENABLED(Z_PROBE_SLED) \
|
||||||
|
|| HAS_PROBING_PROCEDURE \
|
||||||
|
|| HOTENDS > 1 \
|
||||||
|
|| ENABLED(NOZZLE_CLEAN_FEATURE) \
|
||||||
|
|| ENABLED(NOZZLE_PARK_FEATURE) \
|
||||||
|
|| (ENABLED(ADVANCED_PAUSE_FEATURE) && ENABLED(HOME_BEFORE_FILAMENT_CHANGE)) \
|
||||||
|
) || ENABLED(NO_MOTION_BEFORE_HOMING)
|
||||||
|
|
||||||
#if NEED_UNHOMED_ERR
|
#if HAS_AXIS_UNHOMED_ERR
|
||||||
bool axis_unhomed_error(const bool x=true, const bool y=true, const bool z=true);
|
bool axis_unhomed_error(const bool x=true, const bool y=true, const bool z=true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(NO_MOTION_BEFORE_HOMING)
|
||||||
|
#define MOTION_CONDITIONS (IsRunning() && !axis_unhomed_error())
|
||||||
|
#else
|
||||||
|
#define MOTION_CONDITIONS IsRunning()
|
||||||
|
#endif
|
||||||
|
|
||||||
void set_axis_is_at_home(const AxisEnum axis);
|
void set_axis_is_at_home(const AxisEnum axis);
|
||||||
|
|
||||||
void homeaxis(const AxisEnum axis);
|
void homeaxis(const AxisEnum axis);
|
||||||
|
@ -276,7 +276,7 @@ inline void do_probe_raise(const float z_raise) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // Z_PROBE_ALLEN_KEY
|
||||||
|
|
||||||
#if ENABLED(PROBING_FANS_OFF)
|
#if ENABLED(PROBING_FANS_OFF)
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ void Stepper::isr() {
|
|||||||
|
|
||||||
HAL_TIMER_TYPE ocr_val;
|
HAL_TIMER_TYPE ocr_val;
|
||||||
|
|
||||||
#if defined(CPU_32_BIT)
|
#ifdef CPU_32_BIT
|
||||||
#define ENDSTOP_NOMINAL_OCR_VAL 1500 * HAL_TICKS_PER_US // check endstops every 1.5ms to guarantee two stepper ISRs within 5ms for BLTouch
|
#define ENDSTOP_NOMINAL_OCR_VAL 1500 * HAL_TICKS_PER_US // check endstops every 1.5ms to guarantee two stepper ISRs within 5ms for BLTouch
|
||||||
#define OCR_VAL_TOLERANCE 500 * HAL_TICKS_PER_US // First max delay is 2.0ms, last min delay is 0.5ms, all others 1.5ms
|
#define OCR_VAL_TOLERANCE 500 * HAL_TICKS_PER_US // First max delay is 2.0ms, last min delay is 0.5ms, all others 1.5ms
|
||||||
#else
|
#else
|
||||||
@ -335,7 +335,7 @@ void Stepper::isr() {
|
|||||||
// Disable Timer0 ISRs and enable global ISR again to capture UART events (incoming chars)
|
// Disable Timer0 ISRs and enable global ISR again to capture UART events (incoming chars)
|
||||||
DISABLE_TEMPERATURE_INTERRUPT(); // Temperature ISR
|
DISABLE_TEMPERATURE_INTERRUPT(); // Temperature ISR
|
||||||
DISABLE_STEPPER_DRIVER_INTERRUPT();
|
DISABLE_STEPPER_DRIVER_INTERRUPT();
|
||||||
#if !defined(CPU_32_BIT)
|
#ifndef CPU_32_BIT
|
||||||
sei();
|
sei();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
* Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
|
* Many thanks to Hans Raaf (@oderwat) for developing the Anet-specific software and supporting the Anet community.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(__AVR_ATmega1284P__)
|
#ifndef __AVR_ATmega1284P__
|
||||||
#error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu."
|
#error "Oops! Make sure you have 'Anet V1.0', 'Anet V1.0 (Optiboot)' or 'Sanguino' selected from the 'Tools -> Boards' menu."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
#define Y_MAX_PIN 15 //10k pullup to 3.3V, 1K series
|
#define Y_MAX_PIN 15 //10k pullup to 3.3V, 1K series
|
||||||
#define Z_MIN_PIN 18 //10k pullup to 3.3V, 1K series
|
#define Z_MIN_PIN 18 //10k pullup to 3.3V, 1K series
|
||||||
#define Z_MAX_PIN 19 //10k pullup to 3.3V, 1K series
|
#define Z_MAX_PIN 19 //10k pullup to 3.3V, 1K series
|
||||||
//#define Z_probe_pin 1 // AUX-1
|
//#define Z_PROBE_PIN 1 // AUX-1
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -267,23 +267,18 @@
|
|||||||
//#define SHIFT_EN 41 // J5-4 & AUX-4
|
//#define SHIFT_EN 41 // J5-4 & AUX-4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SDSUPPORT)
|
#define SDCARD_SORT_ALPHA // Using SORT feature to keep one directory level in RAM
|
||||||
#define SDCARD_SORT_ALPHA // Using SORT feature to keep one directory level in RAM
|
// When going up/down directory levels the SD card is
|
||||||
// When going up/down directory levels the SD card is
|
// accessed but the garbage/lines are removed when the
|
||||||
// accessed but the garbage/lines are removed when the
|
// LCD updates
|
||||||
// LCD updates
|
|
||||||
|
|
||||||
// SD Card Sorting options
|
#define SDSORT_LIMIT 256 // Maximum number of sorted items (10-256). Costs 27 bytes each.
|
||||||
#if ENABLED(SDCARD_SORT_ALPHA)
|
#define FOLDER_SORTING -1 // -1=above 0=none 1=below
|
||||||
#define SDSORT_LIMIT 255 // Maximum number of sorted items (10-256). Costs 27 bytes each.
|
#define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 g-code.
|
||||||
#define FOLDER_SORTING -1 // -1=above 0=none 1=below
|
#define SDSORT_USES_RAM true // Pre-allocate a static array for faster pre-sorting.
|
||||||
#define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 g-code.
|
#define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
|
||||||
#define SDSORT_USES_RAM true // Pre-allocate a static array for faster pre-sorting.
|
#define SDSORT_CACHE_NAMES true // Keep sorted items in RAM longer for speedy performance. Most expensive option.
|
||||||
#define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
|
#define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
|
||||||
#define SDSORT_CACHE_NAMES true // Keep sorted items in RAM longer for speedy performance. Most expensive option.
|
|
||||||
#define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
||||||
// #define LCD_SCREEN_ROT_180
|
// #define LCD_SCREEN_ROT_180
|
||||||
@ -307,7 +302,7 @@
|
|||||||
#undef LCD_PINS_D5 //59 // J3-8 & AUX-2
|
#undef LCD_PINS_D5 //59 // J3-8 & AUX-2
|
||||||
#define DOGLCD_A0 59 // J3-8 & AUX-2
|
#define DOGLCD_A0 59 // J3-8 & AUX-2
|
||||||
#undef LCD_PINS_D6 //63 // J5-3 & AUX-2
|
#undef LCD_PINS_D6 //63 // J5-3 & AUX-2
|
||||||
#undef LCD_PINS_D7 //6 // (SERVO1) J5-1 & SERVO connector
|
#undef LCD_PINS_D7 // 6 // (SERVO1) J5-1 & SERVO connector
|
||||||
#define DOGLCD_SCK SCK_PIN
|
#define DOGLCD_SCK SCK_PIN
|
||||||
#define DOGLCD_MOSI MOSI_PIN
|
#define DOGLCD_MOSI MOSI_PIN
|
||||||
|
|
||||||
@ -335,17 +330,17 @@
|
|||||||
// Ethernet pins
|
// Ethernet pins
|
||||||
//
|
//
|
||||||
#ifndef ULTIPANEL
|
#ifndef ULTIPANEL
|
||||||
#define ENET_MDIO 71 // J12-4
|
#define ENET_MDIO 71 // J12-4
|
||||||
#define ENET_RX_ER 73 // J12-6
|
#define ENET_RX_ER 73 // J12-6
|
||||||
#define ENET_RXD1 75 // J12-8
|
#define ENET_RXD1 75 // J12-8
|
||||||
#endif
|
#endif
|
||||||
#define ENET_MOC 70 // J12-3
|
#define ENET_MOC 70 // J12-3
|
||||||
#define REF_CLK 72 // J12-5
|
#define REF_CLK 72 // J12-5
|
||||||
#define ENET_RXD0 74 // J12-7
|
#define ENET_RXD0 74 // J12-7
|
||||||
#define ENET_CRS 76 // J12-9
|
#define ENET_CRS 76 // J12-9
|
||||||
#define ENET_TX_EN 77 // J12-10
|
#define ENET_TX_EN 77 // J12-10
|
||||||
#define ENET_TXD0 78 // J12-11
|
#define ENET_TXD0 78 // J12-11
|
||||||
#define ENET_TXD1 79 // J12-12
|
#define ENET_TXD1 79 // J12-12
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PWMS
|
* PWMS
|
||||||
|
@ -134,7 +134,7 @@ typedef int32_t(*PFI)();
|
|||||||
|
|
||||||
/* NULL pointer */
|
/* NULL pointer */
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL ((void*) 0)
|
#define NULL ((void*) 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Number of elements in an array */
|
/* Number of elements in an array */
|
||||||
@ -145,11 +145,11 @@ typedef int32_t(*PFI)();
|
|||||||
/* External data/function define */
|
/* External data/function define */
|
||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
|
|
||||||
#if !defined(MAX)
|
#ifndef MAX
|
||||||
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MIN)
|
#ifndef MIN
|
||||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user