grblHAL core  20240318
parser_state_t Struct Reference

Parser state. More...

#include <gcode.h>

Data Fields

gc_modal_t modal
 
gc_canned_t canned
 
spindle_t spindle
 RPM. 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
 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

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

last return value from parser

◆ line_number

int32_t line_number

Last line number sent.

◆ modal

gc_modal_t modal

◆ 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

RPM.

◆ 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: