MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
15.94k stars 19.07k forks source link

Bltouch gets triggered but z Motor doesnt stop #12948

Closed mpm1396 closed 5 years ago

mpm1396 commented 5 years ago

Hello Guys, i am Using marlin 1.1.8. BL Touch lights up red when triggered but z Motor doesnt stop when homing. All other endstops are working. Printer: anycubic prusa i3. Trigorilla Board arduino 2560 ramps.

EDIT: Fixed polarity for z endstop on bltouch was wrong

ghost commented 5 years ago

Has it ever worked before on your printer or is this the initial situation?

ghost commented 5 years ago

Consider reading through the neighboring issue, it contains some tips that might help #12947

mpm1396 commented 5 years ago

well guys I fixed it kinda. The Problem was the polarity of the sensor wires was reversed. Next Problem is when I start the print it starts somewhere on the left side of the bed not in the middle. Auto bed leveling and homing works. When I start pronterface and press the red x y Center button it runs into the x and y endstop. Here is my config conf.zip

mpm1396 commented 5 years ago

Here is my start gcode maybe it is important gcodestart.zip

boelle commented 5 years ago

you are missing this define

//#define BED_CENTER_AT_0_0

remove //

what version of marlin?

mpm1396 commented 5 years ago

Marlin 1.1.8 . First post is already shortened :D

mpm1396 commented 5 years ago

done

mpm1396 commented 5 years ago

I did defined it, but I am getting an error in Arduino ide "static assertion failed: RIGHT_PROBE_BED_POSITION can't be reached by the Z probe."

boelle commented 5 years ago

try #define RIGHT_PROBE_BED_POSITION 110 or a little less

mpm1396 commented 5 years ago

I used 100 now I get static assertion failed: BACK_PROBE_BED_POSITION can't be reached by the Z probe.

boelle commented 5 years ago

ohhh... now i remember things :-D with #define BED_CENTER_AT_0_0

the center is 0 and one direction is positive number and other direction is negative

so you will most likely also have to adjust these

// The size of the print bed

define X_BED_SIZE 200

define Y_BED_SIZE 200

// Travel limits (mm) after homing, corresponding to endstop positions.

define X_MIN_POS 0

define Y_MIN_POS 0

define Z_MIN_POS 0

define X_MAX_POS X_BED_SIZE

define Y_MAX_POS Y_BED_SIZE

define Z_MAX_POS 160

boelle commented 5 years ago

if X and Y ednstop is precise at edge of bed i would use:

define X_MIN_POS -100

define Y_MIN_POS -100

define X_MAX_POS 100

define Y_MAX_POS 100

mpm1396 commented 5 years ago

So should I comment the bed centre 0 0 out again?

boelle commented 5 years ago

nope, that one stays as is

boelle commented 5 years ago

i use 0,0 down in the lower left corner and its a long time since i have had a setup with 0,0 in center and i'm 40 year old so not that fast at remember things

mpm1396 commented 5 years ago

Configuration.zip I did what you said and still gettin error: static assertion failed: RIGHT_PROBE_BED_POSITION can't be reached by the Z probe.

boelle commented 5 years ago

just me old

define RIGHT_PROBE_BED_POSITION 110

needs to be less than 100, but i cant remember how much lees

define BACK_PROBE_BED_POSITION 190

also needs to be less than 100

define FRONT_PROBE_BED_POSITION 20

can be closer to 100

remember than some of the 100's need to be negative 100

boelle commented 5 years ago

but when you home the printer now it will be very clear which of the 100's that need to be negative

mpm1396 commented 5 years ago

When I home the Printer it goes to x 25 y 93 z 16.7

boelle commented 5 years ago

the reason i dont know which of the 100's that need to be negative is that i dont know if right side is the side it homes to

and if front or back is where Y homes

boelle commented 5 years ago

x 25 y 93 z 16.7

that makes sense

define X_PROBE_OFFSET_FROM_EXTRUDER 75 // X offset: -left +right [of the nozzle]

define Y_PROBE_OFFSET_FROM_EXTRUDER 7 // Y offset: -front +behind [the nozzle]

define Z_PROBE_OFFSET_FROM_EXTRUDER -1.7 // Z offset: -below +above [the nozzle]

25+75 = 100

93 + 7 = 100

