浏览代码

[2.0.x] Add Z_AFTER_PROBING option (#10058)

Some "fix-mounted" probes need manual stowing. And after probing some may prefer to raise or lower the nozzle. This restores an old option but tailors it to allow raise or lower as preferred.
Scott Lahteine 7 年前
父节点
当前提交
28f1276286
没有帐户链接到提交者的电子邮件
共有 70 个文件被更改,包括 119 次插入10 次删除
  1. 1
    0
      Marlin/Configuration.h
  2. 1
    0
      Marlin/src/config/default/Configuration.h
  3. 1
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  4. 1
    0
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  5. 3
    1
      Marlin/src/config/examples/Anet/A6/Configuration.h
  6. 1
    0
      Marlin/src/config/examples/Anet/A8/Configuration.h
  7. 1
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  8. 1
    0
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  9. 1
    0
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  10. 1
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  11. 1
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  12. 1
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  13. 1
    0
      Marlin/src/config/examples/Cartesio/Configuration.h
  14. 1
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  15. 1
    0
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  16. 1
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration.h
  17. 1
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration.h
  18. 1
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration.h
  19. 1
    0
      Marlin/src/config/examples/Felix/Configuration.h
  20. 1
    0
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  21. 1
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  22. 1
    0
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  23. 1
    0
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  24. 1
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  25. 1
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  26. 1
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  27. 1
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  28. 1
    0
      Marlin/src/config/examples/MakerParts/Configuration.h
  29. 3
    2
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  30. 1
    0
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  31. 1
    0
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  32. 1
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  33. 1
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  34. 1
    0
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  35. 1
    0
      Marlin/src/config/examples/RigidBot/Configuration.h
  36. 1
    0
      Marlin/src/config/examples/SCARA/Configuration.h
  37. 1
    0
      Marlin/src/config/examples/STM32F10/Configuration.h
  38. 1
    0
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  39. 1
    0
      Marlin/src/config/examples/TheBorg/Configuration.h
  40. 1
    0
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  41. 1
    0
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  42. 1
    0
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  43. 1
    0
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  44. 1
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  45. 1
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  46. 1
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  47. 1
    0
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  48. 1
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  49. 1
    0
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  50. 1
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  51. 1
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  52. 1
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  53. 1
    0
      Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h
  54. 1
    0
      Marlin/src/config/examples/delta/generic/Configuration.h
  55. 1
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  56. 1
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  57. 1
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  58. 1
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  59. 1
    0
      Marlin/src/config/examples/makibox/Configuration.h
  60. 1
    0
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  61. 1
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  62. 1
    0
      Marlin/src/config/examples/wt150/Configuration.h
  63. 7
    0
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
  64. 7
    3
      Marlin/src/gcode/bedlevel/abl/G29.cpp
  65. 7
    0
      Marlin/src/gcode/calibrate/G28.cpp
  66. 4
    1
      Marlin/src/gcode/probe/G30.cpp
  67. 10
    2
      Marlin/src/gcode/probe/M401_M402.cpp
  68. 3
    1
      Marlin/src/inc/SanityCheck.h
  69. 10
    0
      Marlin/src/module/probe.cpp
  70. 5
    0
      Marlin/src/module/probe.h

+ 1
- 0
Marlin/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/default/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h 查看文件

773
  */
773
  */
774
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
774
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
775
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
775
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
776
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
776
 
777
 
777
 // For M851 give a range for adjusting the Z probe offset
778
 // For M851 give a range for adjusting the Z probe offset
778
 #define Z_PROBE_OFFSET_RANGE_MIN -20
779
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 3
- 1
Marlin/src/config/examples/Anet/A6/Configuration.h 查看文件

823
  */
823
  */
824
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
824
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
825
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
825
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
826
-//#define Z_CLEARANCE_DEPLOY_PROBE   5 // Z Clearance for Deploy/Stow
826
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
827
+//#define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
827
 //#define Z_CLEARANCE_BETWEEN_PROBES  3 // Z Clearance between probe points
828
 //#define Z_CLEARANCE_BETWEEN_PROBES  3 // Z Clearance between probe points
829
+//#define Z_AFTER_PROBING             3 // Z position after probing is done
828
 
830
 
829
 // For M851 give a range for adjusting the Z probe offset
831
 // For M851 give a range for adjusting the Z probe offset
830
 #define Z_PROBE_OFFSET_RANGE_MIN -20
832
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Anet/A8/Configuration.h 查看文件

760
  */
760
  */
761
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
761
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
762
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
762
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
763
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
763
 
764
 
764
 // For M851 give a range for adjusting the Z probe offset
765
 // For M851 give a range for adjusting the Z probe offset
765
 #define Z_PROBE_OFFSET_RANGE_MIN -20
766
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING          10 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING          10 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration.h 查看文件

741
  */
741
  */
742
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
742
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
743
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
743
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
744
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
744
 
745
 
745
 // For M851 give a range for adjusting the Z probe offset
746
 // For M851 give a range for adjusting the Z probe offset
746
 #define Z_PROBE_OFFSET_RANGE_MIN -20
747
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h 查看文件

754
  */
754
  */
755
 #define Z_CLEARANCE_DEPLOY_PROBE   0 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_DEPLOY_PROBE   0 // Z Clearance for Deploy/Stow
756
 #define Z_CLEARANCE_BETWEEN_PROBES 2 // Z Clearance between probe points
756
 #define Z_CLEARANCE_BETWEEN_PROBES 2 // Z Clearance between probe points
757
+//#define Z_AFTER_PROBING          2 // Z position after probing is done
757
 
758
 
758
 // For M851 give a range for adjusting the Z probe offset
759
 // For M851 give a range for adjusting the Z probe offset
759
 #define Z_PROBE_OFFSET_RANGE_MIN -2
760
 #define Z_PROBE_OFFSET_RANGE_MIN -2

+ 1
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration.h 查看文件

741
  */
741
  */
742
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
742
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
743
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
743
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
744
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
744
 
745
 
745
 // For M851 give a range for adjusting the Z probe offset
746
 // For M851 give a range for adjusting the Z probe offset
746
 #define Z_PROBE_OFFSET_RANGE_MIN -20
747
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Cartesio/Configuration.h 查看文件

752
  */
752
  */
753
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
753
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
754
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
755
 
756
 
756
 // For M851 give a range for adjusting the Z probe offset
757
 // For M851 give a range for adjusting the Z probe offset
757
 #define Z_PROBE_OFFSET_RANGE_MIN -20
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration.h 查看文件

763
  */
763
  */
764
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
764
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
765
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
765
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
766
+//#define Z_AFTER_PROBING          10 // Z position after probing is done
766
 
767
 
767
 // For M851 give a range for adjusting the Z probe offset
768
 // For M851 give a range for adjusting the Z probe offset
768
 #define Z_PROBE_OFFSET_RANGE_MIN -20
769
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Creality/CR-10S/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration.h 查看文件

772
  */
772
  */
773
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
773
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
774
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
774
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
775
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
775
 
776
 
776
 // For M851 give a range for adjusting the Z probe offset
777
 // For M851 give a range for adjusting the Z probe offset
777
 #define Z_PROBE_OFFSET_RANGE_MIN -20
778
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration.h 查看文件

757
  */
757
  */
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
760
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
760
 
761
 
761
 // For M851 give a range for adjusting the Z probe offset
762
 // For M851 give a range for adjusting the Z probe offset
762
 #define Z_PROBE_OFFSET_RANGE_MIN -20
763
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration.h 查看文件

763
  */
763
  */
764
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
764
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
765
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
765
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
766
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
766
 
767
 
767
 // For M851 give a range for adjusting the Z probe offset
768
 // For M851 give a range for adjusting the Z probe offset
768
 #define Z_PROBE_OFFSET_RANGE_MIN -20
769
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Felix/Configuration.h 查看文件

735
  */
735
  */
736
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
736
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
737
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
737
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
738
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
738
 
739
 
739
 // For M851 give a range for adjusting the Z probe offset
740
 // For M851 give a range for adjusting the Z probe offset
740
 #define Z_PROBE_OFFSET_RANGE_MIN -20
741
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Felix/DUAL/Configuration.h 查看文件

735
  */
735
  */
736
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
736
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
737
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
737
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
738
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
738
 
739
 
739
 // For M851 give a range for adjusting the Z probe offset
740
 // For M851 give a range for adjusting the Z probe offset
740
 #define Z_PROBE_OFFSET_RANGE_MIN -20
741
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h 查看文件

760
  */
760
  */
761
 #define Z_CLEARANCE_DEPLOY_PROBE    3 // Z Clearance for Deploy/Stow
761
 #define Z_CLEARANCE_DEPLOY_PROBE    3 // Z Clearance for Deploy/Stow
762
 #define Z_CLEARANCE_BETWEEN_PROBES  3 // Z Clearance between probe points
762
 #define Z_CLEARANCE_BETWEEN_PROBES  3 // Z Clearance between probe points
763
+//#define Z_AFTER_PROBING           3 // Z position after probing is done
763
 
764
 
764
 // For M851 give a range for adjusting the Z probe offset
765
 // For M851 give a range for adjusting the Z probe offset
765
 #define Z_PROBE_OFFSET_RANGE_MIN -20
766
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h 查看文件

768
  */
768
  */
769
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
769
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
770
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
770
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
771
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
771
 
772
 
772
 // For M851 give a range for adjusting the Z probe offset
773
 // For M851 give a range for adjusting the Z probe offset
773
 #define Z_PROBE_OFFSET_RANGE_MIN -20
774
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  6 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  6 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           6 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h 查看文件

769
  */
769
  */
770
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
770
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
771
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
771
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
772
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
772
 
773
 
773
 // For M851 give a range for adjusting the Z probe offset
774
 // For M851 give a range for adjusting the Z probe offset
774
 #define Z_PROBE_OFFSET_RANGE_MIN -20
775
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h 查看文件

768
  */
768
  */
769
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
769
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
770
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
770
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
771
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
771
 
772
 
772
 // For M851 give a range for adjusting the Z probe offset
773
 // For M851 give a range for adjusting the Z probe offset
773
 #define Z_PROBE_OFFSET_RANGE_MIN -20
774
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h 查看文件

757
  */
757
  */
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
760
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
760
 
761
 
761
 // For M851 give a range for adjusting the Z probe offset
762
 // For M851 give a range for adjusting the Z probe offset
762
 #define Z_PROBE_OFFSET_RANGE_MIN -20
763
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration.h 查看文件

765
  */
765
  */
766
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
766
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
767
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
767
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
768
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
768
 
769
 
769
 // For M851 give a range for adjusting the Z probe offset
770
 // For M851 give a range for adjusting the Z probe offset
770
 #define Z_PROBE_OFFSET_RANGE_MIN -20
771
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/MakerParts/Configuration.h 查看文件

773
  */
773
  */
774
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
774
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
775
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
775
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
776
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
776
 
777
 
777
 // For M851 give a range for adjusting the Z probe offset
778
 // For M851 give a range for adjusting the Z probe offset
778
 #define Z_PROBE_OFFSET_RANGE_MIN -20
779
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 3
- 2
Marlin/src/config/examples/Malyan/M150/Configuration.h 查看文件

775
  * Example: `M851 Z-5` with a CLEARANCE of 4  =>  9mm from bed to nozzle.
775
  * Example: `M851 Z-5` with a CLEARANCE of 4  =>  9mm from bed to nozzle.
776
  *     But: `M851 Z+1` with a CLEARANCE of 2  =>  2mm from bed to nozzle.
776
  *     But: `M851 Z+1` with a CLEARANCE of 2  =>  2mm from bed to nozzle.
777
  */
777
  */
778
-//#define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
779
-//#define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
778
+#define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
779
+#define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
780
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
780
 
781
 
781
 // For M851 give a range for adjusting the Z probe offset
782
 // For M851 give a range for adjusting the Z probe offset
782
 //#define Z_PROBE_OFFSET_RANGE_MIN -20
783
 //#define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Malyan/M200/Configuration.h 查看文件

752
  */
752
  */
753
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
753
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
754
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
755
 
756
 
756
 // For M851 give a range for adjusting the Z probe offset
757
 // For M851 give a range for adjusting the Z probe offset
757
 #define Z_PROBE_OFFSET_RANGE_MIN -20
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h 查看文件

757
  */
757
  */
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
760
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
760
 
761
 
761
 // For M851 give a range for adjusting the Z probe offset
762
 // For M851 give a range for adjusting the Z probe offset
762
 #define Z_PROBE_OFFSET_RANGE_MIN -20
763
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h 查看文件

757
  */
757
  */
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
758
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
759
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
760
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
760
 
761
 
761
 // For M851 give a range for adjusting the Z probe offset
762
 // For M851 give a range for adjusting the Z probe offset
762
 #define Z_PROBE_OFFSET_RANGE_MIN -20
763
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/RigidBot/Configuration.h 查看文件

751
  */
751
  */
752
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
752
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
753
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
753
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
754
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
754
 
755
 
755
 // For M851 give a range for adjusting the Z probe offset
756
 // For M851 give a range for adjusting the Z probe offset
756
 #define Z_PROBE_OFFSET_RANGE_MIN -20
757
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/SCARA/Configuration.h 查看文件

764
  */
764
  */
765
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
765
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
766
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
766
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
767
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
767
 
768
 
768
 // For M851 give a range for adjusting the Z probe offset
769
 // For M851 give a range for adjusting the Z probe offset
769
 #define Z_PROBE_OFFSET_RANGE_MIN -20
770
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/STM32F10/Configuration.h 查看文件

756
  */
756
  */
757
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
757
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
758
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
758
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
759
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
759
 
760
 
760
 // For M851 give a range for adjusting the Z probe offset
761
 // For M851 give a range for adjusting the Z probe offset
761
 #define Z_PROBE_OFFSET_RANGE_MIN -20
762
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Sanguinololu/Configuration.h 查看文件

784
  */
784
  */
785
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
785
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
786
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
786
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
787
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
787
 
788
 
788
 // For M851 give a range for adjusting the Z probe offset
789
 // For M851 give a range for adjusting the Z probe offset
789
 #define Z_PROBE_OFFSET_RANGE_MIN -20
790
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/TheBorg/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/TinyBoy2/Configuration.h 查看文件

804
  */
804
  */
805
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
805
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
806
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
806
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
807
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
807
 
808
 
808
 // For M851 give a range for adjusting the Z probe offset
809
 // For M851 give a range for adjusting the Z probe offset
809
 #define Z_PROBE_OFFSET_RANGE_MIN -20
810
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Tronxy/X1/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Tronxy/X5S/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Tronxy/XY100/Configuration.h 查看文件

764
  */
764
  */
765
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
765
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
766
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
766
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
767
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
767
 
768
 
768
 // For M851 give a range for adjusting the Z probe offset
769
 // For M851 give a range for adjusting the Z probe offset
769
 #define Z_PROBE_OFFSET_RANGE_MIN -20
770
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration.h 查看文件

782
  */
782
  */
783
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
783
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
784
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
784
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
785
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
785
 
786
 
786
 // For M851 give a range for adjusting the Z probe offset
787
 // For M851 give a range for adjusting the Z probe offset
787
 #define Z_PROBE_OFFSET_RANGE_MIN -20
788
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h 查看文件

763
  */
763
  */
764
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
764
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
765
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
765
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
766
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
766
 
767
 
767
 // For M851 give a range for adjusting the Z probe offset
768
 // For M851 give a range for adjusting the Z probe offset
768
 #define Z_PROBE_OFFSET_RANGE_MIN -20
769
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/adafruit/ST7565/Configuration.h 查看文件

753
  */
753
  */
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
754
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
755
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
756
 
757
 
757
 // For M851 give a range for adjusting the Z probe offset
758
 // For M851 give a range for adjusting the Z probe offset
758
 #define Z_PROBE_OFFSET_RANGE_MIN -20
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h 查看文件

883
  */
883
  */
884
 #define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
884
 #define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
885
 #define Z_CLEARANCE_BETWEEN_PROBES  2 // Z Clearance between probe points
885
 #define Z_CLEARANCE_BETWEEN_PROBES  2 // Z Clearance between probe points
886
+//#define Z_AFTER_PROBING           2 // Z position after probing is done
886
 
887
 
887
 // For M851 give a range for adjusting the Z probe offset
888
 // For M851 give a range for adjusting the Z probe offset
888
 #define Z_PROBE_OFFSET_RANGE_MIN -20
889
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h 查看文件

883
  */
883
  */
884
 #define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
884
 #define Z_CLEARANCE_DEPLOY_PROBE    5 // Z Clearance for Deploy/Stow
885
 #define Z_CLEARANCE_BETWEEN_PROBES  2 // Z Clearance between probe points
885
 #define Z_CLEARANCE_BETWEEN_PROBES  2 // Z Clearance between probe points
886
+//#define Z_AFTER_PROBING           2 // Z position after probing is done
886
 
887
 
887
 // For M851 give a range for adjusting the Z probe offset
888
 // For M851 give a range for adjusting the Z probe offset
888
 #define Z_PROBE_OFFSET_RANGE_MIN -20
889
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h 查看文件

883
  */
883
  */
884
 #define Z_CLEARANCE_DEPLOY_PROBE   50 // Z Clearance for Deploy/Stow
884
 #define Z_CLEARANCE_DEPLOY_PROBE   50 // Z Clearance for Deploy/Stow
885
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
885
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
886
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
886
 
887
 
887
 // For M851 give a range for adjusting the Z probe offset
888
 // For M851 give a range for adjusting the Z probe offset
888
 #define Z_PROBE_OFFSET_RANGE_MIN -20
889
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h 查看文件

885
  */
885
  */
886
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
886
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
887
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
887
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
888
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
888
 
889
 
889
 // For M851 give a range for adjusting the Z probe offset
890
 // For M851 give a range for adjusting the Z probe offset
890
 #define Z_PROBE_OFFSET_RANGE_MIN -20
891
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/generic/Configuration.h 查看文件

870
  */
870
  */
871
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
871
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
872
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
872
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
873
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
873
 
874
 
874
 // For M851 give a range for adjusting the Z probe offset
875
 // For M851 give a range for adjusting the Z probe offset
875
 #define Z_PROBE_OFFSET_RANGE_MIN -20
876
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration.h 查看文件

873
  */
873
  */
874
 #define Z_CLEARANCE_DEPLOY_PROBE   50 // Z Clearance for Deploy/Stow
874
 #define Z_CLEARANCE_DEPLOY_PROBE   50 // Z Clearance for Deploy/Stow
875
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
875
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
876
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
876
 
877
 
877
 // For M851 give a range for adjusting the Z probe offset
878
 // For M851 give a range for adjusting the Z probe offset
878
 #define Z_PROBE_OFFSET_RANGE_MIN -20
879
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration.h 查看文件

872
  */
872
  */
873
 #define Z_CLEARANCE_DEPLOY_PROBE   100 // Z Clearance for Deploy/Stow
873
 #define Z_CLEARANCE_DEPLOY_PROBE   100 // Z Clearance for Deploy/Stow
874
 #define Z_CLEARANCE_BETWEEN_PROBES   5 // Z Clearance between probe points
874
 #define Z_CLEARANCE_BETWEEN_PROBES   5 // Z Clearance between probe points
875
+//#define Z_AFTER_PROBING            5 // Z position after probing is done
875
 
876
 
876
 // For M851 give a range for adjusting the Z probe offset
877
 // For M851 give a range for adjusting the Z probe offset
877
 
878
 

+ 1
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration.h 查看文件

882
  */
882
  */
883
 #define Z_CLEARANCE_DEPLOY_PROBE   20 // Z Clearance for Deploy/Stow
883
 #define Z_CLEARANCE_DEPLOY_PROBE   20 // Z Clearance for Deploy/Stow
884
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
884
 #define Z_CLEARANCE_BETWEEN_PROBES 10 // Z Clearance between probe points
885
+//#define Z_AFTER_PROBING          10 // Z position after probing is done
885
 
886
 
886
 // For M851 give a range for adjusting the Z probe offset
887
 // For M851 give a range for adjusting the Z probe offset
887
 #define Z_PROBE_OFFSET_RANGE_MIN -20
888
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h 查看文件

766
  */
766
  */
767
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
767
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
768
 #define Z_CLEARANCE_BETWEEN_PROBES  6 // Z Clearance between probe points
768
 #define Z_CLEARANCE_BETWEEN_PROBES  6 // Z Clearance between probe points
769
+//#define Z_AFTER_PROBING           6 // Z position after probing is done
769
 
770
 
770
 // For M851 give a range for adjusting the Z probe offset
771
 // For M851 give a range for adjusting the Z probe offset
771
 #define Z_PROBE_OFFSET_RANGE_MIN -20
772
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/makibox/Configuration.h 查看文件

756
  */
756
  */
757
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
757
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
758
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
758
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
759
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
759
 
760
 
760
 // For M851 give a range for adjusting the Z probe offset
761
 // For M851 give a range for adjusting the Z probe offset
761
 #define Z_PROBE_OFFSET_RANGE_MIN -20
762
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/stm32f103ret6/Configuration.h 查看文件

754
  */
754
  */
755
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
755
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
756
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
756
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
757
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
757
 
758
 
758
 // For M851 give a range for adjusting the Z probe offset
759
 // For M851 give a range for adjusting the Z probe offset
759
 #define Z_PROBE_OFFSET_RANGE_MIN -20
760
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration.h 查看文件

748
  */
748
  */
749
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
749
 #define Z_CLEARANCE_DEPLOY_PROBE   15 // Z Clearance for Deploy/Stow
750
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
750
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
751
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
751
 
752
 
752
 // For M851 give a range for adjusting the Z probe offset
753
 // For M851 give a range for adjusting the Z probe offset
753
 #define Z_PROBE_OFFSET_RANGE_MIN -20
754
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 1
- 0
Marlin/src/config/examples/wt150/Configuration.h 查看文件

758
  */
758
  */
759
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
759
 #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
760
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
760
 #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
761
+//#define Z_AFTER_PROBING           5 // Z position after probing is done
761
 
762
 
762
 // For M851 give a range for adjusting the Z probe offset
763
 // For M851 give a range for adjusting the Z probe offset
763
 #define Z_PROBE_OFFSET_RANGE_MIN -20
764
 #define Z_PROBE_OFFSET_RANGE_MIN -20

+ 7
- 0
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp 查看文件

391
           restore_ubl_active_state_and_leave();
391
           restore_ubl_active_state_and_leave();
392
         }
