CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Mach Mill



This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-26-2007, 05:41 PM
 
Join Date: Sep 2006
Location: US
Posts: 10
RichardV48 is on a distinguished road
Limits/Noise problem

Guys, I need some help with a limits/ noise problem. I ran this by Art with Mach 3 and he suggested I check with you. I wired the X, Y, and Z limits in series rather than individually. Everything, limits and motors have shielded cable which is connected to a common ground. The limits work correctly as far as being able to manually operate a switch and get the led to light in Mach 3, a limit switch triggered indication and a restart indication. The problem is that about every 20 seconds the limit led will flicker and I get a reset condition indicating a limit switch was triggered. I assume this is a noise spike. When this spike or led flicker occurs the Xylotex controller is turned on and the motors are locked up, but nothing is being cut so they are not running. I disconnected all motors and powered up the controller and the flicker does not occur. I plugged in one motor, powered up the controller and the limit led flickers. This happens regardless of which single axis, X, Y, or Z is plugged in.
I started with a debounce setting of 2000 and worked up to 7000, which Art said is equal to 280ms in time and it has no effect on the problem. There is a debounce interval and a index debounce setting. How should each of these be set?
Art indicated a capacitor across the line may correct it but wasn’t sure what size to use.
I would like to find out what is causing the spike and correct it if possible. What is the best way to track this down?
Reply With Quote

  #2   Ban this user!
Old 03-26-2007, 06:40 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,877
Torchhead is on a distinguished road

Is this feeding directly into the parallel port or through some form of isolation? I assume the switches are wired in NC format and that when a switch opens it lets the pin go high and MACH is set to active High. If the limit LED flickers than I would suspect a bad element in the string or ground problems. It is, after all, clamping the input pin to ground and noise would have to be on the ground itself. Also make sure (with an ohmmeter) that there is no connection between the switches and their ground to the table. If you have grounded your table, power supply or other parts to AC safety and the table itself too then you might have a ground loop situation. The Xylotex is referenced to the same ground as the PC and the Motor DC is the same. With everything going to the same ground it presents an excellent opportunity for ground loops. I doubt a cap will get rid of it. If an input can go positive enough to turn on the input and it's clamped to ground the noise has to be coming FROM the ground!. The fact debounce has no effect on it means it's not noise spikes or even PWM noise. It's something with a much lower frequency component.

A ground loop is defined as having more than one ground for a signal to travel on in a system. Worse grounding technique is a daisy-chain ground. Next worse is having a component that is grounded from two different directions. Either take all grounds to a central "master" grounding point (star ground) or use galvanic isolation (separate grounds and voltage sources) between systems.



Tom Caudle
www.CandCNC.com
Reply With Quote

  #3   Ban this user!
Old 03-26-2007, 06:42 PM
 
Join Date: Mar 2006
Location: Indonesia
Posts: 24
kkilst is on a distinguished road
"External E-Stop Required"

Gentleman,
May be we are facing the same and this irritating problem.
Retrofit 3-axes milling machine using Rutex R2010 drives and MACH3.
I am facing this unsolved problem, that is one the drives (mostly Z-axis, sometimes X-Axis)
tripped in the middle of program run, with "External E-Stop Requested" appearing in MACH3 status screen.
Debounce Interval 15000, and all limit-switches and E-Stop with 0.1uF ceramic capacitor installed.
X,Y,Z limit-switches (parallel connected) are Active Low, and E-Stop can only be set to Active High.
This problem originates from Rutex R2010 drives or MACH3 setting ?
Comments and ideas is appreciated
AssoProf. Lie S.T. (Nanyang Technological University)
Reply With Quote

  #4   Ban this user!
Old 03-26-2007, 07:13 PM
 
Join Date: Sep 2006
Location: US
Posts: 10
RichardV48 is on a distinguished road

Tom,
Thanks for the input.
There is nothing between the parallel port and the controller board and the switches are wired in a NC format. Everything is tied back to a common receptical ground. The shielded cable is grounded on one end only and they are all tied to a common point. I'll do some checking with the meter and see what I come up with.
Thanks,
Richard
Reply With Quote

  #5   Ban this user!
