Hello Guest it is March 28, 2024, 07:29:41 AM

Author Topic: Axis' accumulating error - need to emulate Mach3 output for testing  (Read 6671 times)

0 Members and 1 Guest are viewing this topic.

A lengthy description and discussion of this issue is posted here: http://www.cnczone.com/forums/servo_motors_drives/127477-axis_dont_return_zero_-.html#post935541

Basically, the axis' slowly gain counts and creep in the positive direction.  At this point, the remaining possible culprits seem to be the servo drive itself, and Mach3.

I would like to rule out Mach3 by simulating its output.  Is there something available that will provide the pulse train output for the charge pump, and the ability to exercise one axis?

Thx
Scott Kelley

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Have you tried changing the active state for the step pulse, I seem to recall hearing some others have this issue when the active state was set wrong for their drives.
Hood
I have tried changing the active state.  As I recall, it seemed to make no difference.  But I did not do so while running the test that I described.  I will do that this evening in order to determine exactly what the effect is.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Ok well afraid I have never used any CNC4PC BOBs but if your drive has opto isolation and the BOB also has it on the step/dir outputs it may be  the issue.
Noise on Step/Dir could also be a cause as well.
Hood
if your drive has opto isolation and the BOB also has it on the step/dir outputs it may be  the issue.
Hood

Yes, the BOB does have opto-isolation on the step & direction lines, and the servo driver also has opto-isolated inputs.  What is your concern re. this?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
I have seen it mentioned several times that double opto-isolation can cause issues and definitely recall some saying that when they connected direct to the port to test their issue was solved. I am not an electronics guy so I can only go with what I see people saying works for them.

Hood
I would be very suspicious of the BOB. The design of the opto circuits on that board leave a lot to be desired, especially for servo systems that require much higher step rates than steppers.  I had several C11s, and they all topped out at a very low step frequency, and  badly distorted the signal.  I was able to re-bias the optos and get them to run over 125kHz, but out of the box they completely stopped passing the step pulses at something well under 30kHz, due to improper opto biasing, and a strange pulse-shaping circuit they use.  If you slow down your max speeds, and the problem goes away, that would be a good indication this could be the problem.  If you can prove the BOB is at fault, I suspect you could get Arturo at CNC4PC to swap it out.  He exchanged mine several times over a number of years, and finally swapped the C11 for a, IIRC, C25, which behaves much better.

Regards,
Ray L.
Regards,
Ray L.
Interesting... I will take a look at signals on both sides of the optos tomorrow.

Some more food for thought:

I just ran a test on the servo itself that indicates that the servo is registering fewer pulses in one direction than Mach is supposed to be sending.  (missing approximately 10-30 pulses per 30,000 sent).

The errors occur only in one direction - the count in the other direction is dead on every time.  Seems to me that the step pulse would be the same in either direction, so would expect the same error both directions...

The number of errors per inch decreases as the feed rate is decreased.

Changed step pulse width setting to 1 uS and tested, then to 5 uS and tested.  Did not see a significant difference.  Would expect 1 uS to cause significantly more problem if it was caused by slow circuitry.  But then, I was not looking at the signals, so can't verify  that the change even occurred.  

Since I started this, I have done many things to eliminate any possible noise on the signal lines - None of those changes has made a single bit of difference, and they are now nowhere near anything noisy.  





Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
The biggest thing you can do to make Step/Dir noise resistant is to make them differential. All my servo drives can accept single or differential so I make sure I take advantage of them being capable of differential by using it.
Not saying thats your problem and not even sure if your drives can accept differential but its something to consider as it makes wiring less problematic.
Hood
I have neither differential inputs nor outputs.  The point that I was trying to make with my last statement is that I don't think that the problem is noise on those lines, because if that was the problem, it would have at least been improved by the dramatic changes that I have made while trying to run down this problem, and I have actually seen NO CHANGE at all.