Browse Source

Add M240 parameters D I J R S

Scott Lahteine 5 years ago
parent
commit
e00aad84af
74 changed files with 409 additions and 397 deletions
  1. 5
    5
      Marlin/Configuration_adv.h
  2. 5
    5
      Marlin/src/config/default/Configuration_adv.h
  3. 5
    5
      Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  4. 5
    5
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  5. 5
    5
      Marlin/src/config/examples/Anet/A2/Configuration_adv.h
  6. 5
    5
      Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h
  7. 5
    5
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  8. 5
    5
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  9. 5
    5
      Marlin/src/config/examples/AnyCubic/i3/Configuration_adv.h
  10. 5
    5
      Marlin/src/config/examples/ArmEd/Configuration_adv.h
  11. 5
    5
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  12. 5
    5
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  13. 5
    5
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  14. 5
    5
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  15. 5
    5
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  16. 5
    5
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  17. 5
    5
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  18. 5
    5
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  19. 5
    5
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  20. 5
    5
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  21. 5
    5
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  22. 5
    5
      Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
  23. 5
    5
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  24. 5
    5
      Marlin/src/config/examples/Einstart-S/Configuration_adv.h
  25. 5
    5
      Marlin/src/config/examples/Felix/Configuration_adv.h
  26. 5
    5
      Marlin/src/config/examples/FlashForge/CreatorPro/Configuration_adv.h
  27. 5
    5
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  28. 5
    5
      Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h
  29. 5
    5
      Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  30. 5
    5
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h
  31. 5
    5
      Marlin/src/config/examples/Geeetech/A10M/Configuration_adv.h
  32. 5
    5
      Marlin/src/config/examples/Geeetech/A20M/Configuration_adv.h
  33. 5
    5
      Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h
  34. 5
    5
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  35. 5
    5
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  36. 5
    5
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  37. 5
    5
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  38. 5
    5
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  39. 5
    5
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  40. 5
    5
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  41. 5
    5
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  42. 5
    5
      Marlin/src/config/examples/Mks/Robin/Configuration_adv.h
  43. 5
    5
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  44. 5
    5
      Marlin/src/config/examples/RapideLite/RL200/Configuration_adv.h
  45. 5
    5
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  46. 5
    5
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  47. 5
    5
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  48. 5
    5
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  49. 5
    5
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  50. 5
    5
      Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h
  51. 5
    5
      Marlin/src/config/examples/UltiMachine/Archim1/Configuration_adv.h
  52. 5
    5
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  53. 5
    5
      Marlin/src/config/examples/VORONDesign/Configuration_adv.h
  54. 5
    5
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  55. 5
    5
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  56. 5
    5
      Marlin/src/config/examples/WASP/PowerWASP/Configuration_adv.h
  57. 5
    5
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  58. 5
    5
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  59. 5
    5
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  60. 5
    5
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  61. 5
    5
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  62. 5
    5
      Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h
  63. 5
    5
      Marlin/src/config/examples/delta/MKS/SBASE/Configuration_adv.h
  64. 5
    5
      Marlin/src/config/examples/delta/Tevo Little Monster/Configuration_adv.h
  65. 5
    5
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  66. 5
    5
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  67. 5
    5
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  68. 5
    5
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  69. 5
    5
      Marlin/src/config/examples/makibox/Configuration_adv.h
  70. 5
    5
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  71. 5
    5
      Marlin/src/config/examples/wt150/Configuration_adv.h
  72. 2
    2
      Marlin/src/feature/pause.cpp
  73. 1
    1
      Marlin/src/feature/pause.h
  74. 51
    39
      Marlin/src/gcode/feature/camera/M240.cpp

+ 5
- 5
Marlin/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/default/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/3DFabXYZ/Migbot/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Anet/A2/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

@@ -1814,9 +1814,9 @@
1814 1814
 //#define PHOTO_GCODE
1815 1815
 #if ENABLED(PHOTO_GCODE)
1816 1816
   // A position to move to (and raise Z) before taking the photo
1817
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1818
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1819
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1817
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1818
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1819
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1820 1820
 
1821 1821
   // Canon RC-1 or homebrew digital camera trigger
