gcode()
Description
Input G-Code to control the Machine.
The G-Code supported by Motion86 are as follows:
Please refer to G-Code Reference Table
G-Code | Description |
---|---|
G1 | Linear Motion |
G2 | Clockwise circular motion |
G3 | Counterclockwise circular motion |
G4 | Pause command |
G17 | Select XY plane for circular motion |
G18 | Select XZ plane for circular motion |
G19 | Select YZ plane for circular motion |
G90 | Absolute position mode |
G91 | Relative position mode |
G90.1 | Arc center absolute position mode |
G91.1 | Arc center relative position mode |
G92 | Coordinate system offset |
Syntax
machine.gcode(cmd);
Parameters
machine
: for Machine
object.
cmd
: G-Code string to be sent.
Return
bool
:
true: The machine exists and was created successfully.
false: The machine does not exist or creation failed.
Example
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 |
|
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.