Welcome! Log In Create A New Profile

Advanced

MKS Base v1.3 - Z axis moves when switch triggered !?

Posted by cagtag 
MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 03:41AM
Hi,

I am a new user for MKS Base boards. My printer's Z axis moves when Z switch triggered. It should move Z switch not triggered. There is a problem with Z switch. X and Y switch work fine.

My config.txt file is attached below.




Attachments:
open | download - config_MKS Base v1.3_cagtag.txt (24.3 KB)
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 04:50AM
gamma_min_endstop 1.28^!

change it to

gamma_min_endstop 1.28^
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 05:49AM
Thank you Dust! I solved the problem.

I have another problem now. I want to use The Mini Differential IR height sensing board for my printer. How I change the config.txt? I changed it as Smoothieboard said and I see sensor's red light, but Z axis didn't stop.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 06:08AM
The MKS base is Basicly a smothieboard clone

On the IR board page I see

Note for Smoothieboard users: The Smoothieboard uses low value (1K) pullup resistors in its endstop inputs. This is too low for the sensor output to drive. Workarounds include adding a pulldown resistor from the sensor output to ground (it has been reported the 470 ohms works, but 1K does not), or replacing the 3K resistor R4 on the sensor board by a lower value (e.g. 220 ohms), or bypassing resistor R4 on the sensor board, or increasing the value of the pullup resistor on the Smoothieboard to 6.8K or 10K (for the Z_MIN endstop input, it’s R100). If you replace or bypass R4 on the sensor board, then be extra careful to connect the sensor to your electronics correctly. because R4 protects the sensor from damage if you reverse the connector.

I suspect this also applies to your board. (but I don’t know for sure)
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 06:15AM
I did it said, but I think the problem is based on configuration "config.txt" file as Z switch problem. Can you send config.txt file to me for Z probe?

>>>g32
SENDING:G32
ZProbe triggered before move, aborting command.
>>>m119
SENDING:M119
min_x:0 min_y:0 Probe: 1

Edited 1 time(s). Last edit at 07/27/2016 06:18AM by cagtag.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 06:21AM
Sorry no z probes here...

But I've sent a private message to dc42, the guy who designed the sensor. When he wakes up he may reply.

But that looks like it just need to be inverted again..

so change zprobe.probe_pin 1.28!^

to zprobe.probe_pin 1.28^

I would also say you probably cant have a z endstop and a probe on the same io pin
so change gamma_min_endstop to nc or move zprobe to another io port

Edited 4 time(s). Last edit at 07/27/2016 06:36AM by Dust.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 06:39AM
When I close the sensor with my finger, z axis moves. There is a same problem as Z switch problem I said above.

There is gamma_min_endstop in line 215 and in line 250 with # ?

Edited 1 time(s). Last edit at 07/27/2016 06:42AM by cagtag.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 07:01AM
Yes, I read that as a hint to disable the z endstop, to stop the conflict

So comment out line 215 by putting a # in front of it and remove the # from infront of line 250, or change 215 from 1.28^ to nc. both results is the same thing.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 07:02AM
I changed;

# Switch module for spindle control
#switch.spindle.enable false #

# Endstops
endstops_enable true # the endstop module is enabled by default and can be disabled here
#corexy_homing false # set to true if homing on a hbit or corexy
alpha_min_endstop 1.24^ # add a ! to invert if endstop is NO connected to ground
alpha_max_endstop nc # NOTE set to nc if this is not installed
alpha_homing_direction home_to_min # or set to home_to_max and set alpha_max
alpha_min 0 # this gets loaded after homing when home_to_min is set
alpha_max 200 # this gets loaded after homing when home_to_max is set
beta_min_endstop 1.26^ #
beta_max_endstop nc #
beta_homing_direction home_to_min #
beta_min 0 #
beta_max 200 #
gamma_min_endstop nc #
gamma_max_endstop nc #
gamma_homing_direction home_to_min #
gamma_min 0 #
gamma_max 200 #

# optional order in which axis will home, default is they all home at the same time,
# if this is set it will force each axis to home one at a time in the specified order
#homing_order XYZ # x axis followed by y then z last

