running a duet wifi with a dc42 ir
-
So I,m new to this software. I have followed this steps below to home Z but it always stops with the printer nozzle about 1.16mm above the bed the sensor is about 3.45 mm above the bed. I have another print but it runs marlin with a bl touch sensor. I'm at a lose right now i got this print off of a friend that couldn't make it work please help me. I have attached my config.g ;homeall.g ; homez.g. I'm really not good with G-code and commands please be patient with me.
To calibrate the sensor for Z homing and bed probing, home X and Y, then position the head over the centre of the bed. With the nozzle at operating temperature, lower the head so that it is just touching the bed or just gripping a sheet of paper, then send G92 Z0 to define that position as Z=0. Raise the head 5mm and remove the paper. Then send command G30 S-1 to probe the bed at that point without adjusting the Z height setting. Read off the Z height in the “Head Position” box in Duet Web Control, or from the Z coordinate shown on the Control page of PanelDue, or send M114 to retrieve the head position if using a USB host program on a PC. It should be in the range 0.5 to 2.5mm. Use that value for the Z parameter in your G31 command in config.g.
config.g.
; CoreXY sample config file for dc42 Duet firmware by Haga. Please use with care. Some of the settings needs to be changed to work with your printer. Read the duetWiki!
;*** https://duet3d.com/wiki/Duet_Wifi_Wiki; Communication and general
M111 S0 ; Debug off
M550 PDBotCoreXY ; Machine name (P + anything you like)
M551 Preprap ; Machine password (used for FTP connections)
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address - If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M552 S1 ; Enable WiFi
M555 P2 ; Set output to look like Marlin
;M575 P1 B57600 S1 ; Comms parameters for PanelDue; Machine configuration
M569 P0 S0 ; Drive 0 goes forwards (change to S0 to reverse it)*
M569 P1 S0 ; Drive 1 goes forwards. (Change if motor goes wrong way. Or just turn the motor connection 180 degrees around..)
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwardsM574 X1 Y2 Z1 S0 ; set endstop configuration (X1 is at MIN end. Y2 is at MAX end. (active high switch = S1, active low switch= S0)
M667 S1 ; set CoreXY mode
M350 X16 Y16 Z16 E16 I1 ; Set 16x microstepping with interpolation
M92 X80.6 Y81.73 Z400 ; Set axis steps/mm. Check that the printer really move as much as you tell it. Not more and not less.
M92 E644.44:644.44 ; Set extruder steps/mm. Change this to match your extruder. http://www.instructables.com/id/How-to-calibrate-the-Extruder-on-your-3d-Printer/?ALLSTEPSM906 X900 Y900 Z900 E900 ; Set motor currents (mA). Increase if motor is to weak. Lower if motor gets too hot. 800-1000 is good for most.
M201 X1500 Y1500 Z300 E4000 ; Accelerations (mm/s^2). The acceleration, speed and jerk is a setting you can alter to try making the printer to print as nice as possible..
M203 X15000 Y15000 Z300 E1500 ; Maximum speeds (mm/min)
M566 X600 Y600 Z24 E300 ; Maximum jerk speeds mm/minuteM208 X300 Y300 Z450 ; set axis maxima (adjust to suit your machine)
M208 X0 Y0 Z0 S1 ; set axis minima (adjust to make X=0 and Y=0 the edges of the bed)G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Z probe
M558 P1 X0 Y0 Z1 H0 F200 T5000 R0 ; smart IR Z probe, used for homing Z axis only, dive height 3mm, probe speed 200mm/min, travel speed 5000mm/min, no recovery time
G31 P500 X0 Y-33 Z3 ; set threshold and offsets
; The following M557 commands are not needed if you are using a bed.g file to perform bed compensation
;*** Adjust the XY coordinates in the following M557 commands to suit your build and the position of the Z probe
M557 X25:250 Y25:250 S20 ; probe from X=10 to 190, Y=10 to 190mm with a mesh spacing of 20mm
; Thermistors and heaters;*** You can use S and B parameters to define the parameters of the thermistors you are using. Standard 100k thermistor from E3d is 4388 or 4725.
M305 P0 T100000 B4388 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 x200 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
;M305 P2 T100000 B4388 R4700 H0 L0 ; Put your own H and/or L values here to set the second nozzle thermistor ADC correction;***Choose if you want to use the M301 or the autotune results and M307 command. Don't use both.
;M301 H1 P10 I0.10 D100 T0.50 S1.0 ;PID settings for extruder 0 (no need for M301 if using M307)
;M301 H2 P10 I0.10 D100 T0.50 S1.0 ;PID settings for extruder 1M570 S120 ;Increase to allow extra heating time if needed
;***Use for autotune. Comment out M301 if you do.
M307 H0 A142 C293.5 D5.4 B0 ;Autotune result for bed
M307 H1 A588.5 C242.9 D6.7 B0 ;Autotuen result for first nozzle; Fans
M106 P1 T45 H1 ; enable thermostatic mode for fan 1 at temp 45 degrees. Fan turns on when P1(extruder 1) is above 45 degrees.; Tool definition
M563 P0 D0 H1 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures;*** If you have a dual-nozzle build, un-comment the following 3 lines
;M563 P1 D1 H2 ; Define tool 1
;G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures;*** If you are using axis compensation, put the figures in the following command
M556 S78 X0 Y0 Z0 ; Axis compensation here
M208 S1 Z-1.2 ; set minimum Z
M501 ; Load Config-Override.g that is created using M500
T0 ; select first hot end;homeall.g
;homing using a x-MIN, Y-MAX and z-MIN endstopsG91 ; relative mode
G1 Z4 F200 ; lowers bed 4mm to avoid dragging nozzle over the bed
G1 X-340 Y240 F3000 S1 ; move up to 340/240mm in the -X (x endstop is MIN) and +Y(y endstop is MAX) directions until the homing switches are triggered
G1 X4 Y-4 F600 ; move slowly 4mm in +X and +Y directions
G1 X-10 Y10 S1 ; move up to 10mm in the -X and -Y directions until the homing switches are triggered;**Only add this if you want your nozzel to be at a specific place when homing Z. Just neccesery if the nozzel crashes with something at the x and y homing posisions.
G1 Z4 F200 ; lowers bed 4mm to avoid dragging nozzle over the bed
G90 ; back to absolute mode
G1 X150 Y150 F5000 ; 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; homez.g
;homing using a z-MIN endstopG91 ; relative mode
G1 Z4 F200 ; lowers bed 4mm to avoid dragging nozzle over the bed
G90 ; back to absolute mode
G1 X150 Y150 F5000 ; 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;G91 ; relative mode again
;G1 Z-320 F200 S1 ; move up to 400mm in the -Z direction, stopping if the homing switch is triggered
;G1 Z2 F50 ; move slowly 2mm in the +Z direction
;G1 Z-10 S1 ; move slowly 10mm in the -Z direction, stopping at the homing switch;G90
-
i also have a G28 error: insufficient axes homed for bed probing
-
-
What was the value of the comand "G30 S-1" at your configuration (so after set z to 0 with paper + move 5 down + send G30 S-1)?
(I don't believe that this value is exactly 3mm, because in this line "G31 P500 X0 Y-33 Z3 ; set threshold and offsets" you told this your printer )
-
-
Home X and Y before bed probing, to avoid that error message.
-
Depending on the bed surface you are using, it may be reasonable for the sensor to trigger when the bottom edge is 3.45mm above the bed. So try using that value of 1.16mm that you measured as the Z parameter in your G31 command.
HTH David
-
-
5:44:38 PMG30 S-1
Error: Z probe already triggered at start of probing moveI CAN CHANGE THE Z OFFSET ALL I WANT AND IT DOESN'T CHANGE THE PRINTER IS MY PROBLEM
-
i changed ti here and still does the exact same thing the head is stopping about 1.16mm above the bed no matter what i do.
; Z probe
M558 P1 X0 Y0 Z1 H0 F200 T5000 R0 ; smart IR Z probe, used for homing Z axis only, dive height 3mm, probe speed 200mm/min, travel speed 4000mm/min, no recovery time
G31 P500 X152 Y-152 Z1.65 ; set threshold and offsets
; The following M557 commands are not needed if you are using a bed.g file to perform bed compensation
;*** Adjust the XY coordinates in the following M557 commands to suit your build and the position of the Z -
ok sorry. what do i need to change in my g code to get rid of my error sorry im not very good at this
-
6:50:16 PMG30 S-1
Stopped at height 0.707 mm -
6:52:05 PMG30 S-1
Error: Z probe was not triggered during probing move -
Check your M558 if it is correct in your config.g -> H0 ???
I can only tell you how it works for me and it does it without any problems:
- First I have homed my printer in all axes, where I have the endstops X min, Y min and Z max -> so my config.g = "M574 X1 Y1 Z2 U2 S1" (is built differently for you, so configured differently ). also i do NOT use my mini-ir as z endstop
Then I determined the distance with the procedure
-
drive the bed to center and Z about 10mm -> check indicator "probe" in the DWC (must be 0!)
-
manually move carefully in the direction of Z0 -> display "probe" in the dwc must indicate a value of about 465 when the nozzle come closer to the bed
-
drive further in the direction of Z0, the "probe" value must indicate about or over 535 (now your nozzle has only a little distance to the bed)
-
drive the bed back to approx. Z10
-
Send M558 P1
-
send G31 P500 Z1.0
-
manually push the printhead into the middle of the bed
-
manually approach Z0 with paper
-
set Z0 with G92 Z0
-
drive to bed position with G91 Z5
-
take the measurement with G30 S-1 (note: this value should be between 0.5 and 2.5!)
-
now send G31 P500 Zxxx (xxx= the value which is shown at the G30 S-1 command and write it in your config.g too!)
-
write the corect M558 in your config.g