i cant remember the logic on Z

boelle commented 5 years ago

how do you home? G29?

mpm1396 commented 5 years ago

with the screen. prepare -- > autohome

boelle commented 5 years ago

its like it homes the probe

try send G28 and see if that makes any difference

mpm1396 commented 5 years ago

no difference with G28

boelle commented 5 years ago

and after G28

try send G0 X0 Y0

boelle commented 5 years ago

what we want to figure out is where printer thinks it is so we can change config and get it to be where we want it

how close to center was it after G28? and did it go to endstop first

mpm1396 commented 5 years ago

so with g28 it homes somewher on the left side. If I send G0 X0 Y0 it runs into the Y endstop.

boelle commented 5 years ago

with G28 it should touch the endstops

do it touch the endstops?

boelle commented 5 years ago

G28 X if you only want to try and home X

mpm1396 commented 5 years ago

Yes with g28

boelle commented 5 years ago

oki.... and it stays at the endstop after G28 ?

boelle commented 5 years ago

and after home how far is the nozzle from the bed edge?

boelle commented 5 years ago

is this your printer? http://www.anycubic3d.com/products/show/1048.html

mpm1396 commented 5 years ago

It stays at the x and y endstop but it moves up in z . After Home the nozzle is a few mm away

boelle commented 5 years ago

oki, at least we are close to something that might work

is your printer the Mega on the link above?

boelle commented 5 years ago

or is it this one? https://www.amazon.co.uk/Anycubic-Desktop-Printer-Assemble-Filament/dp/B01K6P5R74

boelle commented 5 years ago

what is strange is that with G28 it should home and be at -100 for X and Y

Try send G28 and then M114 and tell me what comes on serial

i'm looking at your latest config to see if we made a mistake

mpm1396 commented 5 years ago

Its this one http://m.anycubic3d.com/support/show/594036.html Its the prusa i3 Kit with Ultrabase.

mpm1396 commented 5 years ago

The config ist from Here. https://www.thingiverse.com/groups/anycubic-prusa-i3/forums/general/topic:26690

boelle commented 5 years ago

config looks ok

Try send G28 and then M114 and tell me what comes on serial

mpm1396 commented 5 years ago

so now i am back. I did g28 and M114. this is the Output X:25.00 Y:93.00 Z:16.70 E:0.00 Count X:2000 Y:7440 Z:6680

boelle commented 5 years ago

that is strange... can you attach configuration.h again as zip

and make sure its not an old copy :-D i have made that mistake many times

mpm1396 commented 5 years ago

I just reflashed this: Configurationf.zip this is still the Output of M114 X:25.00 Y:93.00 Z:16.70 E:0.00 Count X:2000 Y:7440 Z:6680

boelle commented 5 years ago

you did not change these:

// Travel limits (mm) after homing, corresponding to endstop positions.

define X_MIN_POS 0

define Y_MIN_POS 0

define Z_MIN_POS 0

define X_MAX_POS X_BED_SIZE

define Y_MAX_POS Y_BED_SIZE

define Z_MAX_POS 160

boelle commented 5 years ago

you did not change this one either

//#define BED_CENTER_AT_0_0

boelle commented 5 years ago

but that still does not explain why X is at 25 after home

@thinkyhead can just shine the light of god wisdom on this one?

mpm1396 commented 5 years ago

I uncommented and changed x_min_pos to -100 y min -100 x max 100 y max 100 but I get the error: static assertion failed: RIGHT_PROBE_BED_POSITION can't be reached by the Z probe.

boelle commented 5 years ago

it's hard to help if you make changes back without telling, so make it look like this

define X_MIN_POS -100

define Y_MIN_POS -100

define Z_MIN_POS 0

define X_MAX_POS 100

define Y_MAX_POS 100

define Z_MAX_POS 160

define LEFT_PROBE_BED_POSITION 100

define RIGHT_PROBE_BED_POSITION -100

define FRONT_PROBE_BED_POSITION 100

define BACK_PROBE_BED_POSITION -100

define BED_CENTER_AT_0_0

but one Q, when you home does x move to left or right?

mpm1396 commented 5 years ago

I changed it to your values but I cant upload it because I get the error static assertion failed: LEFT_PROBE_BED_POSITION must be less than RIGHT_PROBE_BED_POSITION.