392
         }
393
         do_blocking_move_to_xy(0.5 * (MESH_MAX_X - (MESH_MIN_X)), 0.5 * (MESH_MAX_Y - (MESH_MIN_Y)));
393
         do_blocking_move_to_xy(0.5 * (MESH_MAX_X - (MESH_MIN_X)), 0.5 * (MESH_MAX_Y - (MESH_MIN_Y)));
394
+        report_current_position();
394
       }
395
       }
395
 
396
 
396
     #endif // HAS_BED_PROBE
397
     #endif // HAS_BED_PROBE
428
             }
429
             }
429
             probe_entire_mesh(g29_x_pos + X_PROBE_OFFSET_FROM_EXTRUDER, g29_y_pos + Y_PROBE_OFFSET_FROM_EXTRUDER,
430
             probe_entire_mesh(g29_x_pos + X_PROBE_OFFSET_FROM_EXTRUDER, g29_y_pos + Y_PROBE_OFFSET_FROM_EXTRUDER,
430
                               parser.seen('T'), parser.seen('E'), parser.seen('U'));
431
                               parser.seen('T'), parser.seen('E'), parser.seen('U'));
432
+
433
+            report_current_position();
431
             break;
434
             break;
432
 
435
 
433
         #endif // HAS_BED_PROBE
