Your Duet rejected the HTTP request: page not found
-
@sleepless said in Your Duet rejected the HTTP request: page not found:
Should my z endstop be plugged into the z probe area instead of the z endstop area on the board? Sorry Im feel like im just getting more and more confused
That's up to you depending on which probe mode you choose. Either mode 4 or mode 5 (or one of the slight variations (mode 6, 7, or, 8 which use different connection options.)
https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe
Mode 4
The trigger signal is read from the E0 endstop circuit. You can choose whether the signal is high or low when triggered. In firmware 1.15 and earlier this is done by using M574 E0 S1 to select active high, or M574 E0 S0 to select active low. In firmware 1.16 and later, use I1 in the M558 command to select active low, otherwise it defaults to active high. The device connected to the E0 STP pin must be able to sink 1.5mA for the Duet 2 WiFi and Duet 2 Ethernet, 0.3mA for the Duet 2 Maestro, or 2.1mA for the Duet 0.6 or 0.8.5.Mode 5
A switch or digital output device connected between the IN and GND terminals of the Z probe connector. Similar to mode 4 except that the Z probe connector is used. The input must be active high when triggered, or in firmware 1.16 and later you can use the I1 parameter in the M558 command to select active low. The only pullup resistor is the 100K nominal pullup in the microcontroller so the sink current requirement is tiny.Mode 6
Similar to mode 4 except that the E1 endstop input is used.Mode 7
Similar to mode 4 except that the Z endstop input is used.Mode 8
Similar to mode 5 except that the input is not filtered, for slightly faster response. Supported in firmare 1.20 and later.It would help to know what type of switch it's using for the Z axis endstop, but I think you may want to use Mode 8, which would connect your switch to the Z probe connector.
-
@sleepless do you have both a Z probe and a Z endstop or just a probe? Generally a Z probe would be plugged into the prob header.
edit @Phaedrux provided a far more detailed answer, posts crossed.
-
@t3p3tony The Robo3D appears to have 2 end stop switches wired in parallel for the z axis.
At least that's what I gathered from the thread linked above.
It looks like they used mode 4, inverted, wired to the z endstop pins.. But I think mode 8 connected to the z probe pins would also work.
-
Thanks everyone so to clarify I am using the robo3d r1 plus stock endstops and autolevel. It uses microswitches that get triggered when the x axis is lifted off the endstop by the nozzle touching the bed. I will move the z endstop to the z probe connection and give it a go
-
z probe seems to need the plug wired differently am I seeing that correctly?
-
forgot to mention I only have endstops no z probe
-
what is parameter I1?
Connect it between the STP and GND pins of the E0 connector and select mode 4. If it is a normally-closed microswitch, then with version 1.15 or earlier firmware use M574 E0 S1 to select active high trigger level. For normally-open contacts (not recommended), send M574 E0 S0 instead. With 1.16 or later firmware, include parameter I1 in the M558 command if you are using a normally-open switch.Ok so if I understand this correctly I need to plug my Z endstop into the E0 Stop. I need to connect the black wire to the GRD and the Red wire into the E0 Stop pin ports. Then I need to send M558 parameter I1?
-
I1 will invert the signal. That's an upper case i.
-
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