NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

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
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Machining Turning Help in problem "unexpected switch limit"

Welcome, Guest
Username: Password: Remember me

TOPIC: Help in problem "unexpected switch limit"

Help in problem "unexpected switch limit" 06 Dec 2010 08:04 #5895

  • aike
  • aike's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 3
Hi!
I have problem - unexpected error appears "joint 0 on limit switch error", but switch not reached.
I apply the photo:
What is the problem?
None switch limit pressed, I implement flipflop function to find momentary pressed - unfortunatly.
But the error appears.
What event can occure this error, exclude the switch limit event?
The administrator has disabled public write access.

Re:Help in problem "unexpected switch limit" 06 Dec 2010 08:34 #5898

I have had the same problem, but could fix it with some capacitors ( about 220nF) across the switches.
Depending on the cable length, the input resistance of your parallel port and the switching speed of you motor driver, you may have some spikes on the switch input lines caused by electromagnetic interference.

Additional you can use shielded cable between the switches and the parallel port.

best regards,
Martin.
The administrator has disabled public write access.

Re:Help in problem 06 Dec 2010 11:02 #5900

  • aike
  • aike's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 3
turbospeedskater wrote:
I have had the same problem, but could fix it with some capacitors ( about 220nF) across the switches.
Depending on the cable length, the input resistance of your parallel port and the switching speed of you motor driver, you may have some spikes on the switch input lines caused by electromagnetic interference.

Additional you can use shielded cable between the switches and the parallel port.

best regards,
Martin.
Hi!
I include this code in HAL file.

net X.min flipflop.0.set
net X.min-out flipflop.0.out pyvcp.led-xmin

In this case ANY short impulse will switch on the flipflop and the LED in PYVCP will flush. Hence I can found the problem.
But none led flushed, but errors appead. May be there is some invulable interval withing limit procedure, but this interval
make break down the system? What poll time to prevent false contacts switching?
I think that problem is in poll switches function. This function is very sensitive (but why the flipflop not switched?)
I use MESA 7I37 card. This is slow time signal card. And may be the front edge if impulse has short interval and cannot to switch on the led, but can to break out the system?
The administrator has disabled public write access.

Re:Help in problem 06 Dec 2010 11:22 #5901

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1645
  • Thank you received: 86
  • Karma: 116
You could try the HAL debounce component in series with your limit switch input to see if the error is noise related
The administrator has disabled public write access.

Re:Help in problem 07 Dec 2010 22:57 #5923

Just to test if my idea about spikes on the switch lines is right:

Can you remove the switches with cables from their place on the machine and put them (and mainly the cables) far away from the motor power lines?
Or (if that is easier) remove the switch cables form the input of the controller and make a short connection there (or leave open, depends on what is the status for limit switch not reached).

If everything is running correct then, it must have something to do with spikes on the switch inputs, I think.

Then the only question is: why the HAL-FF is not triggered. But to answer this, I must look closer into the source....

best regards,

Martin.
The administrator has disabled public write access.

Re:Help in problem 09 Dec 2010 03:11 #5935

  • Mike_Eitel
  • Mike_Eitel's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Thank you received: 1
  • Karma: 2
I had the same expirence with a retrofit ( good friends fellmann )

After I did a correct grounding-concept ( PC, machine, powersupply, interfaces, etc connected via massive cables to one point ) all spikes disapeared.

I have to point out that the hal.osciloscop helped a lot, a phantastic instrument.

Mike
The administrator has disabled public write access.
Moderators: piasdom
Time to create page: 0.942 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.