Can't get my z endstop to stop the steppers.
-
thanks for getting back to me so quick,
no probe
ive had a quick read of the link before but there must be something im missing.
here are the settings i have:; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G1 S1 X-455 Y455 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 X5 Y-5 F6000 ; go back a few mm
G1 S1 X-455 Y455 F360 ; move slowly to X and Y axis endstops once more (second pass)
G1 S1 Z-455 F1800 ; move Z down stopping at the endstop
G90 ; absolute positioning
G92 Z0 ; set Z to axis minimum (you may want to adjust this); 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; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G1 S1 X-455 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F6000 ; go back a few mm
G1 S1 X-455 F360 ; move slowly to X axis endstop once more (second pass)
G1 Z-5 F6000 S2 ; lower Z again
G90 ; absolute positioning; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G1 S1 Y455 F1800 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y-5 F6000 ; go back a few mm
G1 S1 Y455 F360 ; move slowly to Y axis endstop once more (second pass)
G1 Z-5 F6000 S2 ; lower Z again
G90 ; absolute positioning; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G1 S1 Z-455 F1800 ; move Z down until the endstop is triggered
G92 Z0 ; set Z position to axis minimum (you may want to adjust this); 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 -
currently i only have the duet connected, ill be connecting the duex5 once i get this working.
-
i finally fixed it by making these changes.
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool on Thu Sep 27 2018 22:38:13 GMT+1000 (Australian Eastern Standard Time)
;G91 ; relative positioning
;G1 Z5 F6000 S2 ; lift Z relative to current position
;G1 S1 Z-455 F1800 ; move Z down until the endstop is triggered
;G92 Z0 ; set Z position to axis minimum (you may want to adjust this); Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 S2 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioningG91 ; relative mode
G1 S1 Z250 F300 ; move Z towards the switch until it triggers
G1 Z-5 F100 S2 ; move Z back 5mm
G1 S1 Z10 F100 ; move Z slowly towards the switch until it triggers
G90 ; back to absolute mode -
damn, no idea what happened but it is having the same problem again
-
In those changes you posted you have the Z motor going in the opposite direction. If you manually move the axis which way does it go?
Can you try reducing your Z axis acceleration in config.g?
M201 Z60
instead ofM201 Z3000
Also verify that your Z axis steps per mm is really 4000.
Z_steps_per_mm = (motor_steps_per_rev * driver_microstep) / thread_pitch
Can you also verify the max rated current for the z motor? Try to set the current at 70-85% of it's max.
You may also want to reduce your maximum allowed speed. Keep in mind that reprapfirmware specifies speeds in mm/min, which is different from Marlin which uses mm/sec. 1.2 million mm/min is a little crazy, and if the feed rate is ever set too high for a move you may have some issues. 300mm/s is 18000mm/min and is far more reasonable. Your Z axis probably isn't going to move much faster than 5mm/s anyway.
There have been some cases where the z axis being configured incorrectly can cause the motor to go in the opposite direction it thinks it is.
-
Thanks Phaedrux, looks like those changes worked.
now i just have to connect the duex5 and hopefully start printing again.thanks again for all your help.
-
@phaedrux the max rated current on the 2 extra extruders are 2amp, the original creality steppers are cr-10 42-34 and i couldn't find current ratings for it. when i move the axis it was easier to move it down,
-
why is it that when i turn the printer off then on again, the settings have been saved but the endstop doesnt work and the z axis moves up when homing z, my endstop switch is at the bottom.
-
@rbtdata said in Can't get my z endstop to stop the steppers.:
why is it that when i turn the printer off then on again, the settings have been saved but the endstop doesnt work and the z axis moves up when homing z, my endstop switch is at the bottom.
Have you by any chance got a config-overide.g file in your sys directory? If so does that have anything in it that looks like it might change the end stop behaviour? What happens when you first turn on the machine is that it will load config.g, then config-overide.g. So anything in config-overide.g will do what it says - i.e over ride the config.g settings.
If that is the case, then you need to save the changes in config-overide.g (or delete the file).
This is a bit of a long shot but would explain why settings change when doing a power cycle.
-
@deckingman thanks for your reply, unfortunately the file doesn't exist.
-
@rbtdata I'm not familiar with the CR10 but I've had a look at your config.g and your Z homing files and there seem to be some inconsistencies. Can you let us know where the end stops are physically connected. The most usual arrangement is to have them at the low end of all axes but it's not obligatory. Oh, and do you move the gantry up and down in Z, or the bed?
So the most common arrangement would be the X switch located on the left of the X axis, the Y switch located at the front, and the Z switch located at the top of the bed travel or at the bottom of the gantry if the bed is static in Z.