Welcome! Log In Create A New Profile

Advanced

Newbie looking for some setup guidance...

Posted by ampapa 
Newbie looking for some setup guidance...
November 13, 2017 06:05PM
First post to the forum so excuse the newbieness here..

So, I've just finished building and wiring my CoreXY and I'm using a DuetWifi board but I'm having a few setup issues in regards to setting up the steppers correctly or at least that's what I think the problem is.

After modifying the config.g as recommended on the site DuetWifi CoreXY there is very little movement and all the axis seem to be moving at the same time.. very strange.

I'm using the following steppers (17hs19-2004s1) and all lights appear to correct on the Duet controller.

Here is a link to the motion Motion, in this case I was running from the control panel only a single axis at a time in increments of 100. When hitting the Z axis the carriage ran its best but it was the X axis it was moving and not the Z axis...

Any help or suggestions would be appreciated.

ampapa,

;*** Networking - Enable for both WiFi and Ethernet boards.
M552 S1									; Turn network on

;*** Ethernet networking: Adjust the IP address and gateway in the following 2 lines to suit your network
M552 P192.168.3.118						; (0 = DHCP)
M554 P192.168.3.9						; Gateway
M553 P255.255.255.0						; Netmask

M555 P2									; Set output to look like Marlin
G21										; Work in millimetres
G90										; Send absolute coordinates...
M83										; ...but relative extruder moves

; Disable Fan 1 thermostatic mode
M106 P1 H-1

; Axis and motor configuration
M667 S1                   ; switch to CoreXY mode
M569 P0 S0								; Drive 0 goes backwards
M569 P1 S0								; Drive 1 goes backwards
M569 P2 S1								; Drive 2 goes forwards
M569 P3 S1								; Drive 3 goes forwards
M569 P4 S1								; Drive 4 goes forwards
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 H250				; 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 Z16 E16:16 I1				; Set 16x microstepping with interpolation
M92 X80 Y80 Z80							; Set axis steps/mm
M906 X1000 Y1000 Z1000 E800 I60			; Set motor currents (mA) and increase idle current to 60%
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

; Thermistors
M305 P0 T100000 B3950 R4700 H30 L0		; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 T100000 B3974 R4700 H30 L0		; Put your own H and/or L values here to set first nozzle thermistor ADC correction
M305 P2 T100000 B3974 R4700 H30 L0		; Put your own H and/or L values here to set 2nd nozzle thermistor ADC correction

M570 S180								; Hot end may be a little slow to heat up so allow it 180 seconds

; Adjustments for J-heads used as dummy heaters on test rig
M307 H0 A250 C140 D5.5 B1
M307 H1 A250 C140 D5.5 B0
M307 H2 A250 C140 D5.5 B0

; Fans
M106 P1 S-1								; disable thermostatic mode for fan 1

; Tool definitions
M563 P0 D0 H1							; Define tool 0
G10 P0 S0 R0							; Set tool 0 operating and standby temperatures

;*** If you have a single-nozzle build, comment the next 2 lines
;M563 P1 D1 H2							; Define tool 1
;G10 P1 S0 R0							; Set tool 1 operating and standby temperatures
M92 E663:663							; Set extruder steps per mm

; Z probe and compensation definition
;*** If you have a switch instead of an IR probe, change P1 to P4 in the following M558 command
M558 P1 X0 Y0 Z0						; Z probe is an IR probe and is not used for homing any axes
G31 X0 Y0 Z4.80 P500					; Set the zprobe height and threshold (put your own values here)

;*** If you are using axis compensation, put the figures in the following command
M556 S78 X0 Y0 Z0						; Axis compensation here

M208 S1 Z-0.2							; set minimum Z

T0										; select first hot end

Re: Newbie looking for some setup guidance...
November 14, 2017 12:03AM
On the DuetWifi check closely, which stepper driver is label for X or Z. IIRC, the most left driver is for Z, then Y, then X, E0, E1
Re: Newbie looking for some setup guidance...
November 14, 2017 03:56AM
The thing that's really puzzling is that all the steppers are moving when only a single axis should be moving. All the lights on the board appear correct and there was no magic white smoke on startup so...



I was looking into the configurator, since I'm guessing that's where the problem is, and was curious why the Z axis by default is setup with 4000 steps and the XY are at 80, does that have to do with them being in series?




