Trinamic PANdrive closed loop steppers.
-
I have a pair of Trinamic PANdrive closed loop steppers that I want to use on my printer's X and Y axes, wired to the expansion breakout board (E2 and E3) connected to a Duet 2 Ethernet Firmware- Version: 2.03 (2019-06-13b2). The PANdrive is wired as follows:
GND(Ground)
V+(24V)
RS485+ (disconnected)
RS485- (disconnected)
STEP+(S+)
STEP-(S-)
DIR+(D+)
DIR-(D-)
/EN(E-)
DIAG (disconnected)E+
on the expansion breakout board is not wired.
I believe that the PANdrive is wired correctly to the expansion breakout board (Trinamic support confirmed this), but it is not responding to movement commands. I have tried setting the driver enable polarity (M569 R#) to "active high" and "active low", still no movement. I have mapped the custom drives: M584 X5 Y6 Z2 E3. I have also tried connecting /EN toE+
but no change in result.Am I missing something in the firmware? Any suggestions on what else I can try?
-
External drivers with opto isolated inputs always require extended step pulse timing. See the T parameter of the M569 command on the GCodes wiki page.
-
@dc42 Thank you for the reply! Can you advise on a value for the step pulse timing that might work? If not, I will contact Trinamic support.
-
@marnog The trinamic datasheet should specify this.
-
@t3p3tony Thanks!
-
@dc42 & @T3P3Tony , I received feedback from Trinamic regarding the step pulse timing. They provided me with step pulse width and interval values which I set as per the GCodes wiki page (M569 P5 R1 T0.5:0.5:0.125:0), but still no movement.
Trinamic also advised that the drives have RS485 transceivers, and not a optocouplers. Could this make a difference? -
Try much higher values, i had a similar problem with my servo and the values needed for step pulse timing needed to be around 200-300%. if it works for like T30 then try to dial it down.
-
@nitrofreak I'm going to try that. 200-300% for the step pulse width and interval values only, or also for the direction setup time?
-
@marnog said in Trinamic PANdrive closed loop steppers.:
@nitrofreak I'm going to try that. 200-300% for the step pulse width and interval values only, or also for the direction setup time?
I just increased them all, and it started working.
Specifically, they wanted 2.5 microseconds for step pulse timing and 5 microseconds for the direction setup time. When i set the duet to T3:3:6:6 it worked fine for slower speeds, but after 250mm/s i saw a small uniform layershift every step. So i just increased everything to T8:8:10:10 and it worked. -
@nitrofreak said in Trinamic PANdrive closed loop steppers.:
@marnog said in Trinamic PANdrive closed loop steppers.:
@nitrofreak I'm going to try that. 200-300% for the step pulse width and interval values only, or also for the direction setup time?
I just increased them all, and it started working.
Specifically, they wanted 2.5 microseconds for step pulse timing and 5 microseconds for the direction setup time. When i set the duet to T3:3:6:6 it worked fine for slower speeds, but after 250mm/s i saw a small uniform layershift every step. So i just increased everything to T8:8:10:10 and it worked.It didn't work. Trinamic advised 0.5µs minimum. I tried 1.0µs, 2.5µs, up to 5.0µs - nothing.
-
@dc42 & @T3P3Tony , I have been communicating with Dirk Heuer of Trinamic about this issue, but it still persists. Will it be possible for Dirk to contact you directly via e-mail to try to resolve this issue? If so, I will appreciate it you can send me your contact details via DM which I will forward to Dirk for him to contact you. I will truly appreciate it.
-
Sure, he can contact us. Ask him to get my email address from Mario or Timo at Trinamic.
The driver chips used by the expansion breakout board are similar to RS485, so the signal levels should be compatible.
If you are just seeing 1 lost step at each change of direction, then it is probably the step-to-direction hold time that is critical. Shortly after sending the leading edge of a step pulse, RRF updates the direction signal ready for the next step, taking care to satisfy the configured step-to-direction hold time.
-
@dc42 said in Trinamic PANdrive closed loop steppers.:
Sure, he can contact us. Ask him to get my email address from Mario or Timo at Trinamic.
The driver chips used by the expansion breakout board are similar to RS485, so the signal levels should be compatible.
If you are just seeing 1 lost step at each change of direction, then it is probably the step-to-direction hold time that is critical. Shortly after sending the leading edge of a step pulse, RRF updates the direction signal ready for the next step, taking care to satisfy the configured step-to-direction hold time.
Thank you very much David, I will relay the message and ask him to get in touch with you. I appreciate your help!