436
         #endif // HAS_BED_PROBE
475
 
478
 
476
             SERIAL_PROTOCOLLNPGM("G29 P2 finished.");
479
             SERIAL_PROTOCOLLNPGM("G29 P2 finished.");
477
 
480
 
481
+            report_current_position();
482
+
478
           #else
483
           #else
479
 
484
 
480
             SERIAL_PROTOCOLLNPGM("?P2 is only available when an LCD is present.");
485
             SERIAL_PROTOCOLLNPGM("?P2 is only available when an LCD is present.");
758
       } while (location.x_index >= 0 && --count);
763
       } while (location.x_index >= 0 && --count);
759
 
764
 
760
       STOW_PROBE();
765
       STOW_PROBE();
766
+      move_z_after_probing();
767
+
761
       restore_ubl_active_state_and_leave();
768
       restore_ubl_active_state_and_leave();
762
 
769
 
763
       do_blocking_move_to_xy(
770
       do_blocking_move_to_xy(

+ 7
- 3
Marlin/src/gcode/bedlevel/abl/G29.cpp 查看文件

733
 
733
 
734
     #endif // AUTO_BED_LEVELING_3POINT
734
     #endif // AUTO_BED_LEVELING_3POINT
735
 
735
 
736
-    // Stow the probe, raising if not fix-mounted.
736
+    // Stow the probe. No raise for FIX_MOUNTED_PROBE.
737
     if (STOW_PROBE()) {
737
     if (STOW_PROBE()) {
738
       set_bed_leveling_enabled(abl_should_enable);
738
       set_bed_leveling_enabled(abl_should_enable);
739
       measured_z = NAN;
739
       measured_z = NAN;
967
     if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< G29");
967
     if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< G29");
968
   #endif
968
   #endif
969
 
969
 
970
-  report_current_position();
971
-
972
   KEEPALIVE_STATE(IN_HANDLER);
970
   KEEPALIVE_STATE(IN_HANDLER);
973
 
971
 
974
   if (planner.leveling_active)
972
   if (planner.leveling_active)
975
     SYNC_PLAN_POSITION_KINEMATIC();
973
     SYNC_PLAN_POSITION_KINEMATIC();
974
+
975
+  #if HAS_BED_PROBE
976
+    move_z_after_probing();
977
+  #endif
978
+
979
+  report_current_position();
976
 }
980
 }
977
 
981
 
978
 #endif // OLDSCHOOL_ABL
982
 #endif // OLDSCHOOL_ABL

+ 7
- 0
Marlin/src/gcode/calibrate/G28.cpp 查看文件

39
   #include "../../feature/tmc_util.h"
39
   #include "../../feature/tmc_util.h"
40
 #endif
40
 #endif
41
 
41
 
42
+#if HOMING_Z_WITH_PROBE
43
+  #include "../../module/probe.h"
44
+#endif
45
+
42
 #include "../../lcd/ultralcd.h"
46
 #include "../../lcd/ultralcd.h"
43
 
47
 
44
 #if ENABLED(QUICK_HOME)
48
 #if ENABLED(QUICK_HOME)
304
           HOMEAXIS(Z);
308
           HOMEAXIS(Z);
305
         #endif
309
         #endif
306
       } // home_all || homeZ
310
       } // home_all || homeZ
