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

M003.md « _gcode - github.com/MarlinFirmware/MarlinDocumentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6fe4847c6effa9c91a92548d67030d75dce1a849 (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
---
tag: m0003
title: Spindle CW / Laser On
brief: Set the spindle CW speed or laser power
author: thinkyhead
contrib: shitcreek

since: 1.1.2
requires: SPINDLE_LASER_ENABLE
related: [ M4, M5 ]
group: control

codes: [ M3 ]

notes:
  - 'S is interpeted as the configured value range: PWM (default), Percentage, or RPM. (See `CUTTER_POWER_UNIT`)'
  - "[`M3`](/docs/gcode/M003.html) and [`M4`](/docs/gcode/M004.html) aren't needed with `LASER_POWER_INLINE` and `LASER_MOVE_POWER` enabled. Power is set directly in [`G1`](/docs/gcode/G000-G001.html)…[`G5`](/docs/gcode/G005.html)"

parameters:
  -
    tag: S
    optional: true
    description: Spindle speed or laser power in the configured value range (see `CUTTER_POWER_DISPLAY`). (PWM 0-255 by default)
    values:
      -
        tag: power
        type: byte
  -
    tag: O
    optional: true
    description: Spindle speed or laser power in PWM 0-255 value range
    values:
      -
        tag: power
        type: byte
  -
    tag: I
    optional: true
    description: Inline mode ON / OFF.
    values:
      -
        tag: mode
        type: bool

examples:
  -
    pre: Set spindle rotation clockwise at 50% with `CUTTER_POWER_UNIT` set to `PERCENT`
    code: M3 S50
  -
    pre: Set spindle rotation clockwise at 6K RPM with `CUTTER_POWER_UNIT` set to `RPM`
    code: M3 S5000
  -
    pre: Set laser power to 50% in PWM
    code: M3 O128
  -
    pre: Turn on the laser at full / `SPEED_POWER_STARTUP` power
    code: M3
  -
    pre: Fire laser at 80% on next G1,G2 and G3 move
    code: M3 S204 I
---

Wait for moves to complete, then set the spindle speed (clockwise) or laser power.