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! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-08-2007, 09:51 PM
 
Join Date: Jan 2007
Location: USA Brighton CO
Posts: 117
Clockwork is on a distinguished road
Limit/Home Switch Strategy - Comments?

I'm in the final stages of assembly on router table for wood projects. Using commercial ball screw actuators with vitrually zero backlash.

I recently acquired some expensive Euchner limit switches for cheap on Ebay. They are the type that uses a rotary actuator shaft. Attached to the shaft is a 1.3 inch arm with a steel bearing at the business end.

The switches have high precision and are specified with an 8-degree difference between the NO and NC contacts. My big idea is to use the first contacts actuated (NO) for home switches and the second contacts (NC) for the limit function. It translates to about 2/10 of an inch between the home and limit positions.

If it works, it will be slick to have both functions provided by a single switch body. Don't know if 2/10 of an inch is enough buffer between the two functions - seems like it should be, but I'm new at this stuff. Any Opinions?
Reply With Quote

  #2   Ban this user!
Old 01-09-2007, 05:57 AM
Bubba's Avatar  
Join Date: Mar 2004
Location: LaGrange, GA USA
Posts: 1,357
Bubba is on a distinguished road

What controller are you using? In mine, I have the option to use the home as limits and as a result, only one set of wiring! This also eliminates the potential for having space problems such as you mention (and you know Murphy will come into play here:})
__________________
Art
AKA Country Bubba (Older Than Dirt)
Reply With Quote

  #3   Ban this user!
Old 01-09-2007, 10:28 AM
 
Join Date: Jan 2007
Location: USA Brighton CO
Posts: 117
Clockwork is on a distinguished road
My Controller Setup

Bubba,
Thanks for the response. Murphy's Law is exactly what I'm worried about.

I'm using Mach 3 with a hybrid controller setup. The motors are driven with a StepmasterNC controller. This unit doesn't have an option to connect any inputs. Even if it did, a standard parallel port only gives you 5.

I'm using a Ultimarc IPAC keyboard emulator for the inputs. The unit I have provides for 28 inputs. This allowed me to have separate inputs for plus and minus limits on the X,Y and Z axis and 3 for individual homing on the axis.

It also allowed me to build a push button control box on the router with plus and minus jog buttons for each axis along with an emergency stop button and a limit override button to jog off the limits. It should be very convienient compared to using the mouse and keyboard. Especially if an emergency stop is required. All total, I have 17 inputs heading back to the computer. Had to add an additional inverter chip to reverse the home signals.

Haven't wired anything up yet, I'm still thinking about it and looking for comments.

Hope that clarifies what I'm working with.
Reply With Quote

  #4  
Old 01-09-2007, 12:11 PM
jerber's Avatar
Gold Member
 
Join Date: Nov 2004
Location: Netherlands
Posts: 140
jerber is on a distinguished road

You realy want to connect limit switches through the lpt port.
Mach directly contols the lpt port.
If you do it through the IPAC there can be slight delay wich is not desirable with homing/limits.

Can't you make a "breakout" connector using a male and female db25
connector and some wires ?

Another option is to use some sort of modbus device (plc).
But I don't have experience with it yet.
__________________
____________________________________
Jeroen

Last edited by jerber; 01-09-2007 at 12:13 PM. Reason: forgot a "/"
Reply With Quote

  #5   Ban this user!
Old 01-09-2007, 11:53 PM
 
Join Date: Jan 2007
Location: USA Brighton CO
Posts: 117
Clockwork is on a distinguished road
LPT vs Keyboard Inputs

Jerber

Thanks for the response regarding parallel port inputs vs. keyboard inputs. It was certainly a catalyst for thought and forced me to spend some time surfing the Web to dig out the details of each interface. Here’s what I found.

The time to transmit a complete key press serially from the keyboard to the computer is 324 microseconds. I rounded up to 400 as an allowance for the IPAC microcontroller to do its thing.

If the maximum stepper speed is 1000 RPM, the revolutions per second is 16.7. Using a 1.8 degree/step motor, the time between steps is 300 microseconds. A maximum of 2 steps will continue while the keyboard serial transmission is taking place. If the motor is connected to a 5 TPI ballscrew, this translates to a maximum of 2 thousandths of an inch of additional movement. Even if the motor speed is cranked up to 4000 RPM, it would only overshoot by 8 thousandths (compared to the parallel input) which is less than the mechanical slop in most limit switches.

Once the respective signals arrive at the processor, the keyboard interface is potentially processed much quicker than the parallel port interface. The interrupt priority level (IRQ) of the keyboard is set at a level second only to the system timer, the highest of all perhiperal devices. The IRQ for the parallel port (LPT1) is way down the food chain for getting its interrupt serviced so it may have to wait for a period of time before the input is seen by the system.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-10-2007, 08:20 AM
 
Join Date: Nov 2006
Location: USA
Posts: 261
Willbird is on a distinguished road

I have not mounted limits on my bport yet (no motors other, so you know I'm not running it without limits). I keep thinking about putting a dial indicator in the system, most of them the stem goes clear thru...so it could bump the table, and the other end of it would bump the limit swtich, this would give me a way to verify the accuracy of the operation each time. Zeroing the indicator could be as simple as making a small jig with a setscrew the place over the bracket. And if you wanted to go belt and suspendors I think I can find a way to get a momentary switch in there too to back up the limit.
Reply With Quote

  #7   Ban this user!
Old 02-06-2007, 08:43 PM
 
Join Date: Jun 2006
Location: Canada
Posts: 23
marcusb is on a distinguished road
Timming calculations

Clockwork thanks for the calculations i was thinking of not using my IPac but now i have no reason not to again thanks

Marc
Reply With Quote

  #8   Ban this user!
Old 11-19-2007, 03:53 PM
 
Join Date: Dec 2006
Location: Canada
Posts: 20
skiddaw is on a distinguished road
Limit Switch - Stop time

I came searching for these very calculations as I'm presently installing limit switches to the bed and carriages on my ongoing CNC router. Should consideration be given to the momentum of the system. A motor running at 1000 rpm would normally be brought to a stop using a velocity gradient down to zero. Simply removing power does not necessarily stop the rotation dead. I have no idea however as to how many revolutions, or part thereof, a particular motor might take to stop.

Would this be worthy of an experiment for those willing to test the operation of their limit detection circuit. Data to capture might axis, include motor equivalent, amps, stopping distance.

A say this because I was originally working on a push button design using 'recycled' devices from the front panel on a VHS recorder. These would have been inline with the carriage. Since then I've switch to typical micro-switches which appear to have a movement of 2mm on and 4mm max which I'm driving with a 10x30mm wedge attached to the carriage. Fortunately I have six of these with a roller and both NC and NO contacts. These came from old copiers; 'recycled' switches from old microwave ovens are often only single throw NO.
Reply With Quote

  #9   Ban this user!
Old 11-19-2007, 07:51 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

I wish I had the time to do the experiment, but probably not.

I am using Honeywell 914CE microswitches for home and limits (2 on X and 2 on Y). The home switch also acts as a limit-- and the other switch is only limit++.

You're correct in recognizing that momentum affects the homing switch outcome. I noticed when homing my machine that the speed I was moving altered the actual "home" position. Often just by a .001" (or less), but measurable with a dial indicator. So, homing at 30 IPM gave me a *slightly* different home than when moving at 45 IPM, 60 IPM, etc.

However, now that I have a fixed homing speed - the actual home position is dead on each time. I wonder if other types of switches have more variability when they engage and that could also be an issue.

Steve
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





All times are GMT -5. The time now is 09:21 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