311
+      #if HOMING_Z_WITH_PROBE
312
+        move_z_after_probing();
313
+      #endif
307
     #endif // Z_HOME_DIR < 0
314
     #endif // Z_HOME_DIR < 0
308
 
315
 
309
     SYNC_PLAN_POSITION_KINEMATIC();
316
     SYNC_PLAN_POSITION_KINEMATIC();

+ 4
- 1
Marlin/src/gcode/probe/G30.cpp 查看文件

51
 
51
 
52
   setup_for_endstop_or_probe_move();
52
   setup_for_endstop_or_probe_move();
53
 
53
 
54
-  const float measured_z = probe_pt(xpos, ypos, parser.boolval('E'), 1);
54
+  const bool do_stow = parser.boolval('E');
55
+  const float measured_z = probe_pt(xpos, ypos, do_stow, 1);
55
 
56
 
56
   if (!isnan(measured_z)) {
57
   if (!isnan(measured_z)) {
57
     SERIAL_PROTOCOLPAIR("Bed X: ", FIXFLOAT(xpos));
58
     SERIAL_PROTOCOLPAIR("Bed X: ", FIXFLOAT(xpos));
61
 
62
 
62
   clean_up_after_endstop_or_probe_move();
63
   clean_up_after_endstop_or_probe_move();
63
 
64
 
65
+  if (do_stow) move_z_after_probing();
66
+
64
   report_current_position();
67
   report_current_position();
65
 }
68
 }