ampapa,
Re: Newbie looking for some setup guidance...
November 14, 2017 05:20AM
Your config.g file switches into CoreXY mode (M667), then later on it switches into delta printer mode (M665 and M666).

I suggest you use the configurator to generate the proper config.g and homing files for your printer, then upload the .zip file it generates through the Settings->General page of the web interface.

It's usual for the Z steps/mm to be higher than the XY steps/mm on Cartesian and CoreXY printers, because Z is typically driven by screws and XY are typically driven by belts. Nothing to do with whether you have 2 motors connected in series or not.


Delta printer calibration calculator, mini IR Z probe, and colour touch screen control panel: [escher3d.com]

Large delta printer, and other 3D printer blog postings: [miscsolutions.wordpress.com]

Disclosure: I have a financial interest in sales of the Panel Due, Mini IR height sensor, and Duet WiFi/Duet Ethernet [www.duet3d.com].
Re: Newbie looking for some setup guidance...
November 14, 2017 10:39AM
So I was following the guide at DuetWifi and there is no mention of commenting those lines out?

CoreXY config

When using the configurator what should be used for the steps per mm, is there a calculation to follow? For a newbie there are lots of questions that pop up when going through the configurator is it documented somewhere to be able to make decisions/choices?

Thanks.

ampapa,
Re: Newbie looking for some setup guidance...
November 15, 2017 02:40AM
The steps/mm figures depend on how you have built your printer. For belt driven X and Y, the formula is:

steps_per_mm = (microstepping * 200) / (pulley_teeth * belt_pitch)

If your printer uses GT2 belts and 20-tooth pulleys, then with x16 microstepping this comes to 80 steps/mm. Change the 200 to 400 if you are using 0.9deg motors.

For Z, if you are using leadscrew or threaded rod driven from the motor without reduction gearing, it is:

steps_per_mm = (microstepping * 200) / thread_lead

where thread_lead is the motion per complete revolution, and for single-start threads is the same as thread pitch.


Delta printer calibration calculator, mini IR Z probe, and colour touch screen control panel: [escher3d.com]

Large delta printer, and other 3D printer blog postings: [miscsolutions.wordpress.com]

Disclosure: I have a financial interest in sales of the Panel Due, Mini IR height sensor, and Duet WiFi/Duet Ethernet [www.duet3d.com].
Re: Newbie looking for some setup guidance...
November 15, 2017 04:19AM
So using the configurator I made a bit of progress but I’m experiencing some issues with the limit switches.

I believe the movements on each axis (300x300x325) are correct in length but the positioning within the axis is wrong.

If I power on the machine and connect to it via the control panel what should I expect when I hit the home X button? I would expect that the x axis should move towards the switch until it touches then bounce off of and stop.

So, how can I test what's happening and zero in on the problems as this is not happening.. since the software allows for homing of a single axis, I'll try the X axis first.

Here is the config.g and homex.g file from my setup.

B; Configuration file for Duet WiFi (firmware version 1.17 to 1.19)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Tue Nov 14 2017 17:05:20 GMT-0500 (Eastern Standard Time)

; General preferences
M111 S0 ; Debugging off
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M555 P1 ; Set firmware compatibility to look like RepRapFirmare

M667 S1 ; Select CoreXY mode
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X300 Y300 Z320 S0 ; Set axis maxima

; Endstops
M574 X1 Y2 Z1 S1 ; Set active high endstops
M558 P0 X0 Y0 Z0 H5 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
G31 P600 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
M557 X15:285 Y15:310 S20 ; Define mesh grid

; Drives
M569 P0 S0 ; Drive 0 goes backwards
M569 P1 S0 ; Drive 1 goes backwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X80 Y80 Z4000 E420 ; Set steps per mm
M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X6000 Y6000 Z180 E1200 ; Set maximum speeds (mm/min)
M201 X500 Y500 Z250 E250 ; Set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout

; Heaters
M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C

; 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

; Network
M550 PDuetPrinter ; Set machine name
M551 Ppassword ; Set password
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet

; Fans
M106 P0 S0.3 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 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

; Custom settings are not configured

; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool on Tue Nov 14 2017 17:05:20 GMT-0500 (Eastern Standard Time)

; Lift Z relative to current position
G91
G1 Z5 F6000
G90

; Move quickly to X axis endstop and stop there (first pass)
G1 X-300 F1800 S1

