G29 vs G31 vs G32 which to use for rectangular levelling?

310 views
Skip to first unread message

John

unread,
May 19, 2017, 10:32:37 AM5/19/17
to Smoothieware Support
Ok, I have been pulling my hair out trying to setup rectangular levelling. (3 Point works perfectly BTW)

I have a coreXY machine with the X0Y0 origin at the back left. My Zprobe is offset behind the nozzle by 50mm.















If I run G29 the bed levelling runs as expected though the grid it measures seems to be rather small relative to my bed of 270 x 290 (especially in the Y direction)
If I run G31 nothing happens
If I run G32 I get the first probe measurement position in the correct spot but then the next position moves to the origin again at which point my probe is no longer over the print surface and I get a nozzle crash

Can I just run G29 and the bed compensation will be saved and ignore G32?
Why would G31 not be working
If I should be running G32, can someone identify why the second probe point is moving in the reverse instead of forward?

Pertinent config info below 

Thanks!

alpha_min                                     -50               # this gets loaded after homing when home_to_min is set
alpha_max                                    270              # this gets loaded after homing when home_to_max is set
beta_min                                      0                  #
beta_max                                     290              #


# optional Z probe
zprobe.enable                                true           # set to true to enable a zprobe
zprobe.probe_pin                           1.29          # pin probe is attached to if NC remove the !
zprobe.slow_feedrate                     5               # mm/sec probe feed rate
#zprobe.debounce_count               100             # set if noisy
zprobe.fast_feedrate                      100             # move feedrate mm/sec
zprobe.probe_height                      10               # how much above bed to start probe

# Switch module for Z probe servo control
switch.servo.enable                       true              #
switch.servo.input_on_command    M280 S3.5    # M280 S7.5 would be midway
switch.servo.input_off_command    M280 S12.5  # same as M280 S0 0% duty cycle, effectively off
switch.servo.output_pin                 1.23             # must be a PWM capable pin
switch.servo.output_type               hwpwm        # H/W pwm output settable with S parameter in the input_on_comand
#switch.servo.pwm_period_ms       20               # set period to 20ms (50Hz) default is 50Hz

# associated with zprobe the leveling strategy to use
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               270       # size of bed in the X axis
leveling-strategy.rectangular-grid.y_size               290       # size of bed in the Y axis
leveling-strategy.rectangular-grid.size                  5           # The size of the grid, for example, 7 causes a 7x7 grid with 49 points. 
leveling-strategy.rectangular-grid.do_home           false #                                                           # Must be an odd number.
leveling-strategy.rectangular-grid.probe_offsets    50,0,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         # Optionally an initial_height can be set that tell the intial probe 
                                                                                    # where to stop the fast decent before it probes, this should be 
                                                                                    # around 5-10mm above the bed


wolfmanjm

unread,
May 19, 2017, 5:01:06 PM5/19/17
to Smoothieware Support
e read the wiki section on zprobe and specifically the rectangular grid. G32 is the ONLY gcode that runs the grid.

John

unread,
May 19, 2017, 8:07:45 PM5/19/17
to Smoothieware Support
Thanks but it is the only one that messes up the test pattern and I don't no why sadly. Do I need to set my origin to the middle of the bed?

bfchevy3

unread,
Jun 23, 2017, 4:10:37 PM6/23/17
to Smoothieware Support
John, Did you every get the BL Touch working?

Do I need to have a z min end stop as well as the BL Touch?

I haven't been able to find the pin numbers for the Azteeg x5 gt in full. So I have no idea what the pins are in the servo output. 

Also do I need to put "nc" in for the z min pin for the bltouch to work. I'm a bit confused over here so any wiring and config explanations would be great. 
Reply all
Reply to author
Forward
0 new messages