grblHAL core  20240318
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 > UserMCode_Ignore 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...
 
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
 
spindle_ptrs_tspindle
 Spindle to control, NULL for all. 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

spindle_ptrs_t* spindle

Spindle to control, NULL for all.

◆ user_mcode

user_mcode_t user_mcode

Set > UserMCode_Ignore 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: