Limit Switch Noise and Homing Issue

More
20 Jul 2022 16:02 #247855 by tonybcrazy
Hello All,

I have been struggling with what I think is primarily a limit switch noise and configuration issue and I am hoping to get a second opinion to help me get to a working machine a little faster.  I will preface this by saying I think I have read every limit switch, debounce, and homing config thread on the board and they have helped tremendously but I think I am still missing something.

Basic Machine Config:
This will be a plasma machine when I am done.  It uses steppers for drives and a paraport interface.  I am using this break out board:
File Attachment:

There isn't a ton of info floating around on it and I think it might be because it is not a choice board to use.  Here has the most info I have recently found though I thought I found info on it in the forums previously.  I am open to suggestions on better parallel port board that have decent documentation and performance though I would love it if I didn't have to rewire stuff.

Travel are roughly 48 x 48 x -8 XYZ.  I would like to home the machine at 0,0,0.  X and Y home and at min axis travel and move positive, Z homes at max axis travel and moves negative.

There is one combined limit and home switch per axis and they are all on axis hitting stops at the extents of travel so the switches will be home, max and min travel limits.

The issue:

After some fiddling with the config and wiring I had the NC switches operating as they should according to the HAL monitor but the machine would not home.  I was getting joint limit errors when I shouldn't have.  I could hit limit override but the instant drives were turned on the inputs would start switching randomly and cause the home to fail. I have done my best to use shielded cable and only ground at the control end to avoid ground loops but the limit circuits are heavily influenced by the drives.  To combat this I modified the HAL to use debounce on the limit switches. I started with debounce delay of 20 cycles on the servo thread and the machine almost homed itself.  X and Y would home normally but Z would home then return a joint limit error pretty reliably.  I messed with the homing sequence to observe x and y homing ok before z caused an error. I suspected this was still a noise issue and increased debounce delay to 40 but that cause homing to fail on x and y. I haven't had time to try the other direction for debounce delay.  The z homes successfully btw the error seem to come right after the home sequence even though the z axis has come off the limit switch

Does anyone have any more advice for fixing the noise issue in the HAL or do I need to go to hardware fixes?  I was hoping the BOB had opto isolators but according to the page linked above it doesn't.  I was hoping it did so I could increase the voltage on the limit switch circuit to get more separation between on and off.


 

File Attachment:

File Name: plasmav1.hal
File Size:4 KB

 

File Attachment:

File Name: plasmav1.ini
File Size:3 KB
Attachments:

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

More
20 Jul 2022 17:27 #247861 by tommylight
The BOB is not isolated at all, it has buffer chips, forgot exactly what it was using.
Still i did use one such boards for plasma and it was used for over 7 years.
Just a friendly warning, do not fire the plasma near it till you fix the issues.
So:
-use grounded cable for the PC and machine
-use shielded cable for sensors
-shield connected to ground only on the electronics box
-use a grounded power supply, some new ones are not
-all shields/grounds connected to a single spot on the enclosure
-make sure the shop/house/tent/hut has proper grounding
-use GFR/FID, it is also very useful to check if there is any grounding in the shop
-keep signal wires separate from motor and power wires as much as possible
--
Those are not negotiable for plasma machines, no amount of debounce will do any good and it usually ends up badly.

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

More
20 Jul 2022 19:34 #247868 by tonybcrazy
What is GFR/FID?

I thought I took all the precautions you listed when wiring this thing but I think I will need to take another look at that.

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

More
20 Jul 2022 19:43 #247869 by tommylight
GFI ?
Ground fault interuptor?
The thing that saves your life if you touch a live wire. :)

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

More
20 Jul 2022 19:50 #247870 by Todd Zuercher
Look over the circuits for the inputs on your BOB. Is there any buffer or isolation chips between it and the parallel port? I'm going to assume that the input terminals float at some voltage and are pulled down to ground by the limit switch via the ground terminal beside the input terminal. What voltage does the input terminal float at relative to the ground when nothing is attached?
The following user(s) said Thank You: tommylight

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

More
20 Jul 2022 20:16 #247873 by tommylight
Todd just reminded me, i had added 5 resistors on the inputs, do not recall if they were as pull ups or pull downs, sorry.
I do recall they were for sure one side on the input terminal.

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

More
20 Jul 2022 20:35 #247876 by tonybcrazy
Ok, I am familiar with GFI / GFCI. All of the standard 15 / 20 amp receptacles in my shop are GFI protected. I am also pretty confident the shop is grounded correctly.
The following user(s) said Thank You: tommylight

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

More
21 Jul 2022 15:02 #247951 by Todd Zuercher
If it is simply the pull up is weak or at a marginal voltage level, adding an external pull up could help a lot. (This would be if your false triggers are when your input circuit is open.)

If the false triggers are occurring when the input circuit is closed, then the fix may be more difficult. In this case you are getting voltage noise that is raising your input voltage above the detection level (what ever voltage that is) in spite of it's connection to ground. Here the best solution would be to fix the noise, and or some how raise the voltage threshold for the input signal detection higher than the voltage induced by your noise (by adding a buffer or optical isolation)..

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

Time to create page: 0.237 seconds
Powered by Kunena Forum