repetier / Repetier-Firmware

Firmware for Arduino based RepRap 3D printer.
813 stars 734 forks source link

Z probing on a corexy setup #233

Open 3ntrlab opened 10 years ago

3ntrlab commented 10 years ago

Hello All, I am trying to implement 0.91 z probing on a working corexy printer

define DRIVE_SYSTEM 2

...that so far is working smoothly. Homing, and print movements are OK.

The probing parameters are the following

define FEATURE_Z_PROBE true

define Z_PROBE_PIN 37

define Z_PROBE_PULLUP true

define Z_PROBE_ON_HIGH true

define Z_PROBE_X_OFFSET 0

define Z_PROBE_Y_OFFSET 0

define Z_PROBE_WAIT_BEFORE_TEST false

define Z_PROBE_SPEED 5

define Z_PROBE_XY_SPEED 150

define Z_PROBE_SWITCHING_DISTANCE 1.5

define Z_PROBE_REPETITIONS 5

define Z_PROBE_HEIGHT 39.91

define Z_PROBE_START_SCRIPT "M340 P0 S2180"

define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500"

define FEATURE_AUTOLEVEL true

define Z_PROBE_X1 150

define Z_PROBE_Y1 150

define Z_PROBE_X2 250

define Z_PROBE_Y2 250

define Z_PROBE_X3 350

define Z_PROBE_Y3 250

So far it, I've been able to see G30 to work just once. The next time I tried, got a "0.0 z height" message.

Tried G32 Sx, and each time it tries to reach negative Y positions (while my system doesn ask for it: #define Y_MIN_POS 0).

I am increasing

define EEPROM_MODE 55

at each compile, to be sure I don't have "dirty" parameters around.

Am I missing anything ? Or I have hit a problem with the code ?

Best Regards Davide Ardizzoia

repetier commented 10 years ago

Hi,

first test if the probe itself is working properly. If it always says 0.0 it sounds like it gets permanently triggered. Try G31 and see what signal it sends and if it changes if you trigger it by hand and release it. Maybe the pullup is wrong and you need none or invert the signal? What kind of probe are you using?

With the wrong coordinates on G32 please check wat is really sored in eeprom. I've seen that it should get overwritten with new EEPROM_MODE but you never know. Perhaps I have an error in the logic I haven't seen yet.

Yours Roland Littwin

Am 24.01.14 17:33, schrieb 3ntr labs:

Hello All, I am trying to implement 0.91 z probing on a working corexy printer

define DRIVE_SYSTEM 2

...that so far is working smoothly. Homing, and print movements are OK.

The probing parameters are the following

define FEATURE_Z_PROBE true

define Z_PROBE_PIN 37

define Z_PROBE_PULLUP true

define Z_PROBE_ON_HIGH true

define Z_PROBE_X_OFFSET 0

define Z_PROBE_Y_OFFSET 0

define Z_PROBE_WAIT_BEFORE_TEST false

define Z_PROBE_SPEED 5

define Z_PROBE_XY_SPEED 150

define Z_PROBE_SWITCHING_DISTANCE 1.5

define Z_PROBE_REPETITIONS 5

define Z_PROBE_HEIGHT 39.91

define Z_PROBE_START_SCRIPT "M340 P0 S2180"

define Z_PROBE_FINISHED_SCRIPT "M340 P0 S500"

define FEATURE_AUTOLEVEL true

define Z_PROBE_X1 150

define Z_PROBE_Y1 150

define Z_PROBE_X2 250

define Z_PROBE_Y2 250

define Z_PROBE_X3 350

define Z_PROBE_Y3 250

So far it, I've been able to see G30 to work just once. The next time I tried, got a "0.0 z height" message.

Tried G32 Sx, and each time it tries to reach negative Y positions (while my system doesn ask for it: #define Y_MIN_POS 0).

I am increasing

define EEPROM_MODE 55

at each compile, to be sure I don't have "dirty" parameters around.

Am I missing anything ? Or I have hit a problem with the code ?

Best Regards Davide Ardizzoia

— Reply to this email directly or view it on GitHub https://github.com/repetier/Repetier-Firmware/issues/233.

Mit freundlichen Grüßen/Yours

Roland Littwin


Hot-World GmbH & Co. KG Knickelsdorf 42 47877 Willich Deutschland

Tel.: 02154-606518 Fax: 02154-606519

Geschäftsführer: Marcus Littwin Handelsregister: Amtsgericht Krefeld HRA 5325 Umsatzsteuer-Identifikationsnummer: DE213748632 Persönlich haftender Gesellschafter: Hot-World Medien GmbH mit Sitz in Willich Handelsregister: Amtsgericht Krefeld HRB 10800

3ntrlab commented 10 years ago

Hello Roland. G31 works, pullup tested. Probe is currently a Omron microswitch. Output is low when free and high when micoswitch is engaged. How can I test the actual content of EEPROM ?

Best Regards Davide Ardizzoia

repetier commented 10 years ago

Hi,

Am 24.01.14 23:26, schrieb 3ntr labs:

Hello Roland. G31 works, pullup tested. Probe is currently a Omron microswitch. Output is low when free and high when micoswitch is engaged. How can I test the actual content of EEPROM ?

connect with host and select settings->EEPROM settings There you see what really is stored in the eeprom. Maybe something is wrong there.

Yours Roland Littwin

Best Regards Davide Ardizzoia

— Reply to this email directly or view it on GitHub https://github.com/repetier/Repetier-Firmware/issues/233#issuecomment-33267993.

Mit freundlichen Grüßen/Yours

Roland Littwin


Hot-World GmbH & Co. KG Knickelsdorf 42 47877 Willich Deutschland

Tel.: 02154-606518 Fax: 02154-606519

Geschäftsführer: Marcus Littwin Handelsregister: Amtsgericht Krefeld HRA 5325 Umsatzsteuer-Identifikationsnummer: DE213748632 Persönlich haftender Gesellschafter: Hot-World Medien GmbH mit Sitz in Willich Handelsregister: Amtsgericht Krefeld HRB 10800

3ntrlab commented 10 years ago

Hello Roland, Didn't know that could see also z-probing parameters... anyway I've just checked: EEPROM values are OK. Don't understand why G31 works ok, and yet I get z height = 0.00.

Best Regards Davide Ardizzoia

repetier commented 10 years ago

Hi,

is hardware min z endstop disabled? The z probe stops when hardware z min or z probe is triggered. And it does not seem to be the z probe, but some have already connected it to z min and enabled hardware z min as well. In that case setting for the z min also may trigger. Check M119 and see what z min retirns or if it does not appear at all.

Yours Roland

Am 25.01.14 09:50, schrieb 3ntr labs:

Hello Roland, Didn't know that could see also z-probing parameters... anyway I've just checked: EEPROM values are OK. Don't understand why G31 works ok, and yet I get z height = 0.00.

Best Regards Davide Ardizzoia

— Reply to this email directly or view it on GitHub https://github.com/repetier/Repetier-Firmware/issues/233#issuecomment-33284392.

Mit freundlichen Grüßen/Yours

Roland Littwin


Hot-World GmbH & Co. KG Knickelsdorf 42 47877 Willich Deutschland

Tel.: 02154-606518 Fax: 02154-606519

Geschäftsführer: Marcus Littwin Handelsregister: Amtsgericht Krefeld HRA 5325 Umsatzsteuer-Identifikationsnummer: DE213748632 Persönlich haftender Gesellschafter: Hot-World Medien GmbH mit Sitz in Willich Handelsregister: Amtsgericht Krefeld HRB 10800

3ntrlab commented 10 years ago

Found the problem. The Z probing speed was 6. Max feed was set to 5.

Now it works: setting the z probing speed at lower-than-max-feed solves the impasse.

But I take the chance to ask: invoking G29 makes for full travel of Z (max_z down to z_probe) at EACH testing point ? Is any way to avoid it ?

Best Regards Davide Ardizzoia

repetier commented 10 years ago

Hi,

Am 25.01.14 10:10, schrieb 3ntr labs:

Found the problem. The Z probing speed was 6. Max feed was set to 5.

Ok, I have to check why that happens. Should limit itself to 5 then.

Now it works. But I take the chance to ask: invoking G29 makes for full travel of Z (max_z down to z_probe) at EACH testing point ? Is any way to avoid it ?

Same with G32 and G30. Goes always back to starting height. Solution is to start short but safe on top of the bed.

Yours Roland

Best Regards Davide Ardizzoia

— Reply to this email directly or view it on GitHub https://github.com/repetier/Repetier-Firmware/issues/233#issuecomment-33284683.

Mit freundlichen Grüßen/Yours

Roland Littwin


Hot-World GmbH & Co. KG Knickelsdorf 42 47877 Willich Deutschland

Tel.: 02154-606518 Fax: 02154-606519

Geschäftsführer: Marcus Littwin Handelsregister: Amtsgericht Krefeld HRA 5325 Umsatzsteuer-Identifikationsnummer: DE213748632 Persönlich haftender Gesellschafter: Hot-World Medien GmbH mit Sitz in Willich Handelsregister: Amtsgericht Krefeld HRB 10800

3ntrlab commented 10 years ago

Still here. After G30, printer height is set correctly... but the position at Zmax is now 0. Argh. Hope a good lunch will boost my brain cells.

Best Regards Davide Ardizzoia

repetier commented 10 years ago

Hi,

homing to zmax sets position to z length. But make sure z homing direction is 1!

Yours Roland

Am 25.01.14 11:51, schrieb 3ntr labs:

Still here. After G30, printer height is set correctly... but the position at Zmax is now 0. Argh. Hope a good lunch will boost my brain cells.

Best Regards Davide Ardizzoia

— Reply to this email directly or view it on GitHub https://github.com/repetier/Repetier-Firmware/issues/233#issuecomment-33286268.

Mit freundlichen Grüßen/Yours

Roland Littwin


Hot-World GmbH & Co. KG Knickelsdorf 42 47877 Willich Deutschland

Tel.: 02154-606518 Fax: 02154-606519

Geschäftsführer: Marcus Littwin Handelsregister: Amtsgericht Krefeld HRA 5325 Umsatzsteuer-Identifikationsnummer: DE213748632 Persönlich haftender Gesellschafter: Hot-World Medien GmbH mit Sitz in Willich Handelsregister: Amtsgericht Krefeld HRB 10800

3ntrlab commented 10 years ago

? Homing itself works ok (g28 z0). It's the G30 thing that messes up ....

Best Regards Davide Ardizzoia

repetier commented 10 years ago

Hi,

but G30 does only a probe, changes nothing during run.

Yours Roland

Am 25.01.14 14:51, schrieb 3ntr labs:

? Homing itself works ok (g28 z0). It's the G30 thing that messes up ....

Best Regards Davide Ardizzoia

— Reply to this email directly or view it on GitHub https://github.com/repetier/Repetier-Firmware/issues/233#issuecomment-33289356.

Mit freundlichen Grüßen/Yours

Roland Littwin


Hot-World GmbH & Co. KG Knickelsdorf 42 47877 Willich Deutschland

Tel.: 02154-606518 Fax: 02154-606519

Geschäftsführer: Marcus Littwin Handelsregister: Amtsgericht Krefeld HRA 5325 Umsatzsteuer-Identifikationsnummer: DE213748632 Persönlich haftender Gesellschafter: Hot-World Medien GmbH mit Sitz in Willich Handelsregister: Amtsgericht Krefeld HRB 10800

3ntrlab commented 10 years ago

It seems that G30 is doing something, instead. The printer is configured to home on zmax switch. When asked to homing, it completes the job correctly. At the end of homing procedure, the plate disengages the switch and the LCD says the correct offset (= Z_MAX_LENGTH). As soon as I call G30, the procedure moves the plate toward the printhead+z probe assy, the plate touches n times the probe, then it returns to the max_z position. At this point the LCD display says Z: 0 and apparently movement of Z axis is inverted (I can only move away from nozzles). If I call another Z homing, the logic is inverted again, letting me move the Z toward nozzles, but any further homing disregards the z switch and LCD gives negative Z values !!!!!

The probe is on MIN_X pin (unused by the firmware logic), by the way.

Best Regards Davide Ardizzoia

3ntrlab commented 10 years ago

Update: I get spurious x-y movements AFTER servo movements... ..all on a Megatronics 3.0 board.

Best regards Davide Ardizzoia

repetier commented 10 years ago

Servos use a 50hz PWM signal.This could cause a cross talk effect to the stepper driver. Can you move the servo to a different pin to verify that?