Page 1 of 1

Startup Script Help Lower Z Before Jog

Posted: Sat Aug 31, 2019 1:45 pm
by scott216
I'd like to change the startup script on my Replicator 2. Right now the printer homes, then jogs to the other side of the build plate. I'd like to lower z before the x-y jog to the other side of the build plate. I'm having problems because of M132 command. M132 recalls the home offsets. Right after M132 I added G1 Z10 F100, but it's not doing what I expected. What's happening is the print head is jogging to the center of the build plate, then lowering to Z10, then it continues to the other side. It's seems M132 is recalling the home offsets plus jogging to the offset position recalled.
Here's the script I'm using.

Code: Select all

; **** Replicator 2 start.gcode ****
M73 P0 ; enable build progress
G162 X Y F3000 ; home XY maximum
G161 Z F1200 ; home Z minimum
G92 Z-5 ; set Z to -5
G1 Z0 ; move Z to 0
G161 Z F100 ; home Z slowly
M132 X Y Z A B ; recall home offsets
G1 Z10 F100; lower z before moving to across build plate   ********** Added
G1 X-150 Y-75 Z10 F9000 ; move to wait position off table
G130 X20 Y20 Z20 A20 B20 ; lower stepper Vrefs while heating
M126 S[fan_speed_pwm]
M104 S[extruder0_temperature] T0
M133 T0 ; stabilize extruder temperature
G130 X127 Y127 Z40 A127 B127 ; default stepper Vrefs
G92 A0 ; zero extruder
G1 Z0.4 ; position nozzle
G1 E25 F300 ; purge nozzle
G1 X-140 Y-70 Z0.15 F1200 ; slow wipe
G1 X-135 Y-65 Z0.5 F1200 ; lift
G92 A0 ; zero extruder
M73 P1 ;@body (notify GPX body has started)
; **** end of start.gcode ****