shitcreek

G800-M800 - Debug Gcode Parser

debug Returns Gcode data DEBUG_GCODE_PARSER

Description

Returns Gcode data for debugging parser

Notes

This command requires DEBUG_GCODE_PARSER.

Add #define DEBUG_GCODE_PARSER anywhere or uncomment the one in parser.h.

Usage

G800

Example

Get Gcode data for G0 X10

G800 G0 X10
Got param G at index 5 (has_val)
Set bit 6 of codebits (0x00000040) | param = 6
Got param X at index 8 (has_val)
Set bit 23 of codebits (0x00800040) | param = 9
 Command: G800 G0 x10 (G800)
    args: { G X } 
Code 'G':
   float: 0.00
    long: 0
   ulong: 0
  millis: 0
  sec-ms: 0
     int: 0
  ushort: 0
    byte: 0
    bool: 0
  linear: 0.00
 celsius: 0.00
Code 'X':
   float: 10.00
    long: 10
   ulong: 10
  millis: 10
  sec-ms: 10000
     int: 10
  ushort: 10
    byte: 10
    bool: 1
  linear: 10.00
 celsius: 10.00