Z axis homing problem
-
Hi, i am building a printer, i already have the configuration files for that printer, but there is one issue.
After homing the z axis, i can move it only in the direction of the head (in this printer the bed goes up and down) so i can't work with it. Can you please help me to solve this? I will add video of the problem and the config file.This is the video:
https://drive.google.com/file/d/17oy-HT4kY1JTtBRpldjHiAvjln2T5XJX/view?usp=drivesdkAnd this is the config:
; Stepper Driver configurations M584 X0 U5 Y1 Z2 E3:4; Set custom drive mapping M569 P0 S0; Set stepper driver 0 (P0) to Spin Backwards (S0) [X] M569 P1 S0; Set stepper driver 1 (P1) to Spin Forward (S1) [Y] M569 P2 S1; Set stepper driver 2 (P2) to Spin Backwards (S0) [Z] M569 P5 S1; Set stepper driver 5 (P7) to Spin Forward (S1) [U] M569 P3 S1; Set stepper driver 3 (P3) to Spin Forward (S1) [E0] M569 P4 S0; Set stepper driver 4 (P4) to Spin Backwards (S0) [E1] M350 X16 U16 V16 W16 Y16 Z16 E16:16:16:16 I0; Configure microstepping (x16), Interpolation disabled (I0) ; Motors configurations M906 X1200 U1200 V1200 W1200 Y1200 Z1400 E800:800:800:800 I15; Set motors currents (mA) and motors idle factor to 15% (Inn) M84 S30; Idle the stepper motors after 30 seconds of inactivity M92 X71.111 U71.111 V71.111 W71.111 Y71.111 Z800; Set axis steps-per-mm (X,Y Pully 15[teeth], pitch 3[mm])(Z leadscrew pitch 4[mm/rev]) M564 H0 M92 E1540:1540:1540:1540; Set extruder steps-per-mm (Cobra water, Gear ratio 1:13.76, Hobb gear diameter 9.57[mm]) ; Kinematics configurations M201 X6000 U6000 V6000 W6000 Y6000 Z600 E600:600:600:600; Set accelerations (mm/s^2) M204 P5000 T5000; Set print and travel accelrations [mm/s^2] M566 X840 U840 V840 W840 Y840 Z840 E120:120:120:120; Set maximum instantaneous speed changes (mm/min) M203 X15000 U15000 V15000 W15000 Y15000 Z960 E1800:1800:1800:1800; Set Maximum speeds (mm/min) ; Travel configuration M208 X-59 Y-163 U-126 V-198 W-268 Z-2.0 S1; Set axis minimal travel (S1) M208 X272 Y137 U205 V133 W63 Z183 S0; Set axis maximal travel (S0) ; Endstops configuration M574 X2 U2 V2 W2 Y1 S1; Xmin, Umin, Vmin, Wmin, Ymax, Active HIGH microswitches M574 Z1 S1; Zmax, Active HIGH microswitch ; Motor stall detection ;M915 P0 X S63; ; Z Probe configurations M558 P1 Z0 F240 H1 T5400; Set Z probe type to IR probe (P1), homing Z axis (Z0), Feed rate 4[mm/sec] (F240), Dive height 1[mm] (H1), Travel speed between points 90[mm/sec] (T5400), G31 X33 Y35.6 Z0.5 P500; Set the probe offset on X axis (Xn), set Z probe trigger height (Zn), set probe output value at trigger height (P500) M557 X30:180 Y50:220 S30; Set probing grid for Auto Bed Leveling using G29 command, X(min:max) Y(min:max) S(Spacing) ; Temperature sensor and heaters configurations ; Bed M305 P0 T94740 B4233 R4700 L0 H0; Set (Bed) Heater 0 (P0), thermistor resistance in 25[deg] (T94573), Beta value (B4230), series resistor value (R4700) M307 H0 A104.4 C1006 D1.0 S1.0; Set heating process parameters, Heater 0 (H0)(Bed), Gain (Annn), Time const (Cnnn), Dead time (Dnn), M143 H0 S140; Set Heater 0 (H0)(Bed), maximum temperature to 140[deg-Celsius] ;M570 H0 P60 T25; Configure heater fault detection ; Extruder E0 (Paired to X-Axis) M305 P1 T94740 B4233 R4700 L0 H0; Set Heater 1 (P1), thermistor resistance in 25[deg] (T94573), Beta value (B4230), series resistor value (R4700) M307 H1 A439 C115.1 D3.5 S1.0; Set Heater 1 (H1) (Extruder E0), Gain (A), Const time, Dead time 20[sec] (D20), max PWM 100% (S1.0) M143 H1 S350; Set Heater 1 maximum temperature M570 H1 P30 T90; Configure heater fault detection Time in seconds for which a temperature anomaly must persist, Permitted temperature excursion from the setpoint ; Extruder E1 (Paired to U-Axis) M305 P2 T94740 B4233 R4700 L0 H0; Set Heater (P2), thermistor resistance in 25[deg] (T94573), Beta value (B4230), series resistor value (R4700) M307 H2 A284.6 C82.4 D4.6 S1.0; Set Heater 2 (H2), Gain (A), Const time, Dead time 20[sec] (D20), max PWM 100% (S1.0) M143 H2 S350; Set maximum Heater 2 temperature ;Configure heater fault detection, Heater number, Time in seconds for which a temperature anomaly must persist, Permitted temperature excursion from the setpoint M570 H2 P30 T90; ; Extruder E2 (Paired to V-Axis) M305 P3 T94740 B4233 R4700 L0 H0; Set Heater (P3), thermistor resistance in 25[deg] (T94573), Beta value (B4230), series resistor value (R4700) M307 H3 A191.4 C61.6 D5.5 S1.0; Set Heater 3 (H3), Gain (A), Const time, Dead time 20[sec] (D20), max PWM 100% (S1.0) M143 H3 S280; Set maximum Heater 3 temperature ;Configure heater fault detection, Heater number, Time in seconds for which a temperature anomaly must persist, Permitted temperature excursion from the setpoint M570 H3 P30 T90; ; Extruder E3 (Paired to W-Axis) M305 P4 T94740 B4233 R4700 L0 H0; Set Heater (P4), thermistor resistance in 25[deg] (T94573), Beta value (B4230), series resistor value (R4700) M307 H4 A191.4 C61.6 D5.5 S1.0; Set Heater 4 (H4), Gain (A), Const time, Dead time 20[sec] (D20), max PWM 100% (S1.0) M143 H4 S280; Set maximum Heater 2 temperature ;Configure heater fault detection, Heater number, Time in seconds for which a temperature anomaly must persist, Permitted temperature excursion from the setpoint M570 H4 P30 T90; ;M135 S200; Set PID sample interval [ms] (Sn) ; Fans output configurations M106 P0 S1 F100 H1 T150; Set Fan 0 output (P0), Set to On (S1), Freq 100, Thermostatic control to Heater1, Activte at 150[deg] M106 P1 S1 F100 H2 T150; Set Fan 1 output (P1), Set to On (S1), Freq 100, Thermostatic control to Heater2, Activte at 150[deg], Blip M106 P2 S0 F100 H-1; Set Fan 2 output M106 P3 S1 F100 H3 T150; Set Fan 3 output (P3), Set to On (S1), Freq 100, Thermostatic ccontrol to Heater3, Activte at 150[deg] M106 P4 S1 F100 H4 T150; Set Fan 4 output (P4), Set to On (S1), Freq 100, Thermostatic ccontrol to Heater3, Activte at 150[deg] M106 P5 S0 F100 H-1; Set Fan 5 output M106 P6 S0 F100 H-1; Set Fan 6 output M106 P7 S0 F100 H-1; Set Fan 7 output M106 P8 S0 F100 H-1; Set Fan 8 output ; Tools M563 S"X" P0 D0 H1 F5; Create Tool 0 (P0), using Extruder drive 0 (D0), using Heater 1, using Fan5 G10 P0 X0 Y0 R0 S0; Set tool 0 axis offsets, active and standby temperatures to 0C M563 S"U" P1 D1 X3 H2 F6; Create Tool 1 (P1), using Extruder drive 1 (D1), using Heater 2, using Fan6, X-axis movement mapped to U G10 P1 U0 Y0 R0 S0; Set tool 1 axis offsets, active and standby temperatures to 0C M563 S"V" P2 D2 X4 H3 F7; Create Tool 2 (P2), using Extruder drive 2 (D2), using Heater 3, using Fan7, X-axis movement mapped to V G10 P2 V0 Y0 R0 S0; Set tool 2 axis offsets, active and standby temperatures to 0C M563 S"W" P3 D3 X5 H4 F8; Create Tool 3 (P3), using Extruder drive 3 (D3), using Heater 4, using Fan8, X-axis movement mapped to W G10 P3 W0 Y0 R0 S0; Set tool 3 axis offsets, active and standby temperatures to 0C M98 Phomeall.g; Calls to the file homeall.g T0; Select Tool 0 M302 P0; Dont allow cold extrusion M564 H0; Allow axis movement before homing on M291 R"Printer initilzing completed" P"Printer ready" S2 M501
-
Can you please post the results of M122 and M98 P"config.g"?
Also please post your homing files.M574 Z1 S1; Zmax,
This says zmax, but Z1 means Zmin. Where is the endstop physically located?M98 Phomeall.g; Calls to the file homeall.g
Also you should not execute any movement macros or commands in config.g since it gets executed at startup. This could have some very bad consequences. -
The z end stop is on the top of the printer, when i homing the bed goes up till it touch the endstop. The endstop is in the 0 location (up), and the max is 183 (down).
Actually, like cube corexy... -
Ok, than the command is correct, and the comment is wrong.
Will need to see the other things I've asked for to understand what may be happening though.
-
9:27:17 PMM122 === Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 2.01(RTOS) running on Duet Ethernet 1.02 or later + DueX2 Board ID: 08DGM-956GU-DJMSN-6J9D4-3S86R-1BRMG Used output buffers: 3 of 20 (16 max) === RTOS === Static ram: 28476 Dynamic ram: 96376 of which 0 recycled Exception stack ram used: 360 Never used ram: 5860 Tasks: NETWORK(ready,328) HEAT(blocked,872) MAIN(running,3540) Owned mutexes: === Platform === Last reset 00:16:02 ago, cause: reset button or watchdog Last software reset at 2021-02-03 21:11, reason: User, spinning module GCodes, available RAM 5836 bytes (slot 1) Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00417000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d Error status: 0 Free file entries: 10 SD card 0 detected, interface speed: 20.0MBytes/sec SD card longest block write time: 0.0ms, max retries 0 MCU temperature: min 31.0, current 32.6, max 33.1 Supply voltage: min 24.3, current 24.5, max 24.6, under voltage events: 0, over voltage events: 0 Driver 0: standstill, SG min/max 0/1 Driver 1: standstill, SG min/max not available Driver 2: standstill, SG min/max 0/472 Driver 3: standstill, SG min/max not available Driver 4: standstill, SG min/max not available Driver 5: standstill, SG min/max not available Driver 6: standstill, SG min/max not available Expansion motor(s) stall indication: no Date/time: 2021-02-03 21:27:17 Slowest loop: 10.86ms; fastest: 0.08ms === Move === Hiccups: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm: 238, MaxWait: 194711ms, Underruns: 0, 0 Scheduled moves: 15, completed moves: 15 Bed compensation in use: none Bed probe heights: 0.000 0.000 0.000 0.000 0.000 === Heat === Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1 Heater 1 is on, I-accum = 0.0 === GCodes === Segments left: 0 Stack records: 3 allocated, 0 in use Movement lock held by null http is idle in state(s) 0 telnet is idle in state(s) 0 file is idle in state(s) 0 serial is idle in state(s) 0 aux is idle in state(s) 0 daemon is idle in state(s) 0 queue is idle in state(s) 0 autopause is idle in state(s) 0 Code queue is empty. === Network === Slowest loop: 12.65ms; fastest: 0.02ms Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) HTTP sessions: 1 of 8 Interface state: 5 === Expansion === DueX I2C errors 0
9:33:31 PMError: M563: Tool creation: bad drive number Error: G10: Attempt to set/report offsets and temperatures for non-existent tool: 2 Error: M563: Tool creation: bad drive number Error: G10: Attempt to set/report offsets and temperatures for non-existent tool: 3
-
@agf998 said in Z axis homing problem:
RepRapFirmware for Duet 2 WiFi/Ethernet version 2.01(RTOS) running on Duet Ethernet 1.02 or later + DueX2
That firmware is quite out of date at this point. Just about 3 years.
I would suggest that our first step is updating the firmware to at least 2.05.1. This would get you at least on the most recent V2 firmware and won't require any config changes like the update to V3 would. Though I would suggest that since this is a new build it's probably a good idea to update to V3 and start with a fresh config from the config tool, and then manually updating the config to suit your printer. This would also resolve the errors with your tools.
If you still have access to DWC. Upload these 3 zip files, one at a time in the system tab. Don't extract them. Reboot after each. Use M115 to verify the firmware has been applied.
https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
https://github.com/Duet3D/RepRapFirmware/releases/download/3.2/Duet2and3Firmware-3.2.zip
That will get your firmware and DWC up to date.For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
https://configtool.reprapfirmware.org/Start