calculate the positions of switch, low and high
-
You've asked about everything EXCEPT the numeric value that moves X. And that value is THE determinant. Yes, it seems complex if you bring in left, right, counterclockwise. But... none of that matters. Push it out of your mind. Make it simple.
Does
M564 H0 G91 G1 F1000 X-10
move the carriage TOWARD the switch? If so, that is the low end. Period. Nothing else enters into it. You can enter all three commands on one line exactly as shown. Please do that and report whether it moves toward the switch.P.S. The "negative moves toward = low" is exactly what @deckingman said in the third post in this thread.
-
@Danal said in calculate the positions of switch, low and high:
negative moves toward = low"
Thanks so much for the explanation.
G code M564 H0 G91 G1 F1000 X-10, nothing happens but if you do X positive, 10 moved to the right.
With a little more experiment , maybe I understand how it works.
but thanks for the help- -
@chris4 said in calculate the positions of switch, low and high:
10 moved to the right.
Was that toward or away from the switch?
-
@chris4 said in calculate the positions of switch, low and high:
G code M564 H0 G91 G1 F1000 X-10, nothing happens but if you do X positive, 10 moved to the right.
The first part of -10 nothting happens is expected ; unless you set x > 0 or allow it to move outside the axis minima it will not move below 0.
The second part is correct, +10 should move to the right in a Cartesian coordinate system. The last part of the puzzle is to determine if the switch is on the far left (M574 X1) or far right (M574 X2).
-
@bearer said in calculate the positions of switch, low and high:
The first part of -10 nothting happens is expected ; unless you set x > 0 or allow it to move outside the axis minima it will not move below 0.
The second part is correct, +10 should move to the right in a Cartesian coordinate system. The last part of the puzzle is to determine if the switch is on the far left (M574 X1) or far right (M574 X2).The switch is on the far left (M574 X1)
and now works properly with home all.
step motor goes towards the switch on the left press and x step motor stops. I continue with the calibration now, it will be a challenge for a senior, who is a bit sluggish.
PS motion on stepmotor forward and backward is determined by low end and high end, or anything else, or not at all. My clever puzzle that I have to solve -
@Danal said in calculate the positions of switch, low and high:
Was that toward or away from the switch?
10 mowed to the right
-10 to the left
Thanks. -
@chris4 said in calculate the positions of switch, low and high:
PS motion on stepmotor forward and backward is determined by low end and high end, or anything else, or not at all. My clever puzzle that I have to solve
is that a question for y?
if you have a printer like in the pictures where the bed moves, the confusing part may be that you're not interested in the movement of the bed, but rather the position of the nozzle on the bed. so a positive Y movement should move the bed towards the front, but the nozzles relative position would be towards the back of the bed.
so the y switch at the back of the printer would trigger when the nozzle is at the front of the bed, meaning low end.
(i.e. its the nozzle and coordinate system that determine motor direction, and then you set the end stop location after the motor direction is having the desired effect on the nozzle position)
-
That explains some of what I couldn't. Thanks
-
@chris4 said in calculate the positions of switch, low and high:
The switch is on the far left (M574 X1)
and now works properly with home all.@chris4 said in calculate the positions of switch, low and high:
-10 to the left
Fantastic! Combining these two answers, the negative move moved TOWARD the switch. That means the switch is on the LOW END.
That means your M574 for this switch should specify X1 S1
Yay! Progress!
-
@chris4 said in calculate the positions of switch, low and high:
PS motion on stepmotor forward and backward is determined by low end and high end, or anything else, or not at all. My clever puzzle that I have to solve
You don't really care how the motor turns. You care how the carriage moves. As we determined in the prior post, -10 moves TOWARD the switch, so the switch is LOW END.
And... another answer to a question I think you were asking: If you ever need a carriage to move opposite how it is moving, say when commissioning a new printer, the command is:
M569: Set motor driver direction,
Pnnn Motor driver number
Snnn Direction of movement of the motor(s) attached to this driver: 0 = backwards, 1 = forwards (default 1) -
Thanks so much.