#include "grbl.h"
Go to the source code of this file.
Functions | |
void | system_init () |
Initialize the serial protocol. More... | |
uint8_t | system_control_get_state () |
Returns control pin state as a uint8 bitfield. Each bit indicates the input pin state, where. More... | |
ISR (CONTROL_INT_vect) | |
Pin change interrupt for pin-out commands, i.e. cycle start, feed hold, and reset. Sets. More... | |
uint8_t | system_check_safety_door_ajar () |
Returns if safety door is ajar(T) or closed(F), based on pin state. More... | |
void | system_execute_startup (char *line) |
Executes user startup script, if stored. More... | |
uint8_t | system_execute_line (char *line) |
Directs and executes one line of formatted input from protocol_process. While mostly. More... | |
void | system_flag_wco_change () |
float | system_convert_axis_steps_to_mpos (int32_t *steps, uint8_t idx) |
Returns machine position of axis 'idx'. Must be sent a 'step' array. More... | |
void | system_convert_array_steps_to_mpos (float *position, int32_t *steps) |
Updates a machine 'position' array based on the 'step' array sent. More... | |
uint8_t | system_check_travel_limits (float *target) |
CoreXY calculation only. Returns x or y-axis "steps" based on CoreXY motor steps. More... | |
void | system_set_exec_state_flag (uint8_t mask) |
Special handlers for setting and clearing Grbl's real-time execution flags. More... | |
void | system_clear_exec_state_flag (uint8_t mask) |
void | system_set_exec_alarm (uint8_t code) |
void | system_clear_exec_alarm () |
void | system_set_exec_motion_override_flag (uint8_t mask) |
void | system_set_exec_accessory_override_flag (uint8_t mask) |
void | system_clear_exec_motion_overrides () |
void | system_clear_exec_accessory_overrides () |
ISR | ( | CONTROL_INT_vect | ) |
uint8_t system_check_safety_door_ajar | ( | ) |
uint8_t system_check_travel_limits | ( | float * | target | ) |
uint8_t system_control_get_state | ( | ) |
void system_convert_array_steps_to_mpos | ( | float * | position, |
int32_t * | steps | ||
) |
float system_convert_axis_steps_to_mpos | ( | int32_t * | steps, |
uint8_t | idx | ||
) |
uint8_t system_execute_line | ( | char * | line | ) |
Directs and executes one line of formatted input from protocol_process. While mostly.
Executes an internal system command, defined as a string starting with a '$'.
< Helper variable
< Jogging
<
NOTE: $J= is ignored inside g-code parser and used to detect jog motions.
< Prints Grbl settings
< Prints gcode parser state
< Set check g-code mode [IDLE/CHECK]
< Disable alarm lock [ALARM]
< Print Grbl NGC parameters
< Perform homing cycle [IDLE/ALARM]
< Set system state variable
< Execute startup scripts after successful homing.
< Set to IDLE when complete.
< Set steppers to the settings idle state before returning.
< Puts Grbl to sleep [IDLE/ALARM]
< Set to execute sleep mode immediately
< Print or store build info. [IDLE/ALARM]
< Store startup line [IDLE/ALARM]
< Set helper variable as counter to start of user info line.
< Restore defaults [IDLE/ALARM]
< Force reset to ensure settings are initialized correctly.
< Startup lines. [IDLE/ALARM]
< Print startup lines
< Store startup line [IDLE Only] Prevents motion during ALARM.
< Set helper_var to flag storing method.
< Storing setting methods [IDLE/ALARM]
< Store startup line
< Set helper variable as counter to start of gcode block
< Set helper_var to returned status code.
< Set helper_var to int value of parameter
< Store global setting.
< If '$' command makes it to here, then everything's ok.
void system_execute_startup | ( | char * | line | ) |
void system_init | ( | ) |
void system_set_exec_accessory_override_flag | ( | uint8_t | mask | ) |