# optional enable limit switches, actions will stop if any enabled limit switch is triggered
alpha_limit_enable true # set to true to enable X min and max limit switches
beta_limit_enable true # set to true to enable Y min and max limit switches
gamma_limit_enable true # set to true to enable Z min and max limit switches

alpha_fast_homing_rate_mm_s 50 # feedrates in mm/second
beta_fast_homing_rate_mm_s 50 # "
gamma_fast_homing_rate_mm_s 4 # "
alpha_slow_homing_rate_mm_s 25 # "
beta_slow_homing_rate_mm_s 25 # "
gamma_slow_homing_rate_mm_s 2 # "

alpha_homing_retract_mm 5 # distance in mm
beta_homing_retract_mm 5 # "
gamma_homing_retract_mm 1 # "

#endstop_debounce_count 100 # uncomment if you get noise on your endstops, default is 100

# optional Z probe
zprobe.enable true # set to true to enable a zprobe
zprobe.probe_pin 1.28^ # pin probe is attached to if NC remove the !
zprobe.slow_feedrate 5 # mm/sec probe feed rate
#zprobe.debounce_count 100 # set if noisy
zprobe.fast_feedrate 100 # move feedrate mm/sec
zprobe.probe_height 5 # how much above bed to start probe
gamma_min_endstop 1.28^ # normally 1.28. Change to nc to prevent conflict,

# associated with zprobe the leveling strategy to use
leveling-strategy.three-point-leveling.enable true # a leveling strategy that probes three points to define a plane and keeps the Z parallel to that plane
leveling-strategy.three-point-leveling.point1 132,58 # the first probe point (x,y) optional may be defined with M557
leveling-strategy.three-point-leveling.point2 85,186 # the second probe point (x,y)
leveling-strategy.three-point-leveling.point3 200,195 # the third probe point (x,y)
leveling-strategy.three-point-leveling.home_first true # home the XY axis before probing
leveling-strategy.three-point-leveling.tolerance 0.03 # the probe tolerance in mm, anything less that this will be ignored, default is 0.03mm
leveling-strategy.three-point-leveling.probe_offsets 10,45,0.72 # the probe offsets from nozzle, must be x,y,z, default is no offset
leveling-strategy.three-point-leveling.save_plane false # set to true to allow the bed plane to be saved with M500 default is false

-------------------------------------

and command line give the below information when sensor's red light opens and stop z axis:

>>>g32
SENDING:G32
Limit switch min_z was hit - reset or M999 required
DEBUG: P0:5.0000
DEBUG: P1:5.0000
DEBUG: P2:5.0000
WARNING: probe is not within tolerance: 5.000000 > 0.030000
DEBUG: flat plane
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 07:37AM
You have

zprobe.probe_pin 1.28^ # pin probe is attached to if NC remove the !

and

gamma_min_endstop 1.28^ # normally 1.28. Change to nc to prevent conflict,


You cant have two things on the same pin... (same number)

I presume you are building a Cartesian type printer (X,Y Z type not delta) and you want both a z endstop and a probe

In which case you need to plug the probe into a different port eg gamma_max_endstop plug

since we know the plugs for the min endstosp are
alpha_min_endstop 1.24^
and beta_min_endstop 1.26^
and gamma_min_endstop 1.28^

we can guess that the plugs for max endstops are as follows
alpha_max_endstop 1.25^
beta_max_endstop 1.27^
gamma_max_endstop 1.29^

So if we set
zprobe.probe_pin 1.29^
we can plug it into the zmax endstop (gamma_max_endstop)

Edited 1 time(s). Last edit at 07/27/2016 07:39AM by Dust.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 08:03AM
Can I use together Z switch and Z probe sensor?

I use only Z probe sensor now. And pins are below:


Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 27, 2016 05:03PM
Since you only using a probe you need to disable gamma_min_endstop

Ie change gamma_min_endstop 1.28^ to gamma_min_endstop nc
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 28, 2016 04:22PM
cagtag, it looks to me that Dust has given you the right advice. Using a pin for the Z probe that is not an endstop pin avoids the problem of the pullup resistor on the endstop pins being too low a value for an unmodified IR sensor.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
July 29, 2016 12:34PM
Hi everyone,

I changed gamma_min_endstop 1.28^ to gamma_min_endstop nc and sensor didn't stop. Sensor works fine.