; Go back a few mm
G91
G1 X5 F6000
G90

; Move slowly to X axis endstop once more (second pass)
G1 X-300 F360 S1

; Lower Z again
G91
G1 Z-5 F6000
G90
Re: Newbie looking for some setup guidance...
November 15, 2017 05:21AM
You posted a similar question on the Duet3D forum, and I have just replied to that one.


Delta printer calibration calculator, mini IR Z probe, and colour touch screen control panel: [escher3d.com]

Large delta printer, and other 3D printer blog postings: [miscsolutions.wordpress.com]

Disclosure: I have a financial interest in sales of the Panel Due, Mini IR height sensor, and Duet WiFi/Duet Ethernet [www.duet3d.com].
Re: Newbie looking for some setup guidance...
November 15, 2017 03:07PM
The homing process is still a flop.. not sure what's going on but certainly not making any headway. So trying to isolate the problem here by simply homing the Xaxis only, I assume this can be done on a CoreXY setup?

; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool on Tue Nov 14 2017 17:05:20 GMT-0500 (Eastern Standard Time)

G91                ; relative positioning
G1 X-305 F2000 S1    ; move to limit
G1 X5 F600
G1 X-10 F100 S1
G1 X6 F2000 ; Offset to correct zero position.
G90                 ; absolute positioning
G92 X0


After connecting to the Duet and pushing the button HomeX this is the outcome. So where should I start looking for the problem?

Here is a link to the video:
X axis homing

Current file list in /sys
file

Edited 1 time(s). Last edit at 11/15/2017 03:13PM by ampapa.
Re: Newbie looking for some setup guidance...
November 15, 2017 03:21PM
I've just replied to your similar question on Duet3D.com again.


Delta printer calibration calculator, mini IR Z probe, and colour touch screen control panel: [escher3d.com]

Large delta printer, and other 3D printer blog postings: [miscsolutions.wordpress.com]

Disclosure: I have a financial interest in sales of the Panel Due, Mini IR height sensor, and Duet WiFi/Duet Ethernet [www.duet3d.com].
Re: Newbie looking for some setup guidance...
November 16, 2017 01:10PM
Just to close the loop on this issue... posted from the Duet Forum.

DC42,

Thanks for your insight as ultimately the switch wiring and the machine properties page got me squared away. My newness overlooked that the Properties End Stop message said "EndStop Hit" was "yes" for all the axes..

Ultimately the problem was not that the switches were incorrectly wired, since the board had the 3.3v green light lit, but that the Gcode for the switches was set to normally closed and the switches are normally open.

; Endstops
M574 X1 Y2 Z1 S1 ; Set active high endstops
modified to:
; Endstops
M574 X1 Y2 Z1 S0 ; Set active high endstops

Edited 2 time(s). Last edit at 11/16/2017 01:11PM by ampapa.
Re: Newbie looking for some setup guidance...
November 19, 2017 05:24AM
I never thought I'd be so happy just to get my machine homing correctly.. I didn't have this much problem when building my CNC.

Anyway she's now homing correctly 3D Printer homing after having to muddle through the gcode.

I guess I'll use this thread as more of a build log because I've got lots of questions as I try to understand the inner workings of 3D printing along with the gcode needed to use the Duet board.

I'm trying to understand the gcode here and what exactly its doing if anyone can lend some insight that would be great.

Based on the coordinate system I'm using which I think is what all coreXY users have, correct me if I'm wrong there, can someone help me understand what's happening with this block..




G91                ; relative positioning
G1 X-305 F2000 S1    ; move to limit
G1 X5 F600
G1 X-10 F100 S1
G1 X6 F2000 ; Offset to correct zero position.
G90                 ; absolute positioning
G92 X0

What is G91 doing, why use it before moving an axis?
G91                ; relative positioning

When an S1 is sent, what happens when it hits a switch?
G1 X-305 F2000 S1    ; move to limit

Why put G90 back in?
G90                 ; absolute positioning

Does G92 set the x-cordinate to 0 after the move to X6. I'm assuming this is now the 0 coordinate of the print bed? Should all the axis be set the same in terms of the coordinate s 0,0,0?
G1 X6 F2000 ; Offset to correct zero position
G92 X0

Thanks.

