Here are some important notes that you must read before jumping to the detailed commands references.
G0
command, the toolhead will not emit the laser.G0
, then G0
can be omitted.G53
and G0
are programmed on the same line, the motion will differ. See the G53
section for more information.G0 [X<pos>] [Y<pos>] [A/B<pos>]
G90
G0 X1 Y-2.3
G90
sections for more information.G1
command must include the feedrate specified by the F
parameter.G1
, then G1
can be omitted.G53
and G0
are programmed on the same line, the motion will differ. See the G53
section for more information.G1 [F<rate>] [S<power>] [X<pos>] [Y<pos>] [A/B<pos>]
G20
/G21
).S1000
represents emitting 100% power laser.G90
G1 F1200 X1 Y-2.3
G90
sections for more information.G4
must carry the P
parameter, whose value is specified.G4 P<time(sec)>
G4 P0.5 ; Dwell for 1/2 second
G4 P5 ; Dwell for 5 second
G17
command is used to set the current plane as the XY plane.G18
and G19 commands, and usually there is no need to use the G17
command as well.G17
G17
G20
G20 ; set units to inches
G21
G21 ; set units to millimeters
G53
at the beginning of the linear motion commands on the same line, it allows the toolhead to move in the machine coordinate system. What's more, since G53
is not a modal command, it needs to be included on every line where it is required.G53 [G0/G1] [X<pos>] [Y<pos>] [A/B<pos>]
G53 G0 X10 Y-20
G54
.G92
.G54
G55
G56
G57
G58
G59
G54
G90
G90 ; Set all axes to absolute
G91
G91 ; Set all axes to relative
G92
command is only used to set the position and does not generate actual movement.G92.1
, the offset between the currently active coordinate system and the machine coordinate system can be reset to 0.G54
- G59
.G92 [X<pos>] [Y<pos>] [A/B<pos>]
G92 X1 Y2
G92.1
M3
/M4
are both used to set the laser power.
M3
is used to set a constant power. That is, in M3
mode, the machine will not change the laser power during motion.M4
is used to set a variable power. That is, in M4
mode, the machine will dynamically adjust the laser power based on the movement speed of the toolhead during motion, in pursuit of better and smoother laser engraving effects.M3
/M4
command is used without parameters, the toolhead will emit laser at the power configured most recently.M3 [S]
M4 [S]
S0
represents turning off the laser, S1000
represents emitting 100% power laser.M3 S1000
M5
M5
M8
M9
M8 ; turn on the coolant/air assist
M9 ; turn off the coolant/air assist
[I][GCMD]Version V1.7.4
[I][GCMD]Compiled: Jul 16 2024, 18:14:46
[I][GCMD]HW version: 7
[I][EFUSE]Got SN: in blk 3
[W][EFUSE]No available SN in efuse!
[I][GCMD]Product SN: 66666666666666666666
[I][GCMD]module list:
[I][GCMD]Module ID: 516, SN: 0x7ffff, FW ver: v1.0.0, HW ver: 0xff, sta: 2
[I][GCMD]Module ID: 516, SN: 0x7ffff, FW ver: v1.0.0, HW ver: 0xff, sta: 2
[I][GCMD]Module ID: 518, SN: 0x7ffff, FW ver: v1.0.0, HW ver: 0xff, sta: 2
[I][GCMD]Module ID: 520, SN: 0x7ffff, FW ver: v1.0.0, HW ver: 0xff, sta: 1
[I][GCMD]Module ID: 521, SN: 0x7ffff, FW ver: v1.0.0, HW ver: 0xff, sta: 1
[I][GCMD]Module ID: 23, SN: 0xfa2, FW ver: v1.14.6, HW ver: 0xa, sta: 2
[I][GCMD]Machine Size: Ray2023
Version V1.7.4
: Controller firmware version.Compiled
: Jul 16 2024, 18:14:46: Controller firmware compilation time.HW version
: 7: Controller hardware version.Product SN
: 66666666666666666666: Product SN.module list
: Information of each module.
Module ID: 516
:Module ID.
SN: 0x7ffff
: Module serial number, no need to pay attention.FW ver: v1.14.6
: Module firmware version.HW ver: 0xa
: Module hardware version.M1005
M1005
M2000 L12 P<n>
M2000 L12 P255
M2000 L12 P0
M2000 L13 P<n>
M2000 L13 P1
M2000 L15 P<n>
M2000 L15 P1
M2000 L23 P<n>
M2000 L23 P1
M2000 L30 P<n>
M2000 L30 P0
P0
) and turning on the light at maximum brightness (P100
). Further optimization will be considered.M2000 W1 P<n>
M2000 W1 P0
M2000 W1 P100
M2000 W2 P<n>
M2000 W2 P100
M2000 W40 P<n>
M2000 W40 P2
M2000 W40 P2
M2000 W44 P1
M2000 W42 [P] [Q]
M2000 W42 P1
M2000 W42 P0
M2000 W42 P1 Q1
M2000 W44 [P] [Q]
M2000 W44 P1
M2000 W44 P0
M2000 W44 P0 Q5
M2003
and M2004
, at the beginning of the G-code file, so that the laser working position is completely consistent with the position when running boundary with the crosshair.M2003
and M2004
:
M2004
must immediately follow M2003
.M2003
and M2004
, are used, there is no need to add additional offset compensation.M2003
M2004
M2003
M2004
$S
$Sta/SSID=snapmaker
$Sta/Password=12345678
$Sta/IPMode=DHCP
$Sta/IP=0.0.0.0
$Sta/Gateway=0.0.0.0
$Sta/Netmask=0.0.0.0
$X/StepsPerMm=80.000
$Y/StepsPerMm=80.000
$A/StepsPerMm=888.889
$X/MaxRate=30000.000
$Y/MaxRate=12000.000
$A/MaxRate=1500.000
$X/Acceleration=2000.000
$Y/Acceleration=200.000
$A/Acceleration=500.000
On
means "enable", Off
means "disable".$Message/Enable=On
$Message/Level=Info
$SD/Status
[ESP200]
$SD/List
[ESP210]
$SD/Delete=文件名
[ESP215]文件名
$SD/Run=ray.nc
[ESP220]ray.nc
$SD/Run=boundary.nc
[ESP220]boundary.nc
!
~
Ctrl-X ; 0x18 in hex
M5
?
$#
[G54:0.000,0.000,0.000,0.000]
[G55:0.000,0.000,0.000,0.000]
[G56:0.000,0.000,0.000,0.000]
[G57:0.000,0.000,0.000,0.000]
[G58:0.000,0.000,0.000,0.000]
[G59:0.000,0.000,0.000,0.000]
[G28:0.000,0.000,0.000,0.000]
[G30:0.000,0.000,0.000,0.000]
[G92:0.000,0.000,0.000,0.000]
[TLO:0.000]
[PRB:0.000,0.000,0.000,0.000:0]
$G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
$E
0: No error
1: Expected GCodecommand letter
2: Bad GCode number format
3: Invalid $ statement
4: Negative value
5: Setting disabled
6: Step pulse too short
7: Failed to read settings
8: Command requires idle state
9: GCode cannot be executed in lock or alarm state
10: Soft limit error
11: Line too long
12: Max step rate exceeded
13: Check door
14: Startup line too long
15: Max travel exceeded during jog
16: Invalid jog command
17: Laser mode requires PWM output
18: No Homing/Cycle defined in settings
20: Unsupported GCode command
21: Gcode modal group violation
22: Gcode undefined feed rate
23: Gcode command value not integer
24: Gcode axis command conflict
25: Gcode word repeated
26: Gcode no axis words
27: Gcode invalid line number
28: Gcode value word missing
29: Gcode unsupported coordinate system
30: Gcode G53 invalid motion mode
31: Gcode extra axis words
32: Gcode no axis words in plane
33: Gcode invalid target
34: Gcode arc radius error
35: Gcode no offsets in plane
36: Gcode unused words
37: Gcode G43 dynamic axis error
38: Gcode max value exceeded
39: P param max exceeded
60: Failed to mount device
61: Failed to read
62: Failed to open directory
63: Directory not found
64: File empty
65: File not found
66: Failed to open file
67: Device is busy
68: Failed to delete directory
69: Failed to delete file
70: Bluetooth failed to start
71: WiFi failed to start
80: Number out of range for setting
81: Invalid value for setting
90: Failed to send message
100: Failed to store setting
101: Failed to get setting status
110: Authentication failed!
120: Another interface is busy
130: Jog Cancelled
$H
$RST=*