66
 
69
 

+ 10
- 2
Marlin/src/gcode/probe/M401_M402.cpp 查看文件

25
 #if HAS_BED_PROBE
25
 #if HAS_BED_PROBE
26
 
26
 
27
 #include "../gcode.h"
27
 #include "../gcode.h"
28
+#include "../../module/motion.h"
28
 #include "../../module/probe.h"
29
 #include "../../module/probe.h"
29
 
30
 
30
 /**
31
 /**
31
  * M401: Deploy and activate the Z probe
32
  * M401: Deploy and activate the Z probe
32
  */
33
  */
33
-void GcodeSuite::M401() { DEPLOY_PROBE(); }
34
+void GcodeSuite::M401() {
35
+  DEPLOY_PROBE();
36
+  report_current_position();
37
+}
34
 
38
 
35
 /**
39
 /**
36
  * M402: Deactivate and stow the Z probe
40
  * M402: Deactivate and stow the Z probe
37
  */
41
  */
38
-void GcodeSuite::M402() { STOW_PROBE(); }
42
+void GcodeSuite::M402() {
43
+  STOW_PROBE();
44
+  move_z_after_probing();
45
+  report_current_position();
46
+}
39
 
47
 
40
 #endif // HAS_BED_PROBE
48
 #endif // HAS_BED_PROBE