1822 1822
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1827,10 +1827,10 @@
1827 1827
   //#define CHDK_PIN        4
1828 1828
 
1829 1829
   // Optional second move with delay to trigger the camera shutter
1830
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1830
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1831 1831
 
1832 1832
   // Duration to hold the switch or keep CHDK_PIN high
1833
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1833
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1834 1834
 #endif
1835 1835
 
1836 1836
 /**

+ 5
- 5
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/AnyCubic/i3/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/ArmEd/Configuration_adv.h View File

@@ -1820,9 +1820,9 @@
1820 1820
 //#define PHOTO_GCODE
1821 1821
 #if ENABLED(PHOTO_GCODE)
1822 1822
   // A position to move to (and raise Z) before taking the photo
1823
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1824
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1825
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1823
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1824
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1825
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1826 1826
 
1827 1827
   // Canon RC-1 or homebrew digital camera trigger
1828 1828
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1833,10 +1833,10 @@
1833 1833
   //#define CHDK_PIN        4
1834 1834
 
1835 1835
   // Optional second move with delay to trigger the camera shutter
1836
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1836
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1837 1837
 
1838 1838
   // Duration to hold the switch or keep CHDK_PIN high
1839
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1839
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1840 1840
 #endif
1841 1841
 
1842 1842
 /**

+ 5
- 5
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

@@ -1814,9 +1814,9 @@
1814 1814
 //#define PHOTO_GCODE
1815 1815
 #if ENABLED(PHOTO_GCODE)
1816 1816
   // A position to move to (and raise Z) before taking the photo
1817
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1818
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1819
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1817
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1818
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1819
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1820 1820
 
1821 1821
   // Canon RC-1 or homebrew digital camera trigger
1822 1822
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1827,10 +1827,10 @@
1827 1827
   //#define CHDK_PIN        4
1828 1828
 
1829 1829
   // Optional second move with delay to trigger the camera shutter
1830
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1830
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1831 1831
 
1832 1832
   // Duration to hold the switch or keep CHDK_PIN high
1833
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1833
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1834 1834
 #endif
1835 1835
 
1836 1836
 /**

+ 5
- 5
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@@ -1823,9 +1823,9 @@
1823 1823
 //#define PHOTO_GCODE
1824 1824
 #if ENABLED(PHOTO_GCODE)
1825 1825
   // A position to move to (and raise Z) before taking the photo
1826
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1827
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1828
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1826
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1827
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1828
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1829 1829
 
1830 1830
   // Canon RC-1 or homebrew digital camera trigger
1831 1831
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1836,10 +1836,10 @@
1836 1836
   //#define CHDK_PIN        4
1837 1837
 
1838 1838
   // Optional second move with delay to trigger the camera shutter
1839
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1839
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1840 1840
 
1841 1841
   // Duration to hold the switch or keep CHDK_PIN high
1842
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1842
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1843 1843
 #endif
1844 1844
 
1845 1845
 /**

+ 5
- 5
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Einstart-S/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Felix/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/FlashForge/CreatorPro/Configuration_adv.h View File

@@ -1814,9 +1814,9 @@
1814 1814
 //#define PHOTO_GCODE
1815 1815
 #if ENABLED(PHOTO_GCODE)
1816 1816
   // A position to move to (and raise Z) before taking the photo
1817
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1818
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1819
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1817
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1818
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1819
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1820 1820
 
1821 1821
   // Canon RC-1 or homebrew digital camera trigger
1822 1822
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1827,10 +1827,10 @@
1827 1827
   //#define CHDK_PIN        4
1828 1828
 
1829 1829
   // Optional second move with delay to trigger the camera shutter
1830
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1830
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1831 1831
 
1832 1832
   // Duration to hold the switch or keep CHDK_PIN high
1833
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1833
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1834 1834
 #endif
1835 1835
 
1836 1836
 /**

+ 5
- 5
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h View File

@@ -1820,9 +1820,9 @@
1820 1820
 //#define PHOTO_GCODE
1821 1821
 #if ENABLED(PHOTO_GCODE)
1822 1822
   // A position to move to (and raise Z) before taking the photo
1823
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1824
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1825
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1823
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1824
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1825
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1826 1826
 
1827 1827
   // Canon RC-1 or homebrew digital camera trigger
1828 1828
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1833,10 +1833,10 @@
1833 1833
   //#define CHDK_PIN        4
1834 1834
 
1835 1835
   // Optional second move with delay to trigger the camera shutter
1836
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1836
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1837 1837
 
1838 1838
   // Duration to hold the switch or keep CHDK_PIN high
1839
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1839
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1840 1840
 #endif
1841 1841
 
1842 1842
 /**

+ 5
- 5
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h View File

@@ -1820,9 +1820,9 @@
1820 1820
 //#define PHOTO_GCODE
1821 1821
 #if ENABLED(PHOTO_GCODE)
1822 1822
   // A position to move to (and raise Z) before taking the photo
1823
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1824
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1825
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1823
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1824
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1825
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1826 1826
 
1827 1827
   // Canon RC-1 or homebrew digital camera trigger
1828 1828
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1833,10 +1833,10 @@
1833 1833
   //#define CHDK_PIN        4
1834 1834
 
1835 1835
   // Optional second move with delay to trigger the camera shutter
1836
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1836
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1837 1837
 
1838 1838
   // Duration to hold the switch or keep CHDK_PIN high
1839
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1839
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1840 1840
 #endif
1841 1841
 
1842 1842
 /**

+ 5
- 5
Marlin/src/config/examples/Geeetech/A10M/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/Geeetech/A20M/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/MakerParts/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Mks/Robin/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h View File

@@ -1823,9 +1823,9 @@
1823 1823
 //#define PHOTO_GCODE
1824 1824
 #if ENABLED(PHOTO_GCODE)
1825 1825
   // A position to move to (and raise Z) before taking the photo
1826
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1827
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1828
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1826
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1827
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1828
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1829 1829
 
1830 1830
   // Canon RC-1 or homebrew digital camera trigger
1831 1831
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1836,10 +1836,10 @@
1836 1836
   //#define CHDK_PIN        4
1837 1837
 
1838 1838
   // Optional second move with delay to trigger the camera shutter
1839
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1839
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1840 1840
 
1841 1841
   // Duration to hold the switch or keep CHDK_PIN high
1842
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1842
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1843 1843
 #endif
1844 1844
 
1845 1845
 /**

+ 5
- 5
Marlin/src/config/examples/RapideLite/RL200/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/TheBorg/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/UltiMachine/Archim1/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/VORONDesign/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

@@ -1828,9 +1828,9 @@
1828 1828
 //#define PHOTO_GCODE
1829 1829
 #if ENABLED(PHOTO_GCODE)
1830 1830
   // A position to move to (and raise Z) before taking the photo
1831
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1832
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1833
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1831
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1832
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1833
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1834 1834
 
1835 1835
   // Canon RC-1 or homebrew digital camera trigger
1836 1836
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1841,10 +1841,10 @@
1841 1841
   //#define CHDK_PIN        4
1842 1842
 
1843 1843
   // Optional second move with delay to trigger the camera shutter
1844
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1844
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1845 1845
 
1846 1846
   // Duration to hold the switch or keep CHDK_PIN high
1847
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1847
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1848 1848
 #endif
1849 1849
 
1850 1850
 /**

+ 5
- 5
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/WASP/PowerWASP/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h View File

@@ -1818,9 +1818,9 @@
1818 1818
 //#define PHOTO_GCODE
1819 1819
 #if ENABLED(PHOTO_GCODE)
1820 1820
   // A position to move to (and raise Z) before taking the photo
1821
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1822
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1823
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1821
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1822
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1823
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1824 1824
 
1825 1825
   // Canon RC-1 or homebrew digital camera trigger
1826 1826
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1831,10 +1831,10 @@
1831 1831
   //#define CHDK_PIN        4
1832 1832
 
1833 1833
   // Optional second move with delay to trigger the camera shutter
1834
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1834
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1835 1835
 
1836 1836
   // Duration to hold the switch or keep CHDK_PIN high
1837
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1837
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1838 1838
 #endif
1839 1839
 
1840 1840
 /**

+ 5
- 5
Marlin/src/config/examples/delta/MKS/SBASE/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/Tevo Little Monster/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 5
- 5
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

@@ -1817,9 +1817,9 @@
1817 1817
 //#define PHOTO_GCODE
1818 1818
 #if ENABLED(PHOTO_GCODE)
1819 1819
   // A position to move to (and raise Z) before taking the photo
1820
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1821
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1822
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1820
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1821
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1822
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1823 1823
 
1824 1824
   // Canon RC-1 or homebrew digital camera trigger
1825 1825
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1830,10 +1830,10 @@
1830 1830
   //#define CHDK_PIN        4
1831 1831
 
1832 1832
   // Optional second move with delay to trigger the camera shutter
1833
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1833
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1834 1834
 
1835 1835
   // Duration to hold the switch or keep CHDK_PIN high
1836
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1836
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1837 1837
 #endif
1838 1838
 
1839 1839
 /**

+ 5
- 5
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/makibox/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

@@ -1815,9 +1815,9 @@
1815 1815
 //#define PHOTO_GCODE
1816 1816
 #if ENABLED(PHOTO_GCODE)
1817 1817
   // A position to move to (and raise Z) before taking the photo
1818
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1819
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1820
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1818
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1819
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1820
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1821 1821
 
1822 1822
   // Canon RC-1 or homebrew digital camera trigger
1823 1823
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1828,10 +1828,10 @@
1828 1828
   //#define CHDK_PIN        4
1829 1829
 
1830 1830
   // Optional second move with delay to trigger the camera shutter
1831
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1831
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1832 1832
 
1833 1833
   // Duration to hold the switch or keep CHDK_PIN high
1834
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1834
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1835 1835
 #endif
1836 1836
 
1837 1837
 /**

+ 5
- 5
Marlin/src/config/examples/wt150/Configuration_adv.h View File

@@ -1816,9 +1816,9 @@
1816 1816
 //#define PHOTO_GCODE
1817 1817
 #if ENABLED(PHOTO_GCODE)
1818 1818
   // A position to move to (and raise Z) before taking the photo
1819
-  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise }
1820
-  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back
1821
-  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move
1819
+  //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 }  // { xpos, ypos, zraise } (M240 X Y Z)
1820
+  //#define PHOTO_DELAY_MS   100                            // (ms) Duration to pause before moving back (M240 P)
1821
+  //#define PHOTO_RETRACT_MM   6.5                          // (mm) E retract/recover for the photo move (M240 R S)
1822 1822
 
1823 1823
   // Canon RC-1 or homebrew digital camera trigger
1824 1824
   // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
@@ -1829,10 +1829,10 @@
1829 1829
   //#define CHDK_PIN        4
1830 1830
 
1831 1831
   // Optional second move with delay to trigger the camera shutter
1832
-  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos }
1832
+  //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS }  // { xpos, ypos } (M240 I J)
1833 1833
 
1834 1834
   // Duration to hold the switch or keep CHDK_PIN high
1835
-  //#define PHOTO_SWITCH_MS   50 // (ms)
1835
+  //#define PHOTO_SWITCH_MS   50 // (ms) (M240 D)
1836 1836
 #endif
1837 1837
 
1838 1838
 /**

+ 2
- 2
Marlin/src/feature/pause.cpp View File

@@ -111,12 +111,12 @@ static bool ensure_safe_temperature(const AdvancedPauseMode mode=ADVANCED_PAUSE_
111 111
   return thermalManager.wait_for_hotend(active_extruder);
112 112
 }
113 113
 
114
-void do_pause_e_move(const float &length, const float &fr) {
114
+void do_pause_e_move(const float &length, const float &fr_mm_s) {
115 115
   #if HAS_FILAMENT_SENSOR
116 116
     runout.reset();
117 117
   #endif
118 118
   current_position[E_AXIS] += length / planner.e_factor[active_extruder];
119
-  planner.buffer_line(current_position, fr, active_extruder);
119
+  planner.buffer_line(current_position, fr_mm_s, active_extruder);
120 120
   planner.synchronize();
121 121
 }
122 122
 

+ 1
- 1
Marlin/src/feature/pause.h View File

@@ -79,7 +79,7 @@ extern uint8_t did_pause_print;
79 79
   #define DXC_PASS
80 80
 #endif
81 81
 
82
-void do_pause_e_move(const float &length, const float &fr);
82
+void do_pause_e_move(const float &length, const float &fr_mm_s);
83 83
 
84 84
 bool pause_print(const float &retract, const point_t &park_point, const float &unload_length=0, const bool show_lcd=false DXC_PARAMS);
85 85
 

+ 51
- 39
Marlin/src/gcode/feature/camera/M240.cpp View File

@@ -42,30 +42,29 @@
42 42
     #include "../../../feature/pause.h"
43 43
   #endif
44 44
 
45
-  inline void e_move_m240(const float length) {
46
-    if (_PHOTO_RETRACT_MM) {
47
-      constexpr float rfr = (MMS_TO_MMM(
45
+  #ifdef PHOTO_RETRACT_MM
46
+    inline void e_move_m240(const float length, const float fr_mm_s) {
47
+      if (length && thermalManager.hotEnoughToExtrude(active_extruder)) {
48 48
         #if ENABLED(ADVANCED_PAUSE_FEATURE)
49
-          PAUSE_PARK_RETRACT_FEEDRATE
50
-        #elif ENABLED(FWRETRACT)
51
-          RETRACT_FEEDRATE
52
-        #else
53
-          45
54
-        #endif
55
-      ));
56
-      if (thermalManager.hotEnoughToExtrude(active_extruder)) {
57
-        #if ENABLED(ADVANCED_PAUSE_FEATURE)
58
-          do_pause_e_move(length, rfr);
49
+          do_pause_e_move(length, fr_mm_s);
59 50
         #else
60 51
           current_position[E_AXIS] += length / planner.e_factor[active_extruder];
61
-          planner.buffer_line(current_position, MMM_TO_MMS(rfr), active_extruder);
52
+          planner.buffer_line(current_position, fr_mm_s, active_extruder);
62 53
         #endif
63 54
       }
64 55
     }
65
-  }
56
+  #endif
66 57
 
67 58
 #endif
68 59
 
60
+#if PIN_EXISTS(PHOTOGRAPH)
61
+  constexpr uint8_t NUM_PULSES = 16;
62
+  constexpr float PULSE_LENGTH = 0.01524;
63
+  inline void set_photo_pin(const uint8_t state) { WRITE(PHOTOGRAPH_PIN, state); _delay_ms(PULSE_LENGTH); }
64
+  inline void tweak_photo_pin() { set_photo_pin(HIGH); set_photo_pin(LOW); }
65
+  inline void spin_photo_pin() { for (uint8_t i = NUM_PULSES; i--;) tweak_photo_pin(); }
66
+#endif
67
+
69 68
 /**
70 69
  * M240: Trigger a camera by...
71 70
  *
@@ -75,20 +74,41 @@
75 74
  *                            See http://www.doc-diy.net/photo/rc-1_hacked/
76 75
  *  - PHOTO_SWITCH_POSITION : Bump a physical switch with the X-carriage using a
77 76
  *                            configured position, delay, and retract length.
78
- * Parameters:
79
- *    X - Move to X before triggering the shutter (Requires PHOTO_POSITION)
80
- *    Y - Move to Y before triggering the shutter (Requires PHOTO_POSITION)
81
- *    Z - Raise Z by a distance before triggering the shutter (Requires PHOTO_POSITION)
82
- *    P - Delay (ms) after triggering the shutter
77
+ *
78
+ * PHOTO_POSITION parameters:
79
+ *    R - Retract/recover length (current units)
80
+ *    S - Retract/recover feedrate (mm/m)
81
+ *    X - Move to X before triggering the shutter
82
+ *    Y - Move to Y before triggering the shutter
83
+ *    Z - Raise Z by a distance before triggering the shutter
84
+ *
85
+ * PHOTO_SWITCH_POSITION parameters:
86
+ *    D - Duration (ms) to hold down switch (Requires PHOTO_SWITCH_MS)
87
+ *    P - Delay (ms) after triggering the shutter (Requires PHOTO_SWITCH_MS)
88
+ *    I - Switch trigger position override X
89
+ *    J - Switch trigger position override Y
83 90
  */