Old 03-27-2007, 11:13 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,877
Torchhead is on a distinguished road

Originally Posted by RichardV48 View Post
Tom,
Thanks for the input.
<snip>Everything is tied back to a common receptical ground. </snip>
Richard
So every ground in the system (table itself, motors, PC chassis, Shields, Motor DC neg) is all tied back to that one receptical ground?

And where might that receptical be grounded? 20ft away? 60ft? maybe not until it gets to the light pole outside?

The grounding and shielding for an system with high current waveforms (like the motor PWM from the drivers) is a bit more complicated than for 60HZ AC. Switching high current at higher frequencies injects noise on the attached conductors. The higher the frequency the shorter the length of conductor taht will "load up". Even poorly grounded 60HZ components that have two or more ground paths can set up a loop condition that can cause problems.

Unless you can confirm the validity of a ground (golden rod driven to the center of the earth (:-)) every point in a system is above ground by some amount. If you make everything in a system tie to the same point even if it is above ground the net voltage differential will be closer to zero.

When you see weird problems in signals you have to think noise. When conventional things like filter caps, shielded cables and debounce numbers above 2000 don't fix it you can start to suspect it is a ground related issue.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-28-2007, 07:16 PM
 
Join Date: Sep 2006
Location: US
Posts: 10
RichardV48 is on a distinguished road

Tom,
I disconnected all the grounding on the machine except for the power cord ground to the controller and the pc. I believe that would have eliminated any ground loop conditions, and got the same indication. With all motors disconnected and the controller powered up, there is no limit tripped. As soon as I connect a motor from any axis the limit led flickers and I get an estop.
If the spike was coming in from the local ground wouldnt it trip a limit indication without the motor hooked up?
Reply With Quote

  #7   Ban this user!
Old 06-13-2007, 06:23 AM
 
Join Date: Feb 2007
Location: UK
Posts: 18
mr_mocap is on a distinguished road
Limit switch false triggering

Just read this thread with interest as I seem to have the same problem (or similar) after getting my machine running for the first time - limit switches trigger without being hit when homing / running cycles. So I wondered, did the problem get resolved in this case, if so, what fixed it? I think I can make everything reliable but any pointers I get in the meantime would help greatly...
Reply With Quote

  #8   Ban this user!
Old 06-13-2007, 07:57 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

What kind of PC interface are you using? Isolated or non-isolated?

What is your PC LPt port output voltage for a logic High? 5 Volt or 3.3 Volt?

Were are you getting the logic voltage attached to the limit switches from? From the PC´s power supply or from the Controller´s power supply?
Reply With Quote

  #9   Ban this user!
Old 06-13-2007, 08:57 AM
 
Join Date: Feb 2007
Location: UK
Posts: 18
mr_mocap is on a distinguished road
Electrical problems...

Originally Posted by kreutz View Post
What kind of PC interface are you using? Isolated or non-isolated?

What is your PC LPt port output voltage for a logic High? 5 Volt or 3.3 Volt?

