NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me

TOPIC: 5i20 7i33 7i37

Re:5i20 7i33 7i37 11 Giu 2012 12:38 #20819

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Thank you received: 1
  • Karma: 5
Hi there.

We've got a question. Is there any way to determine encoder failure (for example cable cutting).

There are 2 pins for each encoder chanel at 7i33 ex. ENCA and /ENCA. So is there any way to check ENCA xor /ENCA and raise Estop on failure?

Thanks in advance :)
The administrator has disabled public write access.

Re:5i20 7i33 7i37 11 Giu 2012 12:50 #20820

  • jd896
  • jd896's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 88
  • Karma: 1
I believe that encoder channels can be checked with a mulitimeeter or an led you can look up the led method here but I don't think this is what you are asking

I think if the following error is set as it should be the missed encoder counts that would come from a loss of channel the machine will estop anyway as this should I think be enough to trip the following error and stop motion
Last Edit: 11 Giu 2012 12:51 by jd896.
The administrator has disabled public write access.

Re:5i20 7i33 7i37 11 Giu 2012 13:19 #20821

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Thank you received: 1
  • Karma: 5
Here's the problem we've faced:
having lathe we got encoder failure on long rapid move like
G0 Z500 X1
G0 Z0 X0
So we have small travel for X axis that is inside ferror tolerance. Once the encode going down to failure (the A channel has been disconnected), PID become unpredictable and the axis continued moving. (LinuxCNC thinks that axis is held in the current position but the axis was traveling).

So it lead to a crash. Likely nobody was injured (the lathe is quite big and strong).

So we want to be sure that any connection or any wiring problem would not lead to a crash.

It can be done by checking xor of both A and /A every MESA tick. Then we can be sure to eliminate any connection problem.
The administrator has disabled public write access.

Re:5i20 7i33 7i37 11 Giu 2012 14:02 #20823

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1671
  • Thank you received: 88
  • Karma: 116
This can be also be checked with some drive heuristics (encoders fail from broken wires _and_ from internal failure/contamination)

One heuristic is the saturated PID check (if you have some integral term a disconnected encoder will cause a drive runaway and a saturated PID output --> Shutdown)

Another heuristic that works with velocity mode drives (and is faster that the saturated PID check) is to verify that the PID output (scaled in velocity -- this is automatic if the PID loop is normalized that is the output is scaled in machine units/second) is within an error band of the commanded velocity.

The best way is to have 2 encoders...
The administrator has disabled public write access.

Re:5i20 7i33 7i37 13 Giu 2012 01:07 #20866

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Thank you received: 1
  • Karma: 5
Why then there are both A and /A channels if not for checking broken wires?

Realization of this check seems to be easy. Why not implement it in Mesa?
The administrator has disabled public write access.

Re:5i20 7i33 7i37 13 Giu 2012 03:32 #20871

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4140
  • Thank you received: 141
  • Karma: 130
Nick wrote:
Why then there are both A and /A channels if not for checking broken wires?

Differential signalling is much more noise-resistant. Especially over longer distances.
en.wikipedia.org/wiki/Differential_signalling
The administrator has disabled public write access.
Moderators: cmorley
Time to create page: 0.979 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.