Your Duet rejected the HTTP request: page not found
-
@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.
-
my z motors are both connected in the port z motor a and port z motor b
-
fyi i am using duet 2 wifi
-
; bed.g
; called to perform automatic bed compensation via G32
;
; generated by RepRapFirmware Configuration Tool on Sun Oct 28 2018 16:32:40 GMT-0700 (Pacific Daylight Time)
M561 ; clear any bed transform
; Probe the bed at 4 points
G30 P0 X15 Y15 H0 Z-99999
G30 P1 X15 Y239 H0 Z-99999
G30 P2 X215 Y239 H0 Z-99999
G30 P3 X215 Y15 H0 Z-99999 S