5bar Scara Homing relative to Zero position
-
Hi, after I home my scara arm and try to make it move I get back the error: “position not reachable”, my question is how I have to specify my home offset relative to the zero position in a scara arm? And do I need to take for zero the center of the bed or some other position?
Thanks fot the help in advance,
gnmrc_ -
@gnmrc_ hello, the M669 X and Y allow you to set positions of the two actuators. You can chose 0,0 reference yourself, please see the https://docs.duet3d.com/User_manual/Machine_configuration/Configuration_five_bar_parallel_scara#example-config-file example.
The example sets the left actuator to 0,0, but you can choose a different point.The coordinate system itself is not explicitly configured, but you define for yourself the 0,0,0 and the directions of X and Y and set the other values like the M669 and homing values accordingly. The coordinate system must be right-handed, so it is usual to define X to the right, Y to behind and Z positive means growing distance hotend to bed.
Position not reachable means, that in your choosen work mode, your homing will probably be outside the printable area. You can use G1 H2 moves to move inside the printable area. The G1 H2 move values are angle values, it is best to start with small values and to move somewhere into the middle of your bed. G1 H2 are not coordinates, but the actuator angles. It is easiest to make relative moves, so you can call e.g. G91 G1 H2 X5 in one line.
-
@JoergS5 thanks for the fast response.
I made a superfast sketch to visualize what you told me:
So if I want to set the zero position at the center of my bed, I have to ignore the reprap configurator tool and set all the position by hand right?
This means that first I set the position of my actuators positive in Y, one neg in X and one pos in X.
Than in the homing script after I homed the machine I move the hotend position to the Zero position with gcode, and after that I should be in a correct working position. -
@gnmrc_ I would use the config tool, because it sets a lot of useful parameters. Then you can edit the config.g and the homing files and correct what needs to be corrected.
It's long time ago that I implemented the XY correction, so my memory can be wrong, thatY must be negative in your example and X one neg, one pos.Y could be positive - I am not sure, please try the negative first. So an example would be
Negative is confirmed below
M669 X-150:150 Y-150:-150
for a 300x300 bed with the actuators at the edges.In your second drawing, the Y is in the wrong direction. The right hand rule helps to find the coordinates: thumb is X, index finger is Y, middle finger is Z.
The rest of the procedure is like you described it.
A little glitch in my previous explanation is that Z will be choosen so Z0 is the nozzle on the bed, not an arbitrary value.
-
@JoergS5 the Y needed to be set negative, as you said, thank you so much for the help.
I have another question for you do you think that it could be possible to create some sort of input shaper for a 5bar scara?
-
@gnmrc_ said in 5bar Scara Homing relative to Zero position:
some sort of input shaper for a 5bar scara
That's more a question for David @dc42.
I saw his remarkable video https://www.youtube.com/watch?v=bqf382QDSKY today coincidentally, which is in a big part about input shaping. The 5 bar scara behaves nonlinear in its X, Y axes, so it may be overly complex to calculate the necessary acceleration/deceleration segmentation correctly.
-
This post is deleted! -
Thanks @JoergS5 for the video suggestion, it made more clear how input shaping is implemented in reprap.
About asking @dc42 an idea for implementing input shaping on my build, I have already asked him at the beginning of my project Using Input shaping on a SCARA 3D printer, I think that I will complete my build than try his idea and give a feedback. Hoping that university will give me enough time.
-
@gnmrc_ interesting, I didn't know this old thread.
The scara and 5 bar scara change the direction of the hotend, so your accelerator data may need a correction.
5 bar scara has two change types- the hotend rotates around the Z axis when XY change
- the segmentation into short linear moves will change direction each for every linear segment
Maybe it's the easiest approach to simply try the different input shape methods with different frequency ranges and avaluate the result.
-
@JoergS5 you are right due to the non linear motion system the easiest approach is to test different input shape methods and find the one that works better. Of course a specific approach would work better, but I do not think the time would match the gains relative to a more empiric approach.
-
-
@dc42 I only support gnmr and don't have a 5bar printer currently, but if I participate in testing, I will use the Mini 5 Ethernet.
-
@dc42 sorry for answering so late but I was focused on Uni, I’m using an old duet 2 board.
-
@gnmrc_ said in 5bar Scara Homing relative to Zero position:
@dc42 sorry for answering so late but I was focused on Uni, I’m using an old duet 2 board.
As soon as I will have the money I will upgrade the board