Were are you getting the logic voltage attached to the limit switches from? From the PC´s power supply or from the Controller´s power supply?
Thanks for replying! I measured the voltage at the port, and it is 5V. I also have a digital hand held scope purchased recently, I believe it can operate in storage mode and this should help isolate problems of this nature (but I haven't yet had the time to investigate this functionality). All voltages are supplied by the PC at the moment, unisolated as it happens. The limit switches are NC in series, so they are grounded when unoperated and the input floats high when the switches operate. The cables are shielded with the shield connected to domestic earth, rather than digital ground. I was a bit surprised that there was a glitch of this nature as the port inputs should effectively be hard grounded when the machine is away from the limits, but there is obviously some noise somewhere. I have considered using a relay to the port pin - this would relocate the digital signal to the proximity of the controller case, rather than having it extended all over the machine. I also suspect the problem will be worsened when the spindle is running, which it isn't yet as I am trying to resolve problems in turn...
Reply With Quote

  #10   Ban this user!
Old 06-13-2007, 09:10 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by mr_mocap View Post
Thanks for replying! I measured the voltage at the port, and it is 5V. I also have a digital hand held scope purchased recently, I believe it can operate in storage mode and this should help isolate problems of this nature (but I haven't yet had the time to investigate this functionality). All voltages are supplied by the PC at the moment, unisolated as it happens. The limit switches are NC in series, so they are grounded when unoperated and the input floats high when the switches operate. The cables are shielded with the shield connected to domestic earth, rather than digital ground. I was a bit surprised that there was a glitch of this nature as the port inputs should effectively be hard grounded when the machine is away from the limits, but there is obviously some noise somewhere. I have considered using a relay to the port pin - this would relocate the digital signal to the proximity of the controller case, rather than having it extended all over the machine. I also suspect the problem will be worsened when the spindle is running, which it isn't yet as I am trying to resolve problems in turn...
If you are supplying the +5V from the PC, then use the +5V Power ground and disconnect the ground on the controller's side from pins 18 to 25 of the DB25 connector ( you can leave them tied together), that will eliminate a possible ground loop. Check that all your power ground (return for +5Volt power) connections are solid, a false contact on the ground connection used by the limit switches will appear as a limit switch trip.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-13-2007, 09:27 AM
 
Join Date: Feb 2007
Location: UK
Posts: 18
mr_mocap is on a distinguished road

Originally Posted by kreutz View Post
If you are supplying the +5V from the PC, then use the +5V Power ground and disconnect the ground on the controller's side from pins 18 to 25 of the DB25 connector ( you can leave them tied together), that will eliminate a possible ground loop. Check that all your power ground (return for +5Volt power) connections are solid, a false contact on the ground connection used by the limit switches will appear as a limit switch trip.

I misunderstood your question earlier re. the 5V supply. There is no 5V supply as such; I am using the properties of the parallel port to represent a logic 1 when the port is (effectively) disconnected. It is my understanding that there is an internal pull-up that ensures this is the case? In this event the ground reference I'm using is of course the DB25 ground pins. However, you may tell me that this is not a good way of doing things in which case I'm all ears!

Really I would prefer not to extend the PC's 5V supply unless there is a benefit in doing so, as it makes the setup a little messier than I would like. If 5V is actually necessary for some reason I would normally derive this from the controller's existing 12V supply, using a 7805 or similar positive fixed voltage regulator.

Having said all of that I am having unexpected problems, obviously, so any further advice or opinions are very welcome!
Reply With Quote

  #12   Ban this user!
Old 06-13-2007, 09:46 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by mr_mocap View Post
I misunderstood your question earlier re. the 5V supply. There is no 5V supply as such; I am using the properties of the parallel port to represent a logic 1 when the port is (effectively) disconnected. It is my understanding that there is an internal pull-up that ensures this is the case? In this event the ground reference I'm using is of course the DB25 ground pins. However, you may tell me that this is not a good way of doing things in which case I'm all ears!

Really I would prefer not to extend the PC's 5V supply unless there is a benefit in doing so, as it makes the setup a little messier than I would like. If 5V is actually necessary for some reason I would normally derive this from the controller's existing 12V supply, using a 7805 or similar positive fixed voltage regulator.

Having said all of that I am having unexpected problems, obviously, so any further advice or opinions are very welcome!
Don't trust the pull-up on the LPT port, there are many flavors of them. Limit switches (micro-switches in general) need a minimum current flow in order to keep the contact resistance low, normally it is around 5 mA. You will need a means to provide it in order to get reliable results, and so the need to tap the PC's power supply. 1Kohm pull up attached to the +5 volts is enough. Use a 0.01 uF ceramic capacitor between the 1Kohm resistor and ground, it will serve as a filter and also help keeping clean the contacts when they open and close.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Frustrated beyond limits!! widgitmaster Mach Mill 35 12-15-2006 07:08 PM
Out of limits monte55 Machines running Mach Software 7 11-04-2006 09:28 PM
we all need limits! senor J. General Electronics Discussion 28 08-24-2006 12:06 AM
limits jc286006 TurboCNC 2 09-08-2005 05:05 PM
Inverter noise problem Help !!! mbam Phase Converters and VFD 17 06-06-2005 05:24 PM




All times are GMT -5. The time now is 12:32 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361