+ 3
- 1
Marlin/src/inc/SanityCheck.h 查看文件

162
 #elif defined(MIN_Z_HEIGHT_FOR_HOMING)
162
 #elif defined(MIN_Z_HEIGHT_FOR_HOMING)
163
   #error "MIN_Z_HEIGHT_FOR_HOMING is now Z_HOMING_HEIGHT. Please update your configuration."
163
   #error "MIN_Z_HEIGHT_FOR_HOMING is now Z_HOMING_HEIGHT. Please update your configuration."
164
 #elif defined(Z_RAISE_BEFORE_PROBING) || defined(Z_RAISE_AFTER_PROBING)
164
 #elif defined(Z_RAISE_BEFORE_PROBING) || defined(Z_RAISE_AFTER_PROBING)
165
-  #error "Z_RAISE_(BEFORE|AFTER)_PROBING are deprecated. Use Z_CLEARANCE_DEPLOY_PROBE instead."
165
+  #error "Z_RAISE_(BEFORE|AFTER)_PROBING are deprecated. Use Z_CLEARANCE_DEPLOY_PROBE and Z_AFTER_PROBING instead."
166
 #elif defined(Z_RAISE_PROBE_DEPLOY_STOW) || defined(Z_RAISE_BETWEEN_PROBINGS)
166
 #elif defined(Z_RAISE_PROBE_DEPLOY_STOW) || defined(Z_RAISE_BETWEEN_PROBINGS)
167
   #error "Z_RAISE_PROBE_DEPLOY_STOW and Z_RAISE_BETWEEN_PROBINGS are now Z_CLEARANCE_DEPLOY_PROBE and Z_CLEARANCE_BETWEEN_PROBES. Please update your configuration."
167
   #error "Z_RAISE_PROBE_DEPLOY_STOW and Z_RAISE_BETWEEN_PROBINGS are now Z_CLEARANCE_DEPLOY_PROBE and Z_CLEARANCE_BETWEEN_PROBES. Please update your configuration."
168
 #elif defined(Z_PROBE_DEPLOY_HEIGHT) || defined(Z_PROBE_TRAVEL_HEIGHT)
168
 #elif defined(Z_PROBE_DEPLOY_HEIGHT) || defined(Z_PROBE_TRAVEL_HEIGHT)
789
     #error "Probes need Z_CLEARANCE_DEPLOY_PROBE >= 0."
789
     #error "Probes need Z_CLEARANCE_DEPLOY_PROBE >= 0."
790
   #elif Z_CLEARANCE_BETWEEN_PROBES < 0
790
   #elif Z_CLEARANCE_BETWEEN_PROBES < 0