84 91
 void GcodeSuite::M240() {
85 92
 
86 93
   #ifdef PHOTO_POSITION
87 94
 
95
+    if (axis_unhomed_error()) return;
96
+
88 97
     const float old_pos[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
89 98
 
90 99
     #ifdef PHOTO_RETRACT_MM
91
-      e_move_m240(-(_PHOTO_RETRACT_MM));
100
+      constexpr float rfr = (MMS_TO_MMM(
101
+        #if ENABLED(ADVANCED_PAUSE_FEATURE)
102
+          PAUSE_PARK_RETRACT_FEEDRATE
103
+        #elif ENABLED(FWRETRACT)
104
+          RETRACT_FEEDRATE
105
+        #else
106
+          45
107
+        #endif
108
+      ));
109
+      const float rval = parser.seenval('R') ? parser.value_linear_units() : _PHOTO_RETRACT_MM,
110
+                  sval = parser.seenval('S') ? MMM_TO_MMS(parser.value_feedrate()) : rfr;
111
+      e_move_m240(-rval, sval);
92 112
     #endif
93 113
 
94 114
     constexpr float photo_position[XYZ] = PHOTO_POSITION;
@@ -101,10 +121,14 @@ void GcodeSuite::M240() {
101 121
     do_blocking_move_to(raw);
102 122
 
103 123
     #ifdef PHOTO_SWITCH_POSITION
104
-      const float photo_switch_position[2] = PHOTO_SWITCH_POSITION;
105
-      do_blocking_move_to_xy(photo_switch_position[X_AXIS], photo_switch_position[Y_AXIS], get_homing_bump_feedrate(X_AXIS));
124
+      constexpr float photo_switch_position[2] = PHOTO_SWITCH_POSITION;
125
+      const float sraw[] = {
126
+         parser.seenval('I') ? RAW_X_POSITION(parser.value_linear_units()) : photo_switch_position[X_AXIS],
127
+         parser.seenval('J') ? RAW_Y_POSITION(parser.value_linear_units()) : photo_switch_position[Y_AXIS]
128
+      };
129
+      do_blocking_move_to_xy(sraw[X_AXIS], sraw[Y_AXIS], get_homing_bump_feedrate(X_AXIS));
106 130
       #if PHOTO_SWITCH_MS > 0
107
-        safe_delay(PHOTO_SWITCH_MS);
131
+        safe_delay(parser.intval('D', PHOTO_SWITCH_MS));
108 132
       #endif
109 133
       do_blocking_move_to(raw);
110 134
     #endif
@@ -118,21 +142,9 @@ void GcodeSuite::M240() {
118 142
 
119 143
   #elif HAS_PHOTOGRAPH
120 144
 
121
-    const uint8_t NUM_PULSES = 16;
122
-    const float PULSE_LENGTH = 0.01524;
123
-    for (int i = 0; i < NUM_PULSES; i++) {
124
-      WRITE(PHOTOGRAPH_PIN, HIGH);
125
-      _delay_ms(PULSE_LENGTH);
126
-      WRITE(PHOTOGRAPH_PIN, LOW);
127
-      _delay_ms(PULSE_LENGTH);
128
-    }
145
+    spin_photo_pin();
129 146
     delay(7.33);
130
-    for (int i = 0; i < NUM_PULSES; i++) {
131
-      WRITE(PHOTOGRAPH_PIN, HIGH);
132
-      _delay_ms(PULSE_LENGTH);
133
-      WRITE(PHOTOGRAPH_PIN, LOW);
134
-      _delay_ms(PULSE_LENGTH);
135
-    }
147
+    spin_photo_pin();
136 148
 
137 149
   #endif
138 150
 
@@ -142,7 +154,7 @@ void GcodeSuite::M240() {
142 154
     #endif
143 155
     do_blocking_move_to(old_pos);
144 156
     #ifdef PHOTO_RETRACT_MM
145
-      e_move_m240(_PHOTO_RETRACT_MM);
157
+      e_move_m240(rval, sval);
146 158
     #endif
147 159
   #endif
148 160
 }

Loading…
Cancel
Save