Welcome to mirror list, hosted at ThFree Co, Russian Federation.

M240.md « _gcode - github.com/MarlinFirmware/MarlinDocumentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ddb4eca06728d9f16dc66bfe9cd2437aae643604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
---
tag: m0240
title: Trigger Camera
brief: Trigger a camera shutter
author: thinkyhead

requires: PHOTO_GCODE
group: extras

codes: [ M240 ]

notes:
  - "`CHDK_PIN` or `PHOTOGRAPH_PIN` is required prior to Marlin 2.0.0."
  - To use the `CHDK_PIN` or `PHOTOGRAPH_PIN` option with a digital camera see [this article](//www.doc-diy.net/photo/rc-1_hacked/).
  - To use an endstop or contact switch as a shutter switch for your smartphone's camera, see [this video](//youtu.be/i5g3ziK5wpI).

parameters:
  -
    tag: A
    optional: true
    description: Offset to the X return position. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: offset
        type: float
  -
    tag: B
    optional: true
    description: Offset to the Y return position. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: offset
        type: float
  -
    tag: D
    optional: true
    description: Duration to hold down the shutter switch. (Requires `PHOTO_SWITCH_POSITION` and `PHOTO_SWITCH_MS`)
    values:
      -
        tag: ms
        type: int
  -
    tag: F
    optional: true
    description: Feedrate for the main photo moves. If omitted, the homing feedrate will be used. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: feedrate
        type: float
  -
    tag: I
    optional: true
    description: Shutter switch X position. If omitted, the photo move X position applies. (Requires `PHOTO_SWITCH_POSITION`)
    values:
      -
        tag: pos
        type: float
  -
    tag: J
    optional: true
    description: Shutter switch Y position. If omitted, the photo move Y position applies. (Requires `PHOTO_SWITCH_POSITION`)
    values:
      -
        tag: pos
        type: float
  -
    tag: P
    optional: true
    description: Delay after pressing the shutter switch. (Requires `PHOTO_SWITCH_POSITION` and `PHOTO_SWITCH_MS`)
    values:
      -
        tag: ms
        type: int
  -
    tag: R
    optional: true
    description: Retract/recover length. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: length
        type: float
  -
    tag: S
    optional: true
    description: Retract/recover feedrate. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: feedrate
        type: float
  -
    tag: X
    optional: true
    description: Main photo move X position. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: pos
        type: float
  -
    tag: Y
    optional: true
    description: Main photo move Y position. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: pos
        type: float
  -
    tag: Z
    optional: true
    description: Main photo move Z raise. (Requires `PHOTO_POSITION`)
    values:
      -
        tag: length
        type: float

videos:
  - i5g3ziK5wpI

examples:

---

Trigger a camera shutter using a digital pin or by bumping a physical switch.