Extruder must go to 3 points in my cartesian printer. It goes to first point well and sensor reads. Then, although it goes to second point, sensor doesn't read and goes to third point. When it comes to third point, sensor reads once and Z axis stops. Then, command window writes:

>>>g32
SENDING:G32
DEBUG: P0:0.7088
DEBUG: P1:1.0000
DEBUG: P2:0.7262
WARNING: probe is not within tolerance: 0.708750 > 0.030000
DEBUG: plane normal= -0.002487, 0.001362, -0.999996
Probe completed, bed plane defined
>>>m114
SENDING:M114
ok C: X:5.000 Y:5.000 Z:11.000 A:5.000 B:5.000 C:11.953 E:0.000

What are the A, B and C? I saw only X, Y and Z before.
Re: MKS Base v1.3 - Z axis moves when switch triggered !?
August 01, 2016 03:53AM
Hi everyone!

I solved z probe reading problem, but I have another problem about reliability.

Connecting...
Printer is now online.
Setting hotend temperature to 210.000000 degrees Celsius.
SENDING:M105
Bad value for variable 'last_file_path', expecting type 'str' (ascii)
3.0 mm of filament used in this print

the print goes from 74.925000 mm to 109.691000 mm in X
and is 34.766000 mm wide

the print goes from 71.613000 mm to 123.278000 mm in Y
and is 51.665000 mm wide

the print goes from 0.000000 mm to 64.451000 mm in Z
and is 64.451000 mm high

Estimated duration (pessimistic):  1 layers, 1:03:24
Print Started at: 20:04:45
DEBUG: P0:1.1547
DEBUG: P1:1.5516
SENDING:M106
DEBUG: P2:1.3312
WARNING: probe is not within tolerance: 1.154687 > 0.030000
DEBUG: plane normal= -0.002098, 0.002330, -0.999995
Probe completed, bed plane defined
SENDING:M107
Paused.
Disconnected.
Bad value for variable 'last_file_path', expecting type 'str' (ascii)
3.0 mm of filament used in this print

the print goes from 74.925000 mm to 109.691000 mm in X
and is 34.766000 mm wide

the print goes from 71.613000 mm to 123.278000 mm in Y
and is 51.665000 mm wide

the print goes from 0.000000 mm to 64.451000 mm in Z
and is 64.451000 mm high

Estimated duration (pessimistic):  1 layers, 1:03:24
Connecting...
Printer is now online.
Setting hotend temperature to 210.000000 degrees Celsius.
SENDING:M105

Print Started at: 20:10:37
T:209.7 /210.0 @72
T:209.7 /210.0 @72
T:209.7 /210.0 @72
T:209.9 /210.0 @71
T:209.7 /210.0 @72
T:209.9 /210.0 @71
DEBUG: P0:1.1734
DEBUG: P1:1.6312
DEBUG: P2:1.3859
WARNING: probe is not within tolerance: 1.173438 > 0.030000
DEBUG: plane normal= -0.002346, 0.002715, -0.999994
Probe completed, bed plane defined
Paused.
>>>m114
SENDING:M114
ok C: X:99.366 Y:93.264 Z:0.200 A:99.366 B:93.267 C:1.545  E:12.194
Reset.
Smoothie
Setting hotend temperature to 210.000000 degrees Celsius.
SENDING:M105
Bad value for variable 'last_file_path', expecting type 'str' (ascii)
3.0 mm of filament used in this print

the print goes from 75.005000 mm to 109.518000 mm in X
and is 34.513000 mm wide

the print goes from 71.394000 mm to 123.339000 mm in Y
and is 51.945000 mm wide

the print goes from 0.000000 mm to 64.451000 mm in Z
and is 64.451000 mm high

Estimated duration (pessimistic):  1 layers, 1:17:44
Reset.
Setting hotend temperature to 210.000000 degrees Celsius.
Smoothie
SENDING:M105
Bad value for variable 'last_file_path', expecting type 'str' (ascii)
3.0 mm of filament used in this print

the print goes from 75.005000 mm to 109.518000 mm in X
and is 34.513000 mm wide

the print goes from 71.394000 mm to 123.339000 mm in Y
and is 51.945000 mm wide

