Y axis has two joints and they move in opposite directions

More
18 Jun 2019 15:06 #137190 by norbertfarquharsh
I have tried to solve this problem and looked at the ,hal and .ini file and tried different things and cannot figure why in the Y axis the joints move in opposite directions.
I will also say that I cannot get homing to work properly with the HOME_IGNORE_LIMITS set to NO as they are supposed to be.
I have edited the files greatly to get the gantry operation set up so I suspect I have errors but I cannot spot them and would appreciate any help.
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Jun 2019 15:15 #137192 by pl7i92
Hi
it is best practise to give one of the Steppers a wire SWITCH
Switch from
A+ A- B+ B- to
A- A+ B- B+

only on one

YOU Can invert the DIR output pin of the one that is nearest cable
depending on what controller you got
setp parport.0.pin-03-out-invert 1
net ydir => parport.0.pin-03-out

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 12:31 #137370 by andypugh
As well as swapping wires or inverting the dir pin you can try setting [JOINT_2]SCALE = -6400

But only do one of these three things or they will cancel out.

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 12:36 #137373 by pl7i92
best advise is always to
swapping wires
as it does not interfear any software calculation

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 14:53 #137388 by AgentWD40

best advise is always to
swapping wires
as it does not interfear any software calculation


I'm curious, where would this cause problems with the software?

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 18:51 - 20 Jun 2019 19:05 #137407 by andypugh

I'm curious, where would this cause problems with the software?


Well, when I suggested a negative scale I couldn't decide whether the homing directions needed to be switched too.
In the end I decided not. But the fact that I had to think about it hints at the problem.
Last edit: 20 Jun 2019 19:05 by andypugh.

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 14:09 #137488 by norbertfarquharsh
I thank you for all your comments. I am attaching my .ini and .hal files after I worked on them yesterday

File Attachment:

File Name: testbed_20...6-21.ini
File Size:3 KB

File Attachment:

File Name: testbed_20...6-21.hal
File Size:5 KB

File Attachment:

File Name: testbed_20...6-21.ini
File Size:3 KB
Yesterday was the first I had been able to work on this.
This is a machine that had worked until I recently found out about 2.8 and downloaded it and installed it. So I was puzzled why the wiring would have gone bad. I figured I had made mistakes when I did the hand edits on the files after generating them with stepconf.

So yesterday I tried different arrangements of the inversion of the y0 and y1 joints and with both not inverted they both go in the same direction. Now all I have to do is to get the Y axis so that it goes in the right direction when it tries home.
Thanks again.
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 14:23 #137490 by bevins

I thank you for all your comments. I am attaching my .ini and .hal files after I worked on them yesterday

File Attachment:

File Name: testbed_20...6-21.ini
File Size:3 KB

File Attachment:

File Name: testbed_20...6-21.hal
File Size:5 KB

File Attachment:

File Name: testbed_20...6-21.ini
File Size:3 KB
Yesterday was the first I had been able to work on this.
This is a machine that had worked until I recently found out about 2.8 and downloaded it and installed it. So I was puzzled why the wiring would have gone bad. I figured I had made mistakes when I did the hand edits on the files after generating them with stepconf.

So yesterday I tried different arrangements of the inversion of the y0 and y1 joints and with both not inverted they both go in the same direction. Now all I have to do is to get the Y axis so that it goes in the right direction when it tries home.
Thanks again.


Change the sign of home_search_vel. I think thats the correct one.

Homing Docs

Please Log in or Create an account to join the conversation.

More
22 Jun 2019 14:41 #137591 by norbertfarquharsh
Thank you very much for that. I had printed out the homing part of the linuxcnc documentation but had not looked through it yet but I tried the change you suggested
and all is well.

Please Log in or Create an account to join the conversation.

More
12 Apr 2024 21:17 #298130 by visharc
[justify]Hello I am new here I am also facing a similar problem .I am setup my stepconf for tandem y axis (Dual y axis) when i am jogging the machine in direction it works fine but when i jog it in - direction both y axis motors moves in opposite direction and throws my gantry out of square
solution i have tried[/justify]
  1.  Swapping wires on driver
  2.  inverting Dir pin
  3.  Putting negative scaling for one of the y motor
  4. changing the direction in my Driver
[justify]Note : i have tried above mentioned solution one at a time not all at once Still No success
I have attached my ini and hal file help me out
 

File Attachment:

File Name: my-mill.hal
File Size:4 KB
 

File Attachment:

File Name: my-mill.ini
File Size:3 KB


This is the driver i am using  

This browser does not support PDFs. Please download the PDF to view it: Download PDF

[/justify]
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.300 seconds
Powered by Kunena Forum