Solved [Problem] Homing Z works with Macro but not with Home Buttons
-
Hi,
I use an inductive Z probe sensor (NPN) which seems to work with the specific connection (Z_Probe_In, GND, 12V VIN) as displayed on my web interface (I do not have Panel Due).
When not trigerred, Z probe value is 0. When trigerred, it is 1000 (and is set as the trigerring value).
When I run the macro Test_01 for homing, the Z homing movement is stopped when the probe is close enough with a metal part to trigger itself. So it seems to work fine.
But when I use the home Z command button on web interface (after X and Y homing were done), the movement still goes on when and after the probe is trigerred (trigerring effective on web interface).
It happens too with Home All command buttonI read in the macro file a G1 is used (with S1 parameter) for testing, whereas in homez and homeall it is G30 which is used.
0_1544528348045_config.g
I set M558 like that "P5 I1 H5 F500 T2000"
At the end of config.g I added a "M564 H0" to do not have a problem with "not enough homed axis".For information, I used the configurator from https://configurator.reprapfirmware.org/ to make the files for a cartesian printer.
Here are the homing files I have currently:
1_1544528728527_homeall.g 0_1544528728526_homez.gI did not touch macro files.
Can you help me?
-
@tommy_fr You can use whatever commands you like in homez and homeall. You don't have to use G30. If your test macro works fine, then just use those commands in homez and homeall.
-
Can you post the contents of your test homing macro?
You can do as Deckingman says and just replace your homing files with the contents of that test macro, but that won't help you if you ever want to use G30 elsewhere, say for mesh grid bed leveling, etc.
You may want to review the information here: https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe
-
Hi,
Thank you both for your answers.
I replaced homez.g and homeall.g Z probe command G30 with Macro_01 file command G1 S1 Z3200 F9000 (I just deleted Xnnnn Ynnnn). It now works.@phaedrux said in [Problem] Homing Z works with Macro but not with Home Buttons:
Can you post the contents of your test homing macro?
Here it is:
0_1544630685917_01-Test_IR_PD_Homing.g -
Which firmware version?
-
Firmware Electronics: Duet WiFi 1.04 (bought from one of the official Duet suppliers)
Firmware Version: 2.01(RTOS) (2018-07-26b2)
WiFi Server Version: 1.21
Web Interface Version: 1.21.2-dc42 -
I have a fairly complex home z operation, so I put all of it in homez.g and then I call that from homeall.g -- that's simple -- in fact in my homeall.g I simply have
M280 P5 S160
G91
G1 Z4 F200 S2
M98 Phomeaxis.g
G90
M98 Phomez.gso I can make whatever adjustments I need in each script for doing homing
-
I noticed what you said @kazolar .
I fixed toward direction for my Z axis to be rightful and easier to understand. It now goes in right direction (forward goes up, with Z increasing).
When I use G30, G30 S-1 or G30 S-2, movement is in the wrong direction (so upward instead of downward); before the toward change for my Z axis it was going downward.
So G30 direction and stop while probe is triggering does not work. -
@tommy_fr said in [Problem] Homing Z works with Macro but not with Home Buttons:
I fixed toward direction for my Z axis to be rightful and easier to understand. It now goes in right direction (forward goes up, with Z increasing).
Increasing positive Z must be the nozzle moving upwards or the bed moving downwards, so that the Z coordinate is the height of the nozzle above the bed.
-
Yes, it was what I meant. Sorry if my english was incorrect. The nozzle is moving upwards with increasing positive Z.
-
@tommy_fr said in [Problem] Homing Z works with Macro but not with Home Buttons:
Yes, it was what I meant. Sorry if my english was incorrect. The nozzle is moving upwards with increasing positive Z.
In that case, I don't understand how G30 commands can be moving in the wrong direction; except that some variations of G30 command move the nozzle t the dive height (M558 H parameter) first, and all G30 commands move the nozzle back to the dive height after probing.
Have you tested the Z probe as described at https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe ?
-
M558 H parameter was H5, I have changed it to 1 to try, and there is no difference.
Yes, I have tested Z as described at https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe.But I wonder if there is a scale issue, because on DWC I have that for machine control:
It is normal X and Y lines have different values from Z line.
And when I click, for example, on Z+5, nozzle moves five times more longer away than on X+10.
So, is there a scale issue?UPDATE: I edited my config.g file and changed Z steps per mm which was totally wrong (I set a M5 lead screw system instead of a M8, but value was still incorrect, changing from 4000 to 2560, I finally changed it to 400 which seems to be right or close of the rightful value). Z line on DWC did not change but movement matches more with the first both lines, X and Y.
-
So does Z homing work now?
-
@dc42 said in [Problem] Homing Z works with Macro but not with Home Buttons:
So does Z homing work now?
I just tried with g30 and it seems to work now. I will do further tests in the few coming day.
-
I tested it within several ways, which with bed compensation and it works great.
Thank you to @dc42.You can mark it as solved.