Fitting a duetwifi into a Wanhao D6
-
So some dumb Qs, the Wanhao D6 is a cartesian type printer?
-
Wiring is mostly done. Pt100 daughter-board not installed so no hotend temp. Bed says 17C which sounds right. limits switches are all NO so Ive set that OK?
As,
M574 X2 Y2 Z2 S0 ; set endstop configuration D6 normally open - ssj
?
I want to get it moving….but,
I need to set X and Y zero and stops as being the front, left hand side point of the bed, cant see how to do that yet.
I need to set the bed as 190x190mm from the front lhs point ,
I need to set Z as zero as maximum up and travel 170mm down.
So,
M208 X190 Y190 Z-170 ?
or is Z just "170"?
-
duetWifi networking
I want to set a static IP so,
;*** Wifi Networking
M552 S1 P192.168.1.127 ; Enable WiFi set static IP.
M553 P255.255.255.0 ; set netmask
M554 P192.168.1.1 ; set gatewayis OK?
-
if i stuff up networking i have to re-install the sdcard?
-
hmm OK so all 3 axis all went the wrong way…..bugger...still at least it moved and didnt explode!
-
uh when I move any axis say 10mm th head moves in three dimensions????
-
Uh removed the delta setting?
; M665 R105.6 L215.0 B85 H240 ; set delta radius, diagonal rod length, printable radius and homed height
So X and Y look OK Z is scaled wrong 100mm moves maybe 10mm but now it wont home?
I get,
G28
Macro file homeall.g not found.
-
As an aside the wanhao motherboards axis movement seemed "rough" this movement just seems like silk….or maybe its just my imagination...lol
-
config file so far,
========
; Configuration file for Mini Kossel kit from Think3DPrint3D for testing Duet WiFi; Communication and general
M111 S0 ; Debug off
M550 D6 ; Machine name and Netbios name (can be anything you like)
M551 Preprap ; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Wifi Networking
M552 S1 ; Enable WiFi set static IP.
; M552 S1 P192.168.1.127 ; Enable WiFi set static IP.
; M553 P255.255.255.0 ; set netmask
; M554 P192.168.1.1 ; set gatewayM555 P2 ; Set output to look like Marlin
M575 P1 B57600 S1 ; Comms parameters for PanelDueG21 ; Work in millimetres
G90 ; Send absolute coordinates…
M83 ; ...but relative extruder moves; Axis and motor configuration
M569 P0 S0 ; Drive 0 goes forwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S0 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
M574 X2 Y2 Z2 S0 ; set endstop configuration D6 normally open - ssj
; M574 X2 Y2 Z2 S1 ; set endstop configuration (all endstops at high end, active high)
;*** The homed height is deliberately set too high in the following - you will adjust it during calibration
; M665 R105.6 L215.0 B85 H240 ; set delta radius, diagonal rod length, printable radius and homed height
M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them
M350 X16 Y16 E16 I1 ; Set 16x microstepping with interpolation
M92 X80.4 Y80.4 Z800 ; Set axis steps/mm
M906 X1000 Y1000 Z1000 E800 I60 ; Set motor currents (mA) and increase idle current to 60%
M201 X1000 Y1000 Z100 E1000 ; Accelerations (mm/s^2)
M203 X20000 Y20000 Z2000 E3600 ; Maximum speeds (mm/min)
M566 X1200 Y1200 Z1200 E1200 ; Maximum instant speed changes mm/minute
; M201 X1000 Y1000 Z1000 E1000 ; Accelerations (mm/s^2)
; M203 X20000 Y20000 Z20000 E3600 ; Maximum speeds (mm/min)
; M566 X1200 Y1200 Z1200 E1200 ; Maximum instant speed changes mm/minute
M208 X190 Y190 Z170 ; set bed dimensions ssj
8><------- -
Looks like you are making progress, however I suggest you use https://configurator.reprapfirmware.org to generate a new config.g file and homing files.
Static ip does not work yet on the Duet WiFi.
-
M574 X0 Z0 Y0 S0 ; Define active low and unused microswitches
what does this actually mean in plain english please?
or where can i find this sort of thing?
I have NOpen switches so S0 is right?
does X0 mean its unused so I should have X1? indeed 1 for all of them?
really this stuff doesnt explain anything…..
-
http://reprap.org/wiki/G-code#M574:_Set_endstop_configuration
I just found this page recently, and everything is spelled out pretty well there
Parameters
Xnnn Switch type for X axis
Ynnn Switch type for Y axis
Znnn Switch type for Z axis
E Select extruder endstops to define active high or low
Snnn Logic level
Example
M574 X1 Y2 Z0 S1
This defines the type of endstop switch or opto sensor that the printer has for each axis: 0 = none, 1 = low end, 2 = high end. The optional S parameter defines whether the endstop input is active high (S1, the default) or low (S0). Intended for use with boards that provide a single endstop input for each axis that may be used for either a high or a low end endstop, such as the Duet. Supported by RepRapFirmware. On delta printers, the XYZ parameters refer to the towers and the endstops should normally all be high end. For the extruders endstops, S0 is for active low and S1 for active high. M574 E S1 select active high (used when endstop is a Z-probe, needed from v.1.14) - for all extruder endstops -
Have a look at the M574 description:
http://reprap.org/wiki/G-code#M574:_Set_endstop_configurationThe S parameters says if the endstop is active low (S0) or high (S1). Active high, normally closed, are safer as most failure modes result in them failing as triggered. Assuming you have active high end stops this example will use S1 but you need to check what you have.
So if you have endstops on X and Y, but a probe not an endstop on Z, and the endstops are triggered at X Min and Y Min then you would use
M574 X1 Y1 Z0 S1
Or if you have endstops on all 3 axis minimum then:
M574 X1 Y1 Z1 S1
If you have endstops at Max instead of Min then:
M574 X2 Y2 Z2 S1
You should also check M208:
http://reprap.org/wiki/G-code#M208:_Set_axis_max_travelAs that is useful for setting what Max (and Min if <0) distances each of the printer axis are.
-
So I have Xmoving and homing perfectly.
Y moved fine but when I hit home it moves the wrong way, back towards the rear of the printer and not forward.
I cant see how to fix this, so how do I fix this please?
-
I have set M208,
M208 X190 Y190 Z170 ; set bed dimensions ssj
-
programming, i knew this would be the hard part ;(
-
ok so homey.g was 200 when it should have been -200
So Y is now good.
Z moves the right way, (up) but ignores its end stop switch, ho hum, led lights so switch and circuit are ok.
so Y has stopped doing the fast initial movement….weird.....so Y is now broken....odd
-
Ok so the web config tool's default was a probe and not a switch removed that so Z is done.
-
So to "fix" Y I set the -200 back to 200, tried it, was backwards again. Set it back to -200 and saved and its works. I am finding this behavior odd, buggy in fact.
-
Ok so basic homing is probably fixed, really the config tool was more of a hindrance….imho.
anyone have some good tutorials i can watch / read please? thanks.