tb6560ahq board

More
15 Dec 2010 01:50 #6049 by dab77
tb6560ahq board was created by dab77
hallo!
does anyone know the right steplen, stepspace, dirsetup, dirhold of the cheap TB6560AHQ drive that can be found on the bay?

tried again to read and read again the pdf of the specification, but couldn't understand the right timings to setup emc.
right now i played a lot with this driver, but still don't know if i set it up correctly!
anyone know how to know the correct timings?

thanks, dab.

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

More
15 Dec 2010 06:35 #6053 by step4linux
Replied by step4linux on topic Re:tb6560ahq board
In the 6560AHQ data sheet I found only two important timings:
max clock frequency = 15 kHz
min clock puls width = 30 usec

But there is also a dependency from the internal chip clock and its corresponding capacitor, which is not precisely discovered.

From this values you should be on the safe side in any case with steplen = 30000.
From my own experiences a 6560AHQ in my own board (no opto) works reliable also with 20 usec and even less, but it does definitely not work with 5 usec, which is the default for stepconf. This is what you have to change in stepconf.

If you edit hal directly: remove the reset function of the puls pins and limit the stepping frequ to 15 kHz, then it should work.

All other settings I took from stepconf defaults, and I have not found any issue up to now.

Gerd

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

More
15 Dec 2010 10:15 - 15 Dec 2010 10:17 #6054 by dab77
Replied by dab77 on topic Re:tb6560ahq board
ok.
i'have read about the capacitor, but i'm not able to recognize which one is on the drive. (the normal or miniaturized?)
one strange thing is that if i use step conf, without touching anything it propose:
ST: 5000ns
SS: 5000
DH: 20000
DS: 20000

but, in my .hal file i read for each motor:
Slen: 1
SS: 0
DH: 30000
DS: 30000

there is something i don't understand, or it's an issue of stepconf?

thanks for helping, in the meanwhile i try with the values you suggest.

EDIT: i also add that with the latency test my max jitter doesn't go over 9000ns.. i think that's good!
Last edit: 15 Dec 2010 10:17 by dab77.

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

More
15 Dec 2010 10:38 - 15 Dec 2010 10:58 #6055 by dab77
Replied by dab77 on topic Re:tb6560ahq board
if anyone can tell, these are my capacitors (those repeated per channel)

then, on the chip specs i've found this:
Capacitor / Oscillating Frequency / Minimum Clock Pulse Width tW(CLK) (Note 1)
1000 pF 44 kHz 90 μs (Note 2)
330 pF 130 kHz 30 μs
100 pF 400 kHz 10 μs (Note 2)

so it's probably the 470 capacitor on the driver the one we are talking of.
so i can suppose a minimum clock pulse of around 40μs...

can it be right?
Attachments:
Last edit: 15 Dec 2010 10:58 by dab77.

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

More
15 Dec 2010 12:12 - 15 Dec 2010 12:16 #6057 by step4linux
Replied by step4linux on topic Re:tb6560ahq board
For details about the stepgen parameters see:

www.linuxcnc.org/docview/html/man/man9/stepgen.9.html

Although I agree, some values seems strange. But I do not have an explanation for it.
May there is an expert to give us explanations.
Edit: I think that the hal entry of setup and hold times is the time you entered in stepconf plus the latency time.

Consider also the difference of pulse genration using reset function or not.
Last edit: 15 Dec 2010 12:16 by step4linux.

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

More
15 Dec 2010 12:27 #6058 by dab77
Replied by dab77 on topic Re:tb6560ahq board
yes, i've tryied as you suggested to comment the lines with the reset instructions, but i didn't see any difference in moving.
about setup and hold times you are right.

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

More
15 Dec 2010 12:39 #6059 by andypugh
Replied by andypugh on topic Re:tb6560ahq board
"Reset" lets you send 1 step per base thread rather than one step per 2 base threads.
If the base thread execution time is too short, and the driver needs a very long pulse, then this might need to be disabled. However, doing so will halve your maximum step rate.

It is often worth experimenting with inverting the step signals, this exchanges long off-time and short on-time for long on-time and short-off time, and some drives work a lot better that way.

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

More
15 Dec 2010 17:49 #6060 by dab77
Replied by dab77 on topic Re:tb6560ahq board
understand why, but how to invert the step signals?

since by eyes and ear i can't see differences with or without the resets, where should i see improvements? in the reading of the feedback error? max speed?

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

More
15 Dec 2010 18:18 #6061 by andypugh
Replied by andypugh on topic Re:tb6560ahq board
dab77 wrote:

understand why, but how to invert the step signals?

If you are using stepconf, then each p-port pin has an "invert" checkbox.
Oherwise it is
setp parport.0.pin-10-invert 1
(or similar)
in the HAL file.

since by eyes and ear i can't see differences with or without the resets, where should i see improvements? in the reading of the feedback error? max speed?

In principle it should give you a higher max pulse rate, in practice you might well be limited by other things earlier.

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

More
15 Dec 2010 20:32 #6062 by step4linux
Replied by step4linux on topic Re:tb6560ahq board
dab77 wrote:

since by eyes and ear i can't see differences with or without the resets, where should i see improvements? in the reading of the feedback error? max speed?

If it works with reset its fine.
My 6560 board did not work with reset = 5000, 5 usec is too short for that device.
And I think its not a good idea to extend the reset too much.
Not sure how the real time part deals with it, but my feeling says it would borrow some cpu power.

Gerd

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

Moderators: PCWjmelson
Time to create page: 0.118 seconds
Powered by Kunena Forum