Your Duet rejected the HTTP request: page not found
-
Thanks for the quick replies ok ill give it a shot and see what happens. If the Z doesnt trigger how do I troubleshoot?
-
You can test the switch itself by connecting it to an endstop connector and seeing if the light turns on and off when it's triggered. Then it's just a matter of being connected with the wires to the right place for the chosen mode.
That linked thread seems to indicate that it should work in this configuration but as a fall back you could use it as a simple endstop switch.
-
Should I be following these instructions for the change in 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) -
also neither e0 or z endstop trigger when i raise the bed by hand
-
; homeall.g
; called to home all axes
;
; 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 X235 Y259 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 X-5 Y-5 F6000 ; go back a few mm
G1 S1 X235 Y259 F360 ; move slowly to X and Y axis endstops once more (second pass)
G1 S1 Z-205 F1800 ; move Z down stopping at the endstop
G90 ; absolute positioning
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 -
; 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