commands

Read-only

The GCode commands generated by the most recent fabDraw() call, as structured objects.

Each entry has a .command (e.g. 'G1', 'M104'), .fields (all parameters as a map), and direct lowercase field access (.x, .s, .f, etc.). commands is rebuilt each time fabDraw() runs.

A line of GCode consists of fields that are separated by spaces. A field can be interpreted as a command, a parameter, or some custom purpose. It typically consists of a letter directly followed by a number. For example, G1 is a linear move command. For a comprehensive overview of GCode commands, see Marlin's GCode dictionary.

Type

Array.<GCodeCommand>

Examples