Boxford 125 lathe Tool Changer Comp FERROR (SOLVED)

More
5 years 11 months ago #188226 by Aciera
In your INI. You need to change this
Code:
[KINS] JOINTS = 3 KINEMATICS = trivkins coordinates=XZA

to this
Code:
[KINS] JOINTS = 2 KINEMATICS = trivkins coordinates=XZ

Please Log in to join the conversation.

More
5 years 11 months ago #188236 by Clive S

Aciera wrote: In your INI. You need to change this

Code:
[KINS] JOINTS = 3 KINEMATICS = trivkins coordinates=XZA

to this
Code:
[KINS] JOINTS = 2 KINEMATICS = trivkins coordinates=XZ


Stupid me. I thought I had done that but edited the wrong ini file (bet you have never done that):woohoo:

Now it works. How do I alter the velocity i.e. the equivalent of:

MAX_VELOCITY = 1 would this work setp stepgen.2.max_velocity 3
MAX_ACCELERATION = 5 setp stepgen.max_acceleration 5

Edit: Is this the correct place to reverse a bit more param rw float fudge_factor = 1 could I change that to 2.5?

Please Log in to join the conversation.

More
5 years 11 months ago #188237 by Aciera

MAX_VELOCITY = 1 would this work setp stepgen.2.max_velocity 3
MAX_ACCELERATION = 5 setp stepgen.max_acceleration 5


I would think so. Try and report back.

edited the wrong ini file (bet you have never done that)

NEVER :whistle:

Please Log in to join the conversation.

More
5 years 11 months ago #188238 by Clive S

Aciera wrote:

MAX_VELOCITY = 1 would this work setp stepgen.2.max_velocity 3
MAX_ACCELERATION = 5 setp stepgen.max_acceleration 5


I would think so. Try and report back.


I will thanks

Is this the correct place to reverse a bit more param rw float fudge_factor = 1 could I change that to 2.5?

Please Log in to join the conversation.

More
5 years 11 months ago #188239 by Aciera

param rw float fudge_factor = 1 could I change that to 2.5?


Sure, give it a try.

Please Log in to join the conversation.

More
5 years 11 months ago #188240 by Clive S

Aciera wrote:

param rw float fudge_factor = 1 could I change that to 2.5?


Sure, give it a try.


This worked
setp stepgen.2.maxaccel 50
setp stepgen.2.maxvel 20

I will try the fudge later (I am getting a bit cold)

Thanks

Please Log in to join the conversation.

More
5 years 11 months ago #188248 by Clive S

Clive S wrote:

Aciera wrote:

param rw float fudge_factor = 1 could I change that to 2.5?


Sure, give it a try.


This worked
setp stepgen.2.maxaccel 50
setp stepgen.2.maxvel 20

I will try the fudge later (I am getting a bit cold)

Thanks


Quick question I have noticed using the comp as it is now when it dose a tool move going forward then stops there is a small delay in the reverse move like 0.5sec. It did not do that when we used the A axis. Any clues?

Please Log in to join the conversation.

More
5 years 11 months ago #188291 by Aciera
So it does the forward move, then stops for about 0.5s, then does the backwards locking move?
[strike]Or does it do the forward move then starts to go backward, stops for about 0.5s and then finishes the backward move?[/strike]

[edit]

Ok now that I changed the maxaccel and maxvel for the stepgen I can see the problem in my simulated system as well.

Because the system has no feedback it just waits "long enough" for the forward move to finish before starting the backward locking move. Because you now sped things up by changing acceleration and velocity the forward move does not take as long as before so now there is some dead time where it doesn't move before going backwards.
The handle for this is the factor in (delay * 100). Don't let the comment (//Forward move) confuse you. Its actually the backward move.

Try maybe (delay_index < (delay * 75)) ) and recompile :
Code:
case 1: // Forward move if(position_cmd < position_req) // have we got there yet? { break; } if(!fjog && (delay_index < (delay * 100)) ) // this figure depends upon the speed of the servo thread etc delay_index++;


Really it should just wait for the stepgen to reach the commanded position then it would be independent of set acceleration and velocity.

Please Log in to join the conversation.

More
5 years 11 months ago #188292 by Clive S

Aciera wrote: So it does the forward move, then stops for about 0.5s, then does the backwards locking move?
Or does it do the forward move then starts to go backward, stops for about 0.5s and then finishes the backward move?


]So it does the forward move, then stops for about 0.5s, then does the backwards locking move? Yes

Please Log in to join the conversation.

More
5 years 11 months ago #188293 by Aciera
See edit in my last post.

Please Log in to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum