TTL to differential converter (STEP / DIR / ENABLE)

More
5 months 3 days ago #346744 by andrax
Also ich hab mal geschaut.
Standartmäßig gibt es meistens max 3 Kanal für die typischen ABZ Encoder.
Gegenfrage: was hast du vor, evtl. gibt es eine andere Lösung?

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

More
5 months 2 days ago #346761 by Asymmetrisch
I have several motor controllers that are driven by differential signals (CLK, #CLK, DIR, #DIR) – the inputs (5V, Ri = 120 Ohm) are not optically isolated. At first glance, it seems that controlling it with my Mesa 7i76EU works perfectly.

For testing purposes, I'd like to use the parallel port or possibly a RP2040 – in addition, I have a "Benezan Mini Breakout Board" left over from a previous setup that I could use.
It would be great if there were a solution for this.

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

More
5 months 2 days ago #346773 by PCW
For testing purposes with just a parallel port, you could use 2 pins for one signal and invert one in hal
to get differential signals.

As long as the output bits come from the same physical port (say PP pins 2..9),  and the hal addf
order and thread is correct. the outputs will change simultaneously.

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

More
4 months 4 weeks ago #346876 by Asymmetrisch
Would this change in the hal for parallel port pin 2/3 be correct?

loadrt not count=1
addf not.0 base-thread

net xstep stepgen.0.step => parport.0.pin-02-out
net xstep => not.0.in
net xstep-neg not.0.out => parport.0.pin-03-out

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

More
4 months 4 weeks ago - 4 months 4 weeks ago #346877 by PCW
Yes. that's correct but looking at the parport driver,
you may be able to do this by inverting the desired
output pin by using the out-invert parameter.

linuxcnc.org/docs/html/hal/parallel-port.html

[This would have the advantage that it would likely  work in reset mode
(which doubles the possible step rate at a given base thread rate)
Last edit: 4 months 4 weeks ago by PCW.

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

More
4 months 3 weeks ago #346959 by Asymmetrisch
Basically, the control works with the software-inverted signal, but this sometimes results in more or less lost steps.
Since it works perfectly with the Mesa card, the solution using RS422 or the ACT drivers would probably be more reliable.
What components would I need for a reliable solution, ideally with multiple channels per axis?

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

Time to create page: 0.415 seconds
Powered by Kunena Forum