Which G32 to use



  • if I were to do G32 at the start of every print, would I want to use G32 S2? Or S1, S0?

    I want it to get the Z height accurately before the first layer.

    I was unable to discern from the gcode documentation which one would do this.



  • @oryhara said in Which G32 to use:

    normally you run G32 once and if you dont change anything on your printer.
    if the it varies from print to print there are mechanical issues wth your printer.

    how are you saving the results from the G32 command?



  • I do not know.

    is M500 the command to save those results?

    There was a thing in the 'set up a delta' doc that mentioned doing G32 at the start of every print. Its so fast i figured it would be better safe than sorry to run it every time.



  • That would be the normal G32 to run before each print.

    please post your config.g and config-overwrite.g



  • ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Tue Feb 26 2019 21:31:01 GMT+0000 (Greenwich Mean Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Delta Settings
    M665 L440.440 R226.821 H420 B185.0 X0 y0 z0 ; Set delta radius, diagonal rod length, printable radius and homed height
    M666 X0 y0 z0 A0.00 B0.00 ; Put your endstop adjustments here, or let auto calibration find them

    ; Network
    M550 P"Predator" ; Set machine name
    M551 P"" ; Set password
    M552 P0.0.0.0 S1 ; Enable network and acquire dynamic address via DHCP
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S0 ; Drive 0 goes forwards
    M569 P1 S0 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes forwards - extruder
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80.00 Y80.00 Z80.00 E415 ; Set steps per mm
    M566 X3000 Y3000 Z3000 E3000 ; Set maximum instantaneous speed changes (mm/min)
    M203 X12000.00 Y12000.00 Z12000.00 E12000 ; Set maximum speeds (mm/min)
    M201 X9000.00 Y9000.00 Z9000.00 E6000.00 ; Set accelerations (mm/s^2)
    M906 X1800.00 Y1800.00 Z1800.00 E900.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Retraction
    M207 S1.85 F7000 R0 T2500 Z0.5 ; Firmware retraction

    ; Axis Limits
    M208 Z0 S1 ; Set minimum Z

    ; Endstops
    M574 X2 Y2 Z2 S1 ; Set active high endstops

    ; Z-Probe
    M558 P8 R0.4 F1200 H2 T5000 ; Set Z probe type to switch and the dive height + speeds
    G31 P100 X0 Y0 Z-0.45 ; Set Z probe trigger value, offset and trigger height
    M557 R175 S20 ; Define mesh grid

    ; Heaters
    M307 H0 A137.8 C533.3 D1.5 V24.3 B0 ; Disable bang-bang mode for the bed heater and set PWM limit
    M305 P0 T100000 B4300 C0 R2200 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4725 C7.06e-8 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S290 ; Set temperature limit for heater 1 to 240C
    M307 H2 A-1 C-1 D-1 ; Disconnect H2 from being a heater - LED

    ; Fans
    M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 T30 H100:101:102 ;sets up an electronics cooling fan that starts to turn on when the MCU temperature (virtual heater 100) reaches 45C and reaches full speed when the MCU temperature reaches 65C or if any TMC2660 drivers (virtual heaters 101 and 102) report that they are over-temperature

    ; Tools
    M563 P0 D0 H1 ; Define tool 0
    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

    ; Automatic saving after power loss is not enabled

    ; Custom settings are not configured
    M591 D0 P2 C4 S0 ; Activate filament sensor
    M404 N1.75 ; Set for print monitor
    M592 D0 A0.011806 B0.0026876 ; Nonlinear extrusion. Set parameters for extruder drive 0 - 0.4mm
    M575 P1 B57600 S1

    ; Miscellaneous
    M501 ; Load saved parameters from non-volatile memory

    ; This is a system-generated file - do not edit
    ; Delta parameters
    M665 L440.440 R220.739 H410.669 B185.0 X-0.181 Y-0.045 Z0.000
    M666 X-0.378 Y-0.477 Z0.855 A0.00 B0.00
    ; Heater model parameters
    M307 H0 A137.8 C533.3 D1.5 S1.00 V24.3 B0
    M307 H1 A340.0 C140.0 D5.5 S1.00 V0.0 B0
    G10 L2 P1 X0.00 Y0.00 Z0.00
    G10 L2 P2 X0.00 Y0.00 Z0.00
    G10 L2 P3 X0.00 Y0.00 Z0.00
    G10 L2 P4 X0.00 Y0.00 Z0.00
    G10 L2 P5 X0.00 Y0.00 Z0.00
    G10 L2 P6 X0.00 Y0.00 Z0.00
    G10 L2 P7 X0.00 Y0.00 Z0.00
    G10 L2 P8 X0.00 Y0.00 Z0.00
    G10 L2 P9 X0.00 Y0.00 Z0.00



  • @oryhara said in Which G32 to use:

    M307 H1 A340.0 C140.0 D5.5 S1.00 V0.0 B0

    i think you forgot to pid tune this heater.

    the rest looks good to me.

    what endstops does your machine have?
    i found that mechanical endstops on my delta were not accurate enough.
    with ir endstops the results were a lot better.



  • it's an anycubic predator. they're optical endstops. and the probe is a smart effector.

    I'll have to PID tune the heater. thanks for the heads up.


Log in to reply