grblHAL core  20241107
parser_state_t Struct Reference

Parser state. More...

#include <gcode.h>

Data Fields

gc_modal_t modal
 
gc_canned_t canned
 
spindle_tspindle
 Last referenced spindle. More...
 
float feed_rate
 Millimeters/min. More...
 
float distance_per_rev
 Millimeters/rev. More...
 
float position [N_AXIS]
 Where the interpreter considers the tool to be at this point in the code. More...
 
int32_t line_number
 Last line number sent. More...
 
tool_id_t tool_pending
 Tool to be selected on next M6. More...
 
bool file_run
 Tracks % command. More...
 
bool is_laser_ppi_mode
 
bool is_rpm_rate_adjusted
 
bool tool_change
 
bool skip_blocks
 true if skipping conditional blocks More...
 
status_code_t last_error
 last return value from parser More...
 
offset_id_t offset_id
 id(x) of last G92 coordinate offset (into circular buffer) More...
 
coord_data_t offset_queue [MAX_OFFSET_ENTRIES]
 The following variables are not cleared upon warm restart when COMPATIBILITY_LEVEL <= 1. More...
 
bool g92_coord_offset_applied
 true when G92 offset applied More...
 
float g92_coord_offset [N_AXIS]
 
float tool_length_offset [N_AXIS]
 Tracks tool length offset when enabled. More...
 
tool_data_ttool
 Tracks tool number and tool offset. More...
 

Detailed Description

Parser state.

Field Documentation

◆ canned

gc_canned_t canned

◆ distance_per_rev

float distance_per_rev

Millimeters/rev.

◆ feed_rate

float feed_rate

Millimeters/min.

◆ file_run

bool file_run

Tracks % command.

◆ g92_coord_offset

float g92_coord_offset[N_AXIS]

Retains the G92 coordinate offset (work coordinates) relative to machine zero in mm. Persistent and loaded from non-volatile storage on boot when COMPATIBILITY_LEVEL <= 1

◆ g92_coord_offset_applied

bool g92_coord_offset_applied

true when G92 offset applied

◆ is_laser_ppi_mode

bool is_laser_ppi_mode

◆ is_rpm_rate_adjusted

bool is_rpm_rate_adjusted

◆ last_error

status_code_t last_error

last return value from parser

◆ line_number

int32_t line_number

Last line number sent.

◆ modal

gc_modal_t modal

◆ offset_id

offset_id_t offset_id

id(x) of last G92 coordinate offset (into circular buffer)

◆ offset_queue

The following variables are not cleared upon warm restart when COMPATIBILITY_LEVEL <= 1.

◆ position

float position[N_AXIS]

Where the interpreter considers the tool to be at this point in the code.

◆ skip_blocks

bool skip_blocks

true if skipping conditional blocks

◆ spindle

spindle_t* spindle

Last referenced spindle.

◆ tool

tool_data_t* tool

Tracks tool number and tool offset.

◆ tool_change

bool tool_change

◆ tool_length_offset

float tool_length_offset[N_AXIS]

Tracks tool length offset when enabled.

◆ tool_pending

tool_id_t tool_pending

Tool to be selected on next M6.


The documentation for this struct was generated from the following file: