Probing error and crash on G32

HI,

I am having some issues with Smoothieboard on my Custom built Cartesian printer, been running for a few months and i have just decided to a Z-axis probe. I have been getting some behaviours i cannot understand, So i am obviously doing something wrong problem is to do with z-axis probing and rectangular grid compensation.

Z axis probe is tested and working M119 reports 0 when not triggered and 1 when triggered

If I do a Z-axis probe before i home the printer the Z-axis travels down, triggers the Z-axis probe, returns to home and reports the probe offset height

If I first home (0,0,250) the machine then run a Z-axis probe i get the following warning, “Zprobe not triggered”, The axis makes no attempt to move the Z-axis. (confirmed that the smoothie can detect status change on the switch and that it was reading 0)

Likewise if i run a G29 or a G32 the machine homes, (-420,+200,+250), when the machine is returning from the end stop position back to (0,0,250) the smoothieboard crashes, I have no idea what is causing this crash. Homing works fine when run by its self (or at the start of a print)

Any help would be appreciated, I am stuck at something goes wrong with z-probing once homed but I have been unable to troubleshoot beyond this (my guess is something stupid that I don’t understand the full ramifications of in the config file)

My config file is from github with the following additions
reprap GLCD screen and SD card (not using ext SD card)
Power supply switching
Running extruder from pin 2.8

Printer is cartesian 840x400x250 with a Hermea extruder.
accelerations are failry low at the moment (due to machine size/ still fine tuning)
x,y,z end stops are hall effects (these are super reliable and repeatable, the machine started its life as a pick and place machine)
z-axis probe is a mechanical switch (tested and triggers correctly)

Config file below

# Smoothieboard configuration file
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
## Robot module configurations : general handling of movement G-codes and slicing into moves

# Basic motion configuration
default_feed_rate                            2000             # 4000 Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate                            4000             # 4000 Default speed (mm/minute) for G0 moves
mm_per_arc_segment                           0.0              # Fixed length for line segments that divide arcs, 0 to disable
#mm_per_line_segment                         5                # Cut lines into segments this size
mm_max_arc_error                             0.01             # The maximum error for line segments that divide arcs 0 to disable
                                                              # note it is invalid for both the above be 0
                                                              # if both are used, will use largest segment length based on radius

# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions


alpha_steps_per_mm                           100             # Default 80 Steps per mm for alpha ( X ) stepper
beta_steps_per_mm                            100             # Default 80 Steps per mm for beta ( Y ) stepper
gamma_steps_per_mm                           160             # Default 1600 Steps per mm for gamma ( Z ) stepper

# Planner module configuration : Look-ahead and acceleration configuration

acceleration                                 1000  #3000           # Acceleration in mm/second/second.
z_acceleration                              500   #500           # Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
junction_deviation                           0.005 #0.05             
#z_junction_deviation                        -1 #0.0              # For Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA

# Cartesian axis speed limits
x_axis_max_speed                             8000            # Maximum speed in mm/min
y_axis_max_speed                             8000            # Maximum speed in mm/min
z_axis_max_speed                             1000              # Maximum speed in mm/min

# Stepper module configuration
# Pins are defined as  ports, and pin numbers, appending "!" to the number will invert a pin

alpha_step_pin                               2.0!o             # Pin for alpha stepper step signal
alpha_dir_pin                                0.5o              # Pin for alpha stepper direction, add '!' to reverse direction
alpha_en_pin                                 0.4!o             # Pin for alpha enable pin
alpha_current                                1.5              # X stepper motor current
alpha_max_rate                               8000.0          # Maximum rate in mm/min

beta_step_pin                                2.1!o              # Pin for beta stepper step signal
beta_dir_pin                                 0.11o             # Pin for beta stepper direction, add '!' to reverse direction
beta_en_pin                                  0.10!o            # Pin for beta enable
beta_current                                 1.5              # Y stepper motor current
beta_max_rate                                8000.0          # Maxmimum rate in mm/min

gamma_step_pin                               2.2!o              # Pin for gamma stepper step signal
gamma_dir_pin                                0.20o             # Pin for gamma stepper direction, add '!' to reverse direction
gamma_en_pin                                 0.19!o             # Pin for gamma enable
gamma_current                                1.5              # Z stepper motor current
gamma_max_rate                               1000.0            # Default 300 Maximum rate in mm/min

## Extruder module configuration

extruder.hotend.enable                          true          # Whether to activate the extruder module at all. All configuration is ignored if false
extruder.hotend.steps_per_mm                    818 #140           # Steps per mm for extruder stepper
extruder.hotend.default_feed_rate               600           # Default rate ( mm/minute ) for moves where only the extruder moves
extruder.hotend.acceleration                    100           # Acceleration for the stepper motor mm/sec²
extruder.hotend.max_speed                       50            # Maximum speed in mm/s

extruder.hotend.step_pin                        2.8 #2.3           # Pin for extruder step signal
extruder.hotend.dir_pin                         2.13 #0.22          # Pin for extruder dir signal ( add '!' to reverse direction )
extruder.hotend.en_pin                          4.29 #0.21          # Pin for extruder enable signal

# Extruder offset
#extruder.hotend.x_offset                        0            # X offset from origin in mm
#extruder.hotend.y_offset                        0            # Y offset from origin in mm
#extruder.hotend.z_offset                        0            # Z offset from origin in mm

# Firmware retract settings when using G10/G11, these are the defaults if not defined, must be defined for each extruder if not using the defaults
#extruder.hotend.retract_length                  3            # Retract length in mm
#extruder.hotend.retract_feedrate                45           # Retract feedrate in mm/sec
#extruder.hotend.retract_recover_length          0            # Additional length for recover
#extruder.hotend.retract_recover_feedrate        8            # Recover feedrate in mm/sec (should be less than retract feedrate)
#extruder.hotend.retract_zlift_length            0            # Z-lift on retract in mm, 0 disables
#extruder.hotend.retract_zlift_feedrate          6000         # Z-lift feedrate in mm/min (Note mm/min NOT mm/sec)

delta_current                                    1.33 #1.5          # First extruder stepper motor current

# Second extruder module configuration
#extruder.hotend2.enable                         true         # Whether to activate the extruder module at all. All configuration is ignored if false
#extruder.hotend2.steps_per_mm                   140          # Steps per mm for extruder stepper
#extruder.hotend2.default_feed_rate              600          # Default rate ( mm/minute ) for moves where only the extruder moves
#extruder.hotend2.acceleration                   500          # Acceleration for the stepper motor, as of 0.6, arbitrary ratio
#extruder.hotend2.max_speed                      50           # mm/s

#extruder.hotend2.step_pin                       2.8          # Pin for extruder step signal
#extruder.hotend2.dir_pin                        2.13         # Pin for extruder dir signal ( add '!' to reverse direction )
#extruder.hotend2.en_pin                         4.29         # Pin for extruder enable signal

#extruder.hotend2.x_offset                       0            # x offset from origin in mm
#extruder.hotend2.y_offset                       25.0         # y offset from origin in mm
#extruder.hotend2.z_offset                       0            # z offset from origin in mm

#epsilon_current                                 1.33 #1.5          # Second extruder stepper motor current

## Temperature control configuration


# First hotend configuration
temperature_control.hotend.enable            true             # Whether to activate this ( "hotend" ) module at all.
temperature_control.hotend.thermistor_pin    0.23             # Pin for the thermistor to read
temperature_control.hotend.heater_pin        1.23 #2.7              # Pin that controls the heater, set to nc if a readonly thermistor is being defined
temperature_control.hotend.thermistor        Semitec #EPCOS100K        # See 
#temperature_control.hotend.beta             4066             # Or set the beta value
temperature_control.hotend.set_m_code        104              # M-code to set the temperature for this module
temperature_control.hotend.set_and_wait_m_code 109            # M-code to set-and-wait for this module
temperature_control.hotend.designator        T                # Designator letter for this module
temperature_control.hotend.max_temp         285              # Set maximum temperature - Will prevent heating above 300 by default
#temperature_control.hotend.min_temp         0                # Set minimum temperature - Will prevent heating below if set

# Safety control is enabled by default and can be overidden here, the values show the defaults

#temperature_control.hotend.runaway_heating_timeout      900  # How long it can take to heat up, max is 2040 seconds.
#temperature_control.hotend.runaway_cooling_timeout        0  # How long it can take to cool down if temp is set lower, max is 2040 seconds
#temperature_control.hotend.runaway_range                20   # How far from the set temperature it can wander, max setting is 63°C

# PID configuration

temperature_control.hotend.p_factor         19.9 #13.7             # P ( proportional ) factor
temperature_control.hotend.i_factor         0.758 #0.097            # I ( integral ) factor
temperature_control.hotend.d_factor         130 #24               # D ( derivative ) factor

#temperature_control.hotend.max_pwm          64               # Max pwm, 64 is a good value if driving a 12v resistor with 24v.

# Second hotend configuration
#temperature_control.hotend2.enable            true           # Whether to activate this ( "hotend" ) module at all.
#temperature_control.hotend2.thermistor_pin    0.25           # Pin for the thermistor to read
#temperature_control.hotend2.heater_pin        1.23           # Pin that controls the heater
#temperature_control.hotend2.thermistor        EPCOS100K      # See 
##temperature_control.hotend2.beta             4066           # or set the beta value
#temperature_control.hotend2.set_m_code        104            # M-code to set the temperature for this module
#temperature_control.hotend2.set_and_wait_m_code 109          # M-code to set-and-wait for this module
#temperature_control.hotend2.designator        T1             # Designator letter for this module

#temperature_control.hotend2.p_factor          13.7           # P ( proportional ) factor
#temperature_control.hotend2.i_factor          0.097          # I ( integral ) factor
#temperature_control.hotend2.d_factor          24             # D ( derivative ) factor

#temperature_control.hotend2.max_pwm          64              # Max pwm, 64 is a good value if driving a 12v resistor with 24v.

temperature_control.bed.enable               true             # Whether to activate this ( "hotend" ) module at all.
temperature_control.bed.thermistor_pin       0.24             # Pin for the thermistor to read
temperature_control.bed.heater_pin           2.4 #2.5              # Pin that controls the heater
temperature_control.bed.thermistor           Honeywell100K    # See 
#temperature_control.bed.beta                3974             # Or set the beta value
temperature_control.bed.set_m_code           140              # M-code to set the temperature for this module
temperature_control.bed.set_and_wait_m_code  190              # M-code to set-and-wait for this module
temperature_control.bed.designator           B                # Designator letter for this module

# Bang-bang ( simplified ) control

temperature_control.bed.bang_bang           true #false           # Set to true to use bang bang control rather than PID
temperature_control.bed.hysteresis          2.0              # Set to the temperature in degrees C to use as hysteresis

## Switch modules
# Switch module for fan control
switch.fan.enable                            true             # Enable this module
switch.fan.input_on_command                  M106             # Command that will turn this switch on
switch.fan.input_off_command                 M107             # Command that will turn this switch off
switch.fan.output_pin                        1.22 #2.6              # Pin this module controls
switch.fan.output_type                       pwm              # PWM output settable with S parameter in the input_on_comand
#switch.fan.max_pwm                          255              # Set max pwm for the pin default is 255

#switch.misc.enable                          true             # Enable this module
#switch.misc.input_on_command                M42              # Command that will turn this switch on
#switch.misc.input_off_command               M43              # Command that will turn this switch off
#switch.misc.output_pin                      2.4              # Pin this module controls
#switch.misc.output_type                     digital          # Digital means this is just an on or off pin

#switch.bltouch.enable                    true         #
#switch.bltouch.output_pin                2.4          # sw pwm can use any digital pin
#switch.bltouch.input_on_command          M280         #
#switch.bltouch.input_off_command         M281         #
#switch.bltouch.output_type               swpwm        # sw pwm must be low frequency
#switch.bltouch.pwm_period_ms             20           # 50Hz
#switch.bltouch.startup_state             false        # start up in the stow state
#switch.bltouch.startup_value             7.43         # On boot it will go into stow mode, also set with the M281
#switch.bltouch.default_on_value          3.3          # if M280 is issued without S this is the value it will set it to


## Temperatureswitch
# Automatically toggle a switch at a specified temperature. Different ones of these may be defined to monitor different temperatures and switch different swithxes
# Useful to turn on a fan or water pump to cool the hotend
#temperatureswitch.hotend.enable              true            #
#temperatureswitch.hotend.designator          T               # first character of the temperature control designator to use as the temperature sensor to monitor
#temperatureswitch.hotend.switch              misc            # select which switch to use, matches the name of the defined switch
#temperatureswitch.hotend.threshold_temp      60.0            # temperature to turn on (if rising) or off the switch
#temperatureswitch.hotend.heatup_poll         15              # poll heatup at 15 sec intervals
#temperatureswitch.hotend.cooldown_poll       60              # poll cooldown at 60 sec intervals

## Endstops
endstops_enable                              true             # The endstop module is enabled by default and can be disabled here
#corexy_homing                               false            # Set to true if homing on a hbot or corexy
alpha_min_endstop                            1.24^!            # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#alpha_max_endstop                           1.25^!            # Pin to read max endstop, uncomment this and comment the above if using max endstops
alpha_homing_direction                       home_to_min      # Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
alpha_min                                    -420                # This gets loaded as the current position after homing when home_to_min is set
alpha_max                                    420              # This gets loaded as the current position after homing when home_to_max is set
#beta_min_endstop                             1.26^!            # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
beta_max_endstop                            1.27^!            # Pin to read max endstop, uncomment this and comment the above if using max endstops
beta_homing_direction                        home_to_max      # Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
beta_min                                     -200                # This gets loaded as the current position after homing when home_to_min is set
beta_max                                     200              # This gets loaded as the current position after homing when home_to_max is set
gamma_min_endstop                           nc #1.28^!           # Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
gamma_max_endstop                           1.29^!            # Pin to read max endstop, uncomment this and comment the above if using max endstops
gamma_homing_direction                       home_to_max      # DEFAULT home_to_min Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
gamma_min                                    0                # This gets loaded as the current position after homing when home_to_min is set
gamma_max                                    250              # This gets loaded as the current position after homing when home_to_max is set

alpha_max_travel                             840              # DEFAULT 500 Max travel in mm for alpha/X axis when homing
beta_max_travel                              400              # DEFAULT 500 Max travel in mm for beta/Y axis when homing
gamma_max_travel                             250             # DEFAULT 500 Max travel in mm for gamma/Z axis when homing

# Optional enable limit switches, actions will stop if any enabled limit switch is triggered
#alpha_limit_enable                          true            # Set to true to enable X min and max limit switches
#beta_limit_enable                           true            # Set to true to enable Y min and max limit switches
#gamma_limit_enable                          true            # Set to true to enable Z min and max limit switches

# Endstops home at their fast feedrate first, then once the endstop is found they home again at their slow feedrate for accuracy
alpha_fast_homing_rate_mm_s                  200 #DEFAULT 50               # Alpha/X fast homing feedrate in mm/second
alpha_slow_homing_rate_mm_s                  25 #DEFAULT 25               # Alpha/X slow homing feedrate in mm/second
beta_fast_homing_rate_mm_s                   200 #DEFAULT 50               # Beta/Y  fast homing feedrate in mm/second
beta_slow_homing_rate_mm_s                   25 #DEFAULT 25               # Beta/Y  slow homing feedrate in mm/second
gamma_fast_homing_rate_mm_s                  50 #DEFAULT 4                # Gamma/Z fast homing feedrate in mm/second
gamma_slow_homing_rate_mm_s                  10 #DEFAULT 2                # Gamma/Z slow homing feedrate in mm/second

alpha_homing_retract_mm                      20  #5              # Distance to retract from the endstop after it is hit for alpha/X
beta_homing_retract_mm                       20  #5              # Distance to retract from the endstop after it is hit for beta/Y
gamma_homing_retract_mm                      10 #1                # Distance to retract from the endstop after it is hit for gamma/Z



# Optional order in which axis will home, default is they all home at the same time,
# If this is set it will force each axis to home one at a time in the specified order
#homing_order                                 XYZ              # X axis followed by Y then Z last
move_to_origin_after_home                    true #false            # Move XY to 0,0 after homing
#endstop_debounce_count                       100              # Uncomment if you get noise on your endstops, default is 100
endstop_debounce_ms                          2                # Uncomment if you get noise on your endstops, default is 1 millisecond debounce
home_z_first                                 true             # Uncomment and set to true to home the Z first, otherwise Z homes after XY

# End of endstop config
# Delete the above endstop section and uncomment next line and copy and edit Snippets/abc-endstop.config file to enable endstops for ABC axis
#include abc-endstop.config

soft_endstop.enable         true         # Enable soft endstops
soft_endstop.x_min          -421            # Minimum X position
soft_endstop.x_max          421          # Maximum X position
soft_endstop.y_min          -201            # Minimum Y position
soft_endstop.y_max          201          # Maximum Y position
soft_endstop.z_min          -1            # Minimum Z position
soft_endstop.z_max          251          # Maximum Z position
soft_endstop.halt           false         # Whether to issue a HALT state when hitting a soft endstop (if false, will just ignore commands that would exceed the limit)


## Z-probe
zprobe.enable                                true #false        # Set to true to enable a zprobe
zprobe.probe_pin                             1.28^         	# Pin probe is attached to, if NC remove the !
zprobe.slow_feedrate                         5               	# Mm/sec probe feed rate
zprobe.debounce_ms                          5               	# Set if noisy
zprobe.fast_feedrate                         100 #100           # Move feedrate mm/sec
zprobe.probe_height                          5               	# How much above bed to start probe
zprobe.return_feedrate       		     50                  # feedrate after a probe, default 0 is double of slow_feedrate (mm/s)
zprobe.dwell_before_probing		     0.2		# Dwell time in seconds before probing

# Levelling strategy
leveling-strategy.rectangular-grid.enable               true	# The strategy must be enabled in the config, as well as the zprobe module.
leveling-strategy.rectangular-grid.x_size               600	# size of bed in the X axis
leveling-strategy.rectangular-grid.y_size               350	# size of bed in the Y axis

leveling-strategy.rectangular-grid.grid_x_size          5	# The X size of the grid. For X size != Y size. Must be an odd number.
leveling-strategy.rectangular-grid.grid_y_size		5	# The Y size of the grid. For X size != Y size. Must be an odd number.
leveling-strategy.rectangular-grid.do_home              true    # home before level          
leveling-strategy.rectangular-grid.probe_offsets        10,11,0	# Optional probe offsets from the nozzle or tool head
leveling-strategy.rectangular-grid.save                 true	# If the saved grid is to be loaded on boot then this must be set to true
leveling-strategy.rectangular-grid.initial_height       10	# will move to Z10 before the first probe
mm_per_line_segment                                     1	# necessary for cartesians using rectangular-grid
leveling-strategy.rectangular-grid.human_readable       true	# Human readable formatting of probe table
#CHECK BEFORE USE
#leveling-strategy.rectangular-grid.dampening_start  	0.5 	# algorithm will be applied less and less from this height onwards
#leveling-strategy.rectangular-grid.height_limit     	1   	# algorithm will stop applying compensation from this point onwards


## Panel
# Please find your panel on the wiki and copy/paste the right configuration here
panel.enable                                 true             # Set to true to enable the panel code

# Example for reprap discount GLCD
# on glcd EXP1 is to left and EXP2 is to right, pin 1 is bottom left, pin 2 is top left etc.
# +5v is EXP1 pin 10, Gnd is EXP1 pin 9
panel.lcd                                   reprap_discount_glcd     #
panel.spi_channel                           0                 # SPI channel to use  ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin                            0.16              # SPI chip select     ; GLCD EXP1 Pin 4
panel.encoder_a_pin                         3.25!^            # Encoder pin         ; GLCD EXP2 Pin 3
panel.encoder_b_pin                         3.26!^            # Encoder pin         ; GLCD EXP2 Pin 5
panel.click_button_pin                      1.30!^            # Click button        ; GLCD EXP1 Pin 2
panel.buzz_pin                              1.31              # Pin for buzzer      ; GLCD EXP1 Pin 1
panel.back_button_pin                       2.11!^            # Back button         ; GLCD EXP2 Pin 8