ampapa,
Re: Newbie looking for some setup guidance...
November 19, 2017 06:45AM
Here you'll find all the answers. Worth adding the link to your address book.
There's also the Duet Wiki, that explains all the RRF-relevant gcodes too.
Re: Newbie looking for some setup guidance...
November 19, 2017 09:29AM
Thanks o_Lampe but I was hoping for a little more layman terms explanation than just the technical aspects.

I mean, why change to G91 when homing? and why add an S1 on the end of a homing move?

ampapa,
Re: Newbie looking for some setup guidance...
November 19, 2017 12:42PM
Quote
ampapa
Thanks o_Lampe but I was hoping for a little more layman terms explanation than just the technical aspects.

I mean, why change to G91 when homing? and why add an S1 on the end of a homing move?

ampapa,

Relative positioning means move nnn millimetres from wherever the print head is now. Absolute positioning is still relative but it's relative to the axis zero point. e.g. If you use G91 to set the coordinates to relative, then do G1 X10, it will move the print head 10mm to the right or wherever it happened to be. If you start with G90 to set the coordinates to absolute, then it will move the print head to a position 10mm from X=0, so 10mm in from the far left. By way of further explanation, if the head was say half way along the X axis and the X axis was 200 mm long, it would be 100mm along the X axis. So G91 followed by G1 X 10 will move the head 10mm to the right to 110 mm along the axis. If instead we used G90 (absolute) followed by G1 X10, then the head would move 90mm to the left to a position 10mm along the axis.

When you first turn on the printer, it doesn't know where the hell it is. Anyone could have come along and moved the print head by hand while the machine was turned off. So, we need to use some mechanism for the printer to "learn" where the print head is along the X Y and Z axes. This is called homing. Because the printer doesn't know where it is and the head could be anywhere, it's no use starting with absolute coordinates. I.e you can't move to 10mm to the right of X=0 if you don't know where X=0 is to start with. So we start by using relative and the first line of you homing file is to move 305mm to the left of wherever it is to start with (G91 followed by G1 X-305).

This brings me nicely to the S1. This tells the printer to stop when it sees the homing switch trigger. You can leave it out if you like but then the head will try to keep going 305mm to the left regardless.If it started at 50mm from the left hand edge, then it leads to nasty crunching noises, motor skipping, belts jumping, possibly stripped teeth, frame buckling, and all sorts of other undesirable effects.

So once we have established where the zero points of all the axes are, then we can use absolute positioning. In fact it's much more desirable because if we command the printer to go to the position X=300, it will go to the position 300 mm to the right of X=0. If we kept it at relative, it would go 300 mm to the right of where it was when we issued the command and if it happened to be say 200mm along the X axis, it would try to go to X=500 which leads to the nasty crunching noises and other nasty things that I mentioned before.

Is that Layman enough? smiling smiley

Edited 1 time(s). Last edit at 11/19/2017 12:45PM by deckingman.

[somei3deas.wordpress.com]
Re: Newbie looking for some setup guidance...
November 19, 2017 06:16PM
Very appreciative Deckigman, absolute and relative positioning throws me...

The S1 command makes total sense and since I was just faced with some switch issues I can confirm the grinding and belt noise ;-( Once the machine has been homed will at any touch of a switch cause the machine to stop, fault as it will?

In the below code, could I throw in the Y and Z axis homing before submitting a G90?

G91                ; relative positioning
G1 X-305 F2000 S1    ; move to limit
G1 X5 F600
G1 X-10 F100 S1
G1 X6 F2000 ; Offset to correct zero position.
G90                 ; absolute positioning


ampapa,
Re: Newbie looking for some setup guidance...
November 19, 2017 11:24PM
Quote
ampapa
...
In the below code, could I throw in the Y and Z axis homing before submitting a G90?

G91                ; relative positioning
G1 X-305 F2000 S1    ; move to limit
G1 X5 F600
G1 X-10 F100 S1
G1 X6 F2000 ; Offset to correct zero position.
G90                 ; absolute positioning


ampapa,

That's exactly what you should do in the homeall.g file. See [duet3d.com].


Delta printer calibration calculator, mini IR Z probe, and colour touch screen control panel: [escher3d.com]

Large delta printer, and other 3D printer blog postings: [miscsolutions.wordpress.com]

Disclosure: I have a financial interest in sales of the Panel Due, Mini IR height sensor, and Duet WiFi/Duet Ethernet [www.duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login