Your Duet rejected the HTTP request: page not found
-
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool on Sun Oct 28 2018 16:32:40 GMT-0700 (Pacific Daylight Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G1 S1 Z-205 F1800 ; move Z down until the endstop is triggered
G90 ; back to absolute mode
G1 X115 Y125 F2000 ; put head over the centre of the bed, or wherever you want to probe
G30 ; lower head, stop when probe triggered and set Z to trigger height; 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 -
What does your endstop/zprobe section look like in config.g?
-
; Drives
M569 P0 S0 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes forwards
M350 X32 Y32 Z32 I0 ; Configure microstepping without interpolation
M350 E16 I1 ; Configure microstepping with interpolation
M92 X80 Y80 Z800 E723.38 ; Set steps per mm
M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000 Y30000 Z300 E1500 ; Set maximum speeds (mm/min)
M201 X500 Y250 Z250 E250 ; Set accelerations (mm/s^2)
M906 X1000 Y1000 Z1000 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X230 Y254 Z200 S0 ; Set axis maxima; Endstops
M574 Z1 S0 ; Set active low endstops
M574 X2 Y2 S1 ; Set active high endstops; Z-Probe
M558 P1 H5 F120 T6000 ; Set Z probe type to unmodulated and the dive height + speeds
G31 P500 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
M557 X15:215 Y15:239 S20 ; Define mesh grid; Heaters
M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S110 ; Set temperature limit for heater 0 to 110C
M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S300 ; Set temperature limit for heater 1 to 300C; Fans
M106 P0 S0.6 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 S1 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off; 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
-
@sleepless said in Your Duet rejected the HTTP request: page not found:
M558 P1
Have you tried with M558 P4?
P1 is not what you want here.
I think it might be a good idea to reduce the complexity of setup for the time being and just get things working with a simple endstop switch. Once things are working you can go back and see if it's worth getting more complex with the endstop switch as a z probe. Typically you'd only want to use an endstop as a z probe if the switch is mounted to the print head anyway so that you could probe multiple places on the bed. Since your switches for the z end stops are fixed to the x axis it really limits what you can do with them.
So here's what I would do, connect one of the Z axis endstops to the Z axis endstop connector. Then in your config.g comment out the M558, G31, and M557 commands with a semi colon. or delete them. Then change the endstop section to reflect your z axis endstop switch. Then change your homing files to use a G1 S1 Z move to endstop like the moves used for the X and Y axis, and remove the G30 probe command.
Does that make sense?
Are there 2 independant Z motors? Did the original Robo R1 use the 2 endstops to keep each side of the X axis gantry level and in sync? That functionality could be duplicated, if that's the case.
-
@phaedrux said in Your Duet rejected the HTTP request: page not found:
Have you tried with M558 P4?
I have not
ill try that now. I had all endstops working before when I was connected to the z endstop but could get an autolevel -
there are 2 independent z motors. The endstops are connected as one
-
@phaedrux said in Your Duet rejected the HTTP request: page not found:
M558 P4
ok now it triggers on the probe it goes from 1000 to 0
but does trigger when I home the z -
Do I need to add this to the bed.g? or homeall.g?
Bed probing file
If you use mesh bed compensation (which is recommended in most cases) or no bed compensation, you can skip this section. This section is about using the older 3, 4 and 5 point bed compensation, using probe points defined in the bed.g file.The commands in bed.g are executed when you send the G32 command. So this file should contain your bed probing script. Here is a typical 5-point bed.g file for a printer with a 200 x 200mm bed:
M561 ; clear any existing bed transform
M401 ; deploy Z probe if necessary
G30 P0 X10 Y10 Z-99999 ; define 4 points in a clockwise direction around the bed, starting near (0,0)
G30 P1 X10 Y190 Z-99999
G30 P2 X190 Y190 Z-99999
G30 P3 X190 Y10 Z-99999
G30 P4 X100 Y100 Z-99999 S0 ; finally probe bed centre, and calculate compensation
M402 ; retract the Z probe
G1 X0 Y0 F5000 ; move the head to the corner (optional)
The Z-99999 parameter on each G30 command tells the firmware to probe at the given XY point and save the reading in the index given by the P command. The S0 parameter on the final G30 command tells the firmware to apply compensation based on the number of points probed (in this case, 5 points). The bed probe points must be in a clockwise order around the bed starting with the point nearest (0, 0) and when using 5-point probing the centre point must be last.You may include an H parameter on each G30 command, This is the value that needs to be added to the G31 Z parameter to get the trigger height at that position. This is to correct for Z probes whose trigger heights vary slightly with XY position.
To use 4-point compensation, omit the final G30 command and put the S0 parameter on the G30 P3 command instead.
To use manual compensation instead of a Z probe, replace the -99999 in each G30 command by the actual bed height error at that XY position.
-
@sleepless bed.g
That is for bed compensation. which dows require a probe in the way it is setup which i believe the ROBO R1 does not have?
To summarise you have two Z leadscrews/guides with a endstop on each one? Those endstops are used to level the X axis and also to adjust the Z height?
Conceptually levelling the X axis is the same as levelling the bed on that plane.
Are the Z endstops at the top or bottom of the the 2 Z guides?
-
-
When you say the endstops are connected as one, do you mean they go to a single endstop connector?
-
so the endstops are under the x carriage and are triggered when the nozzle hits the bed and the metal trigger on the endstop is released.
-
@phaedrux I mean the wired the 2 endstops to one connector
-
@phaedrux exactly
-
thanks for the early morning help guys
-
Do both switches have to be hit for the endstop to trigger or does it trigger as.soon as one is hit?
-
@phaedrux It should trigger when one is hit however I am not completely sure about that.right now I think I will recrimp the connection because it triggers the e0 endstop as hit when its normal and no hit when I lift the carraige. Also this takes a while before it recognizes the hit/no hit but once it does it seems to trigger right away. then I run a home all test and it wants to crash into the bed
-
Have you seen this?
https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors
-
ok just read through it and I am more confused.
File config.g:... Im not sure what I would put here:
M584 X0 Y1 Z2:5:6 ; three Z motors connected to driver outputs 2, 5 and 6
M671 X-15215 Y190:-10:190 S0.5 ; leadscrews at rear left, front middle and rear right
...
File bed.g:
I assume I would remove M401 and G30 P2 X100 Y10 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors
M402 ; retract probe?
G28 ; home
M401 ; deploy Z probe
G30 P0 X20 Y190 Z-99999 ; probe near a leadscrew
G30 P1 X180 Y190 Z-99999 ; probe near a leadscrew
G30 P2 X100 Y10 Z-99999 S3 ; probe near a leadscrew and calibrate 3 motors
M402 ; retract probe -
@phaedrux said in Your Duet rejected the HTTP request: page not found:
https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors
Well in your case you only have 2 motors and 2 lead screws, so in those examples you just need to remove one of the references for each and make the remaining ones match your setup.
So something like
M584 X0 Y1 Z2:4
assuming your Z motors are connected to the Z connector and the second extruder connector (e1)
And then you'd need your lead screw positionsM671 X-15:315 Y150:150
assuming the lead screws are in the middle of the bed in the Y dimension, and then a left and right value for the X axis.and for the bed.g same deal, you just need 2 positions for your 2 lead screws.
I'm not an expert on using independent lead screws to level the bed though as I've never used it.