G28 Z Error
-
Have homex, homey and homeall working perfectly, and homez works but delivers a G28Z error.
When I individually home x and y, then z, the z will home but the error message pops. Searched and tried some different parameters, but just can't figure this out.
I did not uncomment the last lines of Z probing because G30 does "lift Z" as it finishes.homey is same format as homex:
; homex.g
; called to home the X axis
G91 ; relative positioning
G1 Z3 F1800 S2 ; lift Z relative to current position
M913 X70 ; current to 70%
G1 S1 X305 F3000 ; move quickly to X axis endstop and stop there (first pass)
G1 X-5 F6000 ; go back a few mm
G1 S1 X305 F360 ; move slowly to X axis endstop once more (second pass)
M913 X100 ; current to 100%
G1 Z-3 F1800 S2 ; lower Z again
G90 ; absolute positioning
G1 X290; homeall.g
; called to home all axes
G91 ; relative positioning
G1 Z3 F1800 S2 ; lift Z relative to current position
M913 X70 Y70 Z60 ; reduce stepper currents
G1 S1 X305 Y305 F3000 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 X-5 Y-5 F1800 ; go back a few mm
G1 S1 X305 Y305 F360 ; move slowly to X and Y axis endstops once more (second pass)
G90 ; absolute positioning
G1 X150 Y150 F6000 ; go to first bed probe point and home Z
G30 ; home Z by probing the bed
M913 X100 Y100 Z100 ; increase current to 100%
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 S2 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning.; homez.g
; called to home the Z axis
G91 ; relative positioning
G1 Z3 F1800 S2 ; lower bed relative to current position
G4 P1000 ; ensure time for bed drop
G90 ; absolute positioning
M913 Z60 ; reduce current to 60%
G1 X150 Y150 F6000 ; go to first probe pointG30 ; home Z by probing the bed
M913 Z100 ; increase current to 100%; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 S2 Z3 F1800 ; lift Z relative to current position
;G90 ; absolute positioning -
What is the error?
Does it still happen if you remove the G4 P1000 pause? That shouldn't be necessary, it should wait for the Z move to complete before moving on to the XY move.
-
The error message...pink box... just reads "G28 Z Error: Bad command"
Is there more info somewhere else?
I'll remove the pause.
Thanks. -
@danl said in G28 Z Error:
.; homez.g
Just noticed that there is a period before the semicolon. Does that exist in your macro file as well?
-
yep...just looked. Geez, this stuff is touchy.
I'll drop the G4 and the period and test in about 5 minutes.
Thanks. Wow...really great catch. -
Solved....whoa...just one little dot.
Thank you.