G-code/ja
1 はじめに
RepRapマシンに送信されるGCodeの例は以下のようである。
N3 T0*57 N4 G92 E0*67 N5 G28*22 N6 G1 F1500.0*82 N7 G1 X2.0 Y2.0 F3000.0*85 N8 G1 X3.0 Y3.0*33
上記のシンボルと数字の意味を以下に説明する。
以下は、任意のファームウェアに実装されているGCodeのサポート状況を識別するための表記である。
Support | FiveD | Teacup | Sprinter | Marlin | Repetier |
---|---|---|---|---|---|
yes | automatic | yes | yes | experimental |
- yes
- 全ての機能をサポートしている
- experimental
- 部分的に機能をサポートしている。
- しばしば、デフォルトではなく、ソースコードブランチをチェックする事が要求される、
- もしくは、特定の設定スイッチを反転させる事が必要。
- automatic
- ファームウェアはこの機能を自動的に処理する。つまりコマンドを送信する必要はない。
- 例えば、Teacupファームウェアの電源のon/off(M80/M81)がこれに相当する。
- no
- ファームウェアはこの機能をサポートしていない
2 RepRap G Code Fields
本章では、先頭の文字について説明する。nnnは数字を示す。
This section explains the letter-preceded fields. The numbers in the fields are represented by nnn. Numbers can be integers, or can contain a decimal point, depending on context. For example an X coordinate can be integer (X175) or fractional (X17.62), whereas trying to select extruder number 2.76 would make no sense.
Letter | Meaning |
---|---|
Gnnn | Standard GCode command, such as move to a point |
Mnnn | RepRap-defined command, such as turn on a cooling fan |
Tnnn | Select tool nnn. In RepRap, tools are extruders |
Snnn | Command parameter, such as the voltage to send to a motor |
Pnnn | Command parameter, such as a time in milliseconds |
Xnnn | An X coordinate, usually to move to |
Ynnn | A Y coordinate, usually to move to |
Znnn | A Z coordinate, usually to move to |
Innn | Parameter - not currently used |
Jnnn | Parameter - not currently used |
Fnnn | Feedrate in mm per minute. (Speed of print head movement) |
Rnnn | Parameter - used for temperatures |
Qnnn | Parameter - not currently used |
Ennn | Length of extrudate in mm. This is exactly like X, Y and Z, but for the length of filament to extrude. |
Nnnn | Line number. Used to request repeat transmission in the case of communications errors. |
*nnn | Checksum. Used to check for communications errors. |