Setting Defaults - bdring/Grbl_Esp32 GitHub Wiki
Almost every $ Setting has a default in firmware. You can restore all your settings to the defaults by sending the $RST=$ command. Most setting defaults can be placed in your machine definition file using a line like this #define DEFAULT_X_STEPS_PER_MM 200.
Settings that configure multiple axes like $Stepper/DirInvert=XZ are stored internally as a binary bit mask in the format 00CBAZYX. This mean the bits for XZ are 00000101. This would be stored as the number 5.
#define DEFAULT_HOMING_DIR_MASK 5
Note: You can see all the values that you have changed from the defaults by sending the $Settings/ListChanged or $SC command.
Setting | Default in firmware |
---|---|
$Sta/SSID | DEFAULT_STA_SSID |
$Sta/Password | DEFAULT_STA_PWD |
$Sta/IPMode | DEFAULT_STA_IP_MODE |
$Sta/IP | DEFAULT_STA_IP |
$Sta/Gateway | DEFAULT_STA_GW |
$Sta/Netmask | DEFAULT_STA_MK |
$AP/SSID | DEFAULT_AP_SSID |
$AP/Password | DEFAULT_AP_PWD |
$AP/IP | DEFAULT_AP_IP |
$AP/Channel | DEFAULT_AP_CHANNEL |
$System/Hostname | DEFAULT_HOSTNAME |
$Http/Enable | DEFAULT_HTTP_STATE |
$Http/Port | DEFAULT_WEBSERVER_PORT |
$Telnet/Enable | DEFAULT_TELNET_STATE |
$Telnet/Port | DEFAULT_TELNETSERVER_PORT |
$Radio/Mode | DEFAULT_RADIO_MODE |
$Bluetooth/Name | DEFAULT_BT_NAME |
$Notification/Type | DEFAULT_NOTIFICATION_TYPE |
$Notification/T1 | DEFAULT_TOKEN |
$Notification/T2 | DEFAULT_TOKEN |
$Notification/TS | DEFAULT_TOKEN |
$Homing/Cycle5 | DEFAULT_HOMING_CYCLE_5 |
$Homing/Cycle4 | DEFAULT_HOMING_CYCLE_4 |
$Homing/Cycle3 | DEFAULT_HOMING_CYCLE_3 |
$Homing/Cycle2 | DEFAULT_HOMING_CYCLE_2 |
$Homing/Cycle1 | DEFAULT_HOMING_CYCLE_1 |
$Homing/Cycle0 | DEFAULT_HOMING_CYCLE_0 (use numeric mask) |
$Report/StallGuard | |
$Spindle/Type | SPINDLE_TYPE |
$Stepper/Pulse | DEFAULT_STEP_PULSE_MICROSECONDS |
$Stepper/IdleTime | DEFAULT_STEPPER_IDLE_LOCK_TIME |
$Stepper/StepInvert | DEFAULT_STEPPING_INVERT_MASK |
$Stepper/DirInvert | DEFAULT_DIRECTION_INVERT_MASK |
$Stepper/EnableInvert | DEFAULT_INVERT_ST_ENABLE |
$Stepper/Enable/Delay | DEFAULT_STEP_ENABLE_DELAY |
$Limits/Invert | DEFAULT_INVERT_LIMIT_PINS |
$Probe/Invert | DEFAULT_INVERT_PROBE_PIN |
$Report/Status | DEFAULT_STATUS_REPORT_MASK |
$GCode/JunctionDeviation | DEFAULT_JUNCTION_DEVIATION |
$GCode/ArcTolerance | DEFAULT_ARC_TOLERANCE |
$Report/Inches | DEFAULT_REPORT_INCHES |
$Limits/Soft | DEFAULT_SOFT_LIMIT_ENABLE |
$Limits/Hard | DEFAULT_HARD_LIMIT_ENABLE |
$Homing/Enable | DEFAULT_HOMING_ENABLE |
$Homing/DirInvert | DEFAULT_HOMING_DIR_MASK |
$Homing/Squared | DEFAULT_HOMING_SQUARED_AXES |
$Homing/Feed | DEFAULT_HOMING_FEED_RATE |
$Homing/Seek | DEFAULT_HOMING_SEEK_RATE |
$Homing/Debounce | DEFAULT_HOMING_DEBOUNCE_DELAY |
$Homing/Pulloff | DEFAULT_HOMING_PULLOFF |
$GCode/MaxS | DEFAULT_SPINDLE_RPM_MAX |
$GCode/MinS | DEFAULT_SPINDLE_RPM_MIN |
$GCode/LaserMode | DEFAULT_LASER_MODE |
$GCode/Line1 | |
$GCode/Line0 | |
$Spindle/Enable/Invert | DEFAULT_INVERT_SPINDLE_ENABLE_PIN |
$Spindle/Enable/OffWithSpeed | DEFAULT_SPINDLE_ENABLE_OFF_WITH_ZERO_SPEED |
$Spindle/Delay/SpinDown | DEFAULT_SPINDLE_DELAY_SPINDOWN |
$Spindle/Delay/SpinUp | DEFAULT_SPINDLE_DELAY_SPINUP |
$Spindle/PWM/Invert | DEFAULT_INVERT_SPINDLE_OUTPUT_PIN |
$Spindle/PWM/Frequency | DEFAULT_SPINDLE_FREQ |
$Spindle/PWM/Off | DEFAULT_SPINDLE_OFF_VALUE |
$Spindle/PWM/Min | DEFAULT_SPINDLE_MIN_VALUE |
$Spindle/PWM/Max | DEFAULT_SPINDLE_MAX_VALUE |
$X/StepsPerMm | DEFAULT_X_STEPS_PER_MM |
$Y/StepsPerMm | DEFAULT_Y_STEPS_PER_MM |
$Z/StepsPerMm | DEFAULT_Z_STEPS_PER_MM |
$A/StepsPerMm | DEFAULT_A_STEPS_PER_MM |
$B/StepsPerMm | DEFAULT_B_STEPS_PER_MM |
$C/StepsPerMm | DEFAULT_C_STEPS_PER_MM |
$X/MaxRate | DEFAULT_X_MAX_RATE |
$Y/MaxRate | DEFAULT_Y_MAX_RATE |
$Z/MaxRate | DEFAULT_Z_MAX_RATE |
$A/MaxRate | DEFAULT_A_MAX_RATE |
$B/MaxRate | DEFAULT_B_MAX_RATE |
$C/MaxRate | DEFAULT_C_MAX_RATE |
$X/Acceleration | DEFAULT_X_ACCELERATION |
$Y/Acceleration | DEFAULT_Y_ACCELERATION |
$Z/Acceleration | DEFAULT_Z_ACCELERATION |
$A/Acceleration | DEFAULT_A_ACCELERATION |
$B/Acceleration | DEFAULT_B_ACCELERATION |
$C/Acceleration | DEFAULT_C_ACCELERATION |
$X/Home/Mpos | DEFAULT_X_HOMING_MPOS |
$Y/Home/Mpos | DEFAULT_Y_HOMING_MPOS |
$Z/Home/Mpos | DEFAULT_Z_HOMING_MPOS |
$A/Home/Mpos | DEFAULT_A_HOMING_MPOS |
$B/Home/Mpos | DEFAULT_B_HOMING_MPOS |
$C/Home/Mpos | DEFAULT_C_HOMING_MPOS |
$X/MaxTravel | DEFAULT_X_MAX_TRAVEL |
$Y/MaxTravel | DEFAULT_Y_MAX_TRAVEL |
$Z/MaxTravel | DEFAULT_Z_MAX_TRAVEL |
$A/MaxTravel | DEFAULT_A_MAX_TRAVEL |
$B/MaxTravel | DEFAULT_B_MAX_TRAVEL |
$C/MaxTravel | DEFAULT_C_MAX_TRAVEL |
$X/Current/Run | DEFAULT_X_CURRENT |
$Y/Current/Run | DEFAULT_Y_CURRENT |
$Z/Current/Run | DEFAULT_Z_CURRENT |
$A/Current/Run | DEFAULT_A_CURRENT |
$B/Current/Run | DEFAULT_B_CURRENT |
$C/Current/Run | DEFAULT_C_CURRENT |
$X/Current/Hold | DEFAULT_X_HOLD_CURRENT |
$Y/Current/Hold | DEFAULT_Y_HOLD_CURRENT |
$Z/Current/Hold | DEFAULT_Z_HOLD_CURRENT |
$A/Current/Hold | DEFAULT_A_HOLD_CURRENT |
$B/Current/Hold | DEFAULT_B_HOLD_CURRENT |
$C/Current/Hold | DEFAULT_C_HOLD_CURRENT |
$X/Microsteps | DEFAULT_X_MICROSTEPS |
$Y/Microsteps | DEFAULT_Y_MICROSTEPS |
$Z/Microsteps | DEFAULT_Z_MICROSTEPS |
$A/Microsteps | DEFAULT_A_MICROSTEPS |
$B/Microsteps | DEFAULT_B_MICROSTEPS |
$C/Microsteps | DEFAULT_C_MICROSTEPS |
$X/StallGuard | DEFAULT_X_STALLGUARD |
$Y/StallGuard | DEFAULT_Y_STALLGUARD |
$Z/StallGuard | DEFAULT_Z_STALLGUARD |
$A/StallGuard | DEFAULT_A_STALLGUARD |
$B/StallGuard | DEFAULT_B_STALLGUARD |
$C/StallGuard | DEFAULT_C_STALLGUARD |
$Errors/Verbose | DEFAULT_VERBOSE_ERRORS |
$X/RcServo/Cal/Min | X_SERVO_CAL_MIN |
$Y/RcServo/Cal/Min | Y_SERVO_CAL_MIN |
$Z/RcServo/Cal/Min | Z_SERVO_CAL_MIN |
$A/RcServo/Cal/Min | A_SERVO_CAL_MIN |
$B/RcServo/Cal/Min | B_SERVO_CAL_MIN |
$C/RcServo/Cal/Min | C_SERVO_CAL_MIN |
$X/RcServo/Cal/Max | X_SERVO_CAL_MAX |
$Y/RcServo/Cal/Max | Y_SERVO_CAL_MAX |
$Z/RcServo/Cal/Max | Z_SERVO_CAL_MAX |
$A/RcServo/Cal/Max | A_SERVO_CAL_MAX |
$B/RcServo/Cal/Max | B_SERVO_CAL_MAX |
$C/RcServo/Cal/Max | C_SERVO_CAL_MAX |