791
     #error "Probes need Z_CLEARANCE_BETWEEN_PROBES >= 0."
791
     #error "Probes need Z_CLEARANCE_BETWEEN_PROBES >= 0."
792
+  #elif Z_AFTER_PROBING < 0
793
+    #error "Probes need Z_AFTER_PROBING >= 0."
792
   #endif
794
   #endif
793
 
795
 
794
   #if MULTIPLE_PROBING && MULTIPLE_PROBING < 2
796
   #if MULTIPLE_PROBING && MULTIPLE_PROBING < 2

+ 10
- 0
Marlin/src/module/probe.cpp 查看文件

465
   return false;
465
   return false;
466
 }
466
 }
467
 
467
 
468
+#ifdef Z_AFTER_PROBING
469
+  // After probing move to a preferred Z position
470
+  void move_z_after_probing() {
471
+    if (current_position[Z_AXIS] != Z_AFTER_PROBING) {
472
+      do_blocking_move_to_z(Z_AFTER_PROBING);
473
+      current_position[Z_AXIS] = Z_AFTER_PROBING;
474
+    }
475
+  }
476
+#endif
477
+
468
 /**
478
 /**
469
  * @brief Used by run_z_probe to do a single Z probe move.
479
  * @brief Used by run_z_probe to do a single Z probe move.
470
  *
480
  *

+ 5
- 0
Marlin/src/module/probe.h 查看文件

32
 #if HAS_BED_PROBE
32
 #if HAS_BED_PROBE
33
   extern float zprobe_zoffset;
33
   extern float zprobe_zoffset;
34
   bool set_probe_deployed(const bool deploy);
34
   bool set_probe_deployed(const bool deploy);
35
+  #ifdef Z_AFTER_PROBING
36
+    void move_z_after_probing();
37
+  #else
38
+    inline void move_z_after_probing() {}
39
+  #endif
35
   float probe_pt(const float &rx, const float &ry, const bool, const uint8_t, const bool probe_relative=true);
40
   float probe_pt(const float &rx, const float &ry, const bool, const uint8_t, const bool probe_relative=true);
36
   #define DEPLOY_PROBE() set_probe_deployed(true)
41
   #define DEPLOY_PROBE() set_probe_deployed(true)
37
   #define STOW_PROBE() set_probe_deployed(false)
42
   #define STOW_PROBE() set_probe_deployed(false)

正在加载...
取消
保存