Skip to content

Latest commit

 

History

History
158 lines (117 loc) · 6.99 KB

gcode-reference.md

File metadata and controls

158 lines (117 loc) · 6.99 KB

G-code Command Reference

Disclaimer

Important

This document is an English translation of a factory-provided G-code command list for materials related to the Hanboost T1 series.

  • Some entries are generic GRBL-style commands and may not apply to actual Hanboost T1 / T1 Pro hardware (for example probing, tool length/radius compensation, and coolant commands).
  • Commands in this list are not marked as officially tested or verified on T1 / T1 Pro machines.
  • Do not assume that every command is implemented, safe, or meaningful on your unit.
  • The published list reflects the factory table provided for this initial release. That table ends at M9. Additional commands may be documented later if factory materials are expanded and verified.
  • For laser safety expectations, see ../SAFETY.md.

Machine control for the T1 series is based on G-code. Confirmed product connectivity and specifications are summarized in device-overview.md.


Motion Control

Command Description Usage / notes
G0 Rapid positioning G0 X.. Y.. Z.. F.. — Rapid move. F (feed rate) is optional and may be omitted.
G1 Linear interpolation G1 X.. Y.. Z.. F.. — Requires a valid feed rate.
G2 Clockwise circular interpolation G2 X.. Y.. Z.. I.. J.. K.. or R.. — See arc notes below.
G3 Counterclockwise circular interpolation G3 X.. Y.. Z.. I.. J.. K.. or R.. — See arc notes below.
G4 Dwell / pause G4 P<seconds> — P is the pause duration in seconds.
G17 Select XY plane Used for G2/G3 arc plane selection.
G18 Select ZX plane Used for G2/G3 arc plane selection.
G19 Select YZ plane Used for G2/G3 arc plane selection.
G28 Return to G28 reference position G28 or G28 X.. Y.. Z.. — May include intermediate axis points.
G30 Return to G30 reference position G30 or G30 X.. Y.. Z.. — May include intermediate axis points.
G28.1 Set G28 reference position Sets the G28 reference point.
G30.1 Set G30 reference position Sets the G30 reference point.
G80 Cancel canned cycle Cancels a fixed/canned cycle mode.
G90 Absolute distance mode Coordinates are interpreted as absolute positions.
G91 Incremental distance mode Coordinates are interpreted as incremental distances.
G91.1 Arc incremental mode Incremental mode for arc offsets (I/J/K interpretation as described by the controller’s GRBL-style behavior).
G93 Inverse time feed mode Feed rate expressed in inverse time.
G94 Units per minute feed mode Feed rate expressed as units per minute.

Arc interpolation notes (G2 / G3)

From the factory table:

  • Supported planes: XY, ZX, and YZ (via G17 / G18 / G19).
  • Center specification: I/J/K offsets or R radius.
  • Full circles without an offset are not supported.

Coordinate Systems

Command Description Usage / notes
G10 Set coordinate data See G10 notes below.
G20 Inch units Program units in inches.
G21 Millimeter units Program units in millimeters.
G53 Move in machine coordinate system Motion interpreted in the machine coordinate system.
G54 Select work coordinate system 1 Work offset system 1.
G55 Select work coordinate system 2 Work offset system 2.
G56 Select work coordinate system 3 Work offset system 3.
G57 Select work coordinate system 4 Work offset system 4.
G58 Select work coordinate system 5 Work offset system 5.
G59 Select work coordinate system 6 Work offset system 6.
G92 Set coordinate offset G92 X.. Y.. Z.. — Sets the current coordinate offset.
G92.1 Cancel G92 offset Clears the G92 coordinate offset.

G10 notes

Supported forms in the factory table:

G10 L2  P<n> X.. Y.. Z..
G10 L20 P<n> X.. Y.. Z..
Parameter / mode Meaning
L2 Directly set coordinate values for the selected coordinate system
L20 Set coordinates relative to the current position as the reference
P0 Current coordinate system
P1–P6 Correspond to G54–G59
G10 L2 R Not supported

Laser Control

The factory table describes the following spindle-oriented M-codes with laser equivalents. Treat mapping to T1 / T1 Pro laser behavior as not officially hardware-verified in this document.

Command Description (per factory table)
M3 Spindle clockwise / laser on
M4 Spindle counterclockwise / laser mode
M5 Spindle stop / laser off

Always keep a reliable way to issue M5 (or otherwise disable the laser) when developing host software. See ../SAFETY.md.


Other Commands

These commands appear in the factory table. Several are typical of broader GRBL / CNC feature sets and may not correspond to T1 / T1 Pro hardware capabilities (notably probing, tool compensation, and coolant).

Probing

Command Description
G38.2 Probe toward the target; alarm on probe failure
G38.3 Probe toward the target; do not alarm on probe error
G38.4 Probe away from the target
G38.5 Probe away from the target

Probing hardware and behavior on T1 / T1 Pro are not confirmed in this repository. Do not assume a probe is present.

Tool compensation

Command Description
G40 Cancel tool radius compensation
G43.1 Dynamic tool length offset
G49 Cancel tool length offset

Tool-radius / tool-length compensation commands are listed in the factory table as generic GRBL-style entries. Applicability to T1 / T1 Pro laser hardware is not confirmed.

Program control

Command Description
M0 Program pause
M2 Program end
M30 Program end and reset

Coolant

Command Description
M7 Mist coolant on
M8 Flood coolant on
M9 Coolant off

Coolant commands are included because they appear in the factory table. The T1 / T1 Pro product facts published in this repository do not confirm a coolant system. Treat these as generic GRBL-style entries that may not apply to the hardware.


Scope of this initial release

The factory Chinese command table used for this translation ends after M9. No additional G- or M-codes beyond that source have been added.

If you have factory-confirmed commands that are missing here, please open an Issue or pull request with the source citation so the reference can be extended carefully. See ../CONTRIBUTING.md.

Related pages