grblHAL core  20241107
parser_block_t Struct Reference

Parser block structure. More...

#include <gcode.h>

Data Fields

non_modal_t non_modal_command
 Non modal command. More...
 
override_mode_t override_command
 Override command TODO: add to non_modal above? More...
 
user_mcode_t user_mcode
 Set > 0 if a user M-code is found. More...
 
bool user_mcode_sync
 Set to true by M-code validation handler if M-code is to be executed after synchronization. More...
 
gc_modal_t modal
 The current modal state is copied here before parsing starts. More...
 
spindle_modal_t spindle_modal
 
gc_values_t values
 Parameter values for block. More...
 
parameter_words_t words
 Bitfield for tracking found parameter values. More...
 
output_command_t output_command
 Details about M62-M68 output command to execute if present in block. More...
 
uint32_t arc_turns
 
modal_state_action_t state_action
 M70-M73 modal state action. More...
 

Detailed Description

Parser block structure.

Used internally by the parser to hold the details about a block. It will also be passed to mc_jog_execute() and any user M-code validation and execution handlers if called for.

Field Documentation

◆ arc_turns

uint32_t arc_turns

◆ modal

gc_modal_t modal

The current modal state is copied here before parsing starts.

◆ non_modal_command

non_modal_t non_modal_command

Non modal command.

◆ output_command

Details about M62-M68 output command to execute if present in block.

◆ override_command

override_mode_t override_command

Override command TODO: add to non_modal above?

◆ spindle_modal

spindle_modal_t spindle_modal

◆ state_action

modal_state_action_t state_action

M70-M73 modal state action.

◆ user_mcode

user_mcode_t user_mcode

Set > 0 if a user M-code is found.

◆ user_mcode_sync

bool user_mcode_sync

Set to true by M-code validation handler if M-code is to be executed after synchronization.

◆ values

gc_values_t values

Parameter values for block.

◆ words

Bitfield for tracking found parameter values.


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