the print goes from 0.000000 mm to 64.451000 mm in Z
and is 64.451000 mm high

Estimated duration (pessimistic):  1 layers, 1:17:44
Print Started at: 20:16:27
DEBUG: P0:0.0984
DEBUG: P1:0.0375
DEBUG: P2:0.0484
WARNING: probe is not within tolerance: 0.098437 > 0.030000
DEBUG: plane normal= 0.000129, -0.000429, -1.000000
Probe completed, bed plane defined
Paused.
>>>m114
SENDING:M114
ok C: X:102.375 Y:82.103 Z:10.150 A:102.373 B:82.106 C:10.234  E:6.924
Disconnected.
Connecting...
Printer is now online.
Setting hotend temperature to 210.000000 degrees Celsius.
SENDING:M105
Bad value for variable 'last_file_path', expecting type 'str' (ascii)
3.0 mm of filament used in this print

the print goes from 75.005000 mm to 109.518000 mm in X
and is 34.513000 mm wide

the print goes from 71.394000 mm to 123.339000 mm in Y
and is 51.945000 mm wide

the print goes from 0.000000 mm to 64.451000 mm in Z
and is 64.451000 mm high

Estimated duration (pessimistic):  1 layers, 1:17:44
Print Started at: 20:22:17
T:209.7 /210.0 @69
T:209.6 /210.0 @70
T:209.6 /210.0 @71
T:209.7 /210.0 @69
T:209.7 /210.0 @69
T:209.9 /210.0 @67
T:209.9 /210.0 @67
T:209.9 /210.0 @67
DEBUG: P0:1.1437
DEBUG: P1:1.5469
DEBUG: P2:1.2953
WARNING: probe is not within tolerance: 1.143750 > 0.030000
DEBUG: plane normal= -0.002366, 0.002281, -0.999995
Probe completed, bed plane defined
Paused.
Reset.
Smoothie
Print Started at: 20:23:12
DEBUG: P0:0.0875
DEBUG: P1:0.0813
DEBUG: P2:0.0875
WARNING: probe is not within tolerance: 0.087500 > 0.030000
DEBUG: flat plane
Probe completed, bed plane defined
SENDING:M106
Paused.
Reset.
Smoothie
Setting hotend temperature to 210.000000 degrees Celsius.
SENDING:M105
Print Started at: 20:26:38
DEBUG: P0:1.0219
DEBUG: P1:1.5391
DEBUG: P2:1.3187
WARNING: probe is not within tolerance: 1.021875 > 0.030000
DEBUG: plane normal= -0.002170, 0.003244, -0.999992
Probe completed, bed plane defined
Paused.
Reset.
Smoothie
Print Started at: 20:27:10
ZProbe triggered before move, aborting command.
Paused.
Reset.
Smoothie
Setting hotend temperature to 210.000000 degrees Celsius.
SENDING:M105
Print Started at: 20:28:07
DEBUG: P0:0.2047
DEBUG: P1:0.1000
DEBUG: P2:0.0734
WARNING: probe is not within tolerance: 0.204688 > 0.030000
DEBUG: plane normal= -0.000162, -0.000877, -1.000000
Probe completed, bed plane defined
SENDING:M107
SENDING:M106
SENDING:M107
Paused.

Paused.
Print Started at: 20:31:17
SENDING:M106
Paused.

Paused.
Print Started at: 20:36:00
Paused.
Paused.
Print Started at: 20:36:08
Paused.

Print Started at: 20:39:52
DEBUG: P0:0.9094
DEBUG: P1:1.4266
DEBUG: P2:1.2469
WARNING: probe is not within tolerance: 0.909375 > 0.030000
DEBUG: plane normal= -0.001826, 0.003370, -0.999993
Probe completed, bed plane defined
Paused.
Print Started at: 20:40:24
ZProbe triggered before move, aborting command.
Paused.
Print Started at: 20:40:43
DEBUG: P0:0.3828
DEBUG: P1:0.3078
DEBUG: P2:0.2688
WARNING: probe is not within tolerance: 0.382812 > 0.030000
DEBUG: plane normal= -0.000286, -0.000691, -1.000000
Probe completed, bed plane defined
SENDING:M107
SENDING:M106
Paused.
Sorry, only registered users may post in this forum.

Click here to login