panel.encoder_resolution                   4                 # number of clicks to move 1 item

# setup for external sd card on the GLCD which uses the onboard sdcard SPI port
panel.external_sd                     true              # set to true if there is an extrernal sdcard on the panel
panel.external_sd.spi_channel         1                 # set spi channel the sdcard is on
panel.external_sd.spi_cs_pin          0.28              # set spi chip select for the sdcard (or any spare pin)
panel.external_sd.sdcd_pin            0.27!^            # sd detect signal (set to nc if no sdcard detect) (or any spare pin)

panel.menu_offset                            0                 # Some panels will need 1 here

panel.alpha_jog_feedrate                     6000              # X jogging feedrate in mm/min
panel.beta_jog_feedrate                      6000              # Y jogging feedrate in mm/min
panel.gamma_jog_feedrate                     200               # Z jogging feedrate in mm/min

panel.hotend_temperature                     185               # Temp to set hotend when preheat is selected
panel.bed_temperature                        60                # Temp to set bed when preheat is selected

## Custom menus : Example of a custom menu entry, which will show up in the Custom entry.
# NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands
custom_menu.power_on.enable                true              #
custom_menu.power_on.name                  Power_on          #
custom_menu.power_on.command               M80               #

custom_menu.power_off.enable               true              #
custom_menu.power_off.name                 Power_off         #
custom_menu.power_off.command              M81               #


## Network settings
network.enable                               true            # Enable the ethernet network services
network.webserver.enable                     true             # Enable the webserver
network.telnet.enable                        true             # Enable the telnet server
#network.ip_address                          auto             # Use dhcp to get ip address
# Uncomment the 3 below to manually setup ip address
network.ip_address                           xxx.xxx.x.xxx   # The IP address
network.ip_mask                              255.255.255.0   # The ip mask
network.ip_gateway                           xxx.xxx.x.x     # The gateway address
#network.mac_override                         xx.xx.xx.xx.xx.xx  # Override the mac address, only do this if you have a conflict

## System configuration
# Serial communications configuration ( baud rate defaults to 9600 if undefined )
# For communication over the UART port, *not* the USB/Serial port
uart0.baud_rate                              115200           # Baud rate for the default hardware ( UART ) serial port

second_usb_serial_enable                     false            # This enables a second USB serial port
#leds_disable                                true             # Disable using leds after config loaded
#play_led_disable                            true             # Disable the play led

# Kill button maybe assigned to a different pin, set to the onboard pin by default
kill_button_enable                           true             # Set to true to enable a kill button
kill_button_pin                              2.12             # Kill button pin. default is same as pause button 2.12 (2.11 is another good choice)

#msd_disable                                 false            # Disable the MSD (USB SDCARD), see 
#dfu_enable                                  false            # For linux developers, set to true to enable DFU

# Only needed on a smoothieboard
currentcontrol_module_enable                 true             # Control stepper motor current via the configuration file

##POWER SUPPLY SWITCHING
switch.psu.enable                            true             # turn atx on/off
switch.psu.input_on_command                  M80              #
switch.psu.input_off_command                 M81              #
switch.psu.output_pin                        0.26o!           # open drain, inverted
switch.psu.output_type                       digital          # on/off only
switch.psu.failsafe_set_to                   1                # so the ATX turns off on a system crash
#switch.psu.ignore_on_halt                   true             # so the ATX does not turn off on a HALT condition (like limit trigger)
                                                               # However leave commented or set to false if you want the ATX to turn off for an over heat fault condition

Please note i have verified the sd card etc

Also Apologies i only just saw the note about the correct way to post the config file. I shall note that for next time

Posts are editable on this forum! :smiling_face:

1 Like