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 > Hobbycnc (Products)


Hobbycnc (Products) Discuss Hobbycnc controller boards here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-23-2007, 08:05 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road
Runing out of pins?

I am currently connecting up my homing/limit switches but running out of pins.

Would this setup be OK?

Pin 10 Limits and E-stop
Pin 11 X homing/limit
Pin 12 A homing/limit(slaved with X)
Pin 13 Y homing/limit
Pin 14 Solid State Relay for router

At present I cant afford a breakout board.
Reply With Quote

  #2   Ban this user!
Old 04-23-2007, 08:33 PM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 47
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Hi Bigz1,

Taken from the Turbocnc manual (hope this is ok).

On the parallel port, pins 2-9 are always available for output, which allows at least 4 axes of motion to be controlled. Pins 1,14,16, and 17 can be output also, to control spindles, coolant pumps, and tool changers.
The parallel port inputs are on pins 10,11,12,13, and 15. These are TTL level signals as well. Typical uses for these are spindle encoders, limit switches, and extra logic for detecting when you’ve run out of stock.

Pins 18-25 are ground. Use some of these to shield your cables.

Hope it helps,

John
Reply With Quote

  #3   Ban this user!
Old 04-27-2007, 03:28 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

On pins 1,14,16 and 17 I am thinking of attaching a terminal block. If I put a pair off 10 K resistors in the terminal at 1 & 14 and 16 & 17, will this be OK? Or do I solder them across the terminal pins under the board?
Reply With Quote

  #4   Ban this user!
Old 04-29-2007, 08:25 PM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 47
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Originally Posted by bigz1 View Post
On pins 1,14,16 and 17 I am thinking of attaching a terminal block. If I put a pair off 10 K resistors in the terminal at 1 & 14 and 16 & 17, will this be OK? Or do I solder them across the terminal pins under the board?

Would be interested to know why you are using the resistors but I use terminal blocks and 10k resistors for my home and limit switches.

John
Reply With Quote

  #5   Ban this user!
Old 04-30-2007, 05:36 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

I intend to use 3 off th pins. One for Relay for router the 2ndr for Z Zero plate and the 3rd for a posible tool wear compenstor???(similar to Zero plate but to compensate waer on end mills).
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-02-2007, 12:44 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

I would use values lower than 10K for the pullups, specifically 1K. If you wind up with false limits or stops then put a 10K across the switches.
Attached Thumbnails
Click image for larger version

Name:	limit.png‎
Views:	120
Size:	3.3 KB
ID:	36664  
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #7   Ban this user!
Old 05-08-2007, 06:02 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

Got the Relay to work for spindle from pulled up pins today. Thanks guys.

Now I want to add a Zero Plate guess I will have to save up for a breakout board if I want inputs?
Reply With Quote

  #8   Ban this user!
Old 05-08-2007, 06:44 PM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 47
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Originally Posted by bigz1 View Post
Now I want to add a Zero Plate guess I will have to save up for a breakout board if I want inputs?
If you need more than five input pins you will need another PCI parallel port card as well as a simple connect BOB.

Originally Posted by pminmo View Post
I would use values lower than 10K for the pullups, specifically 1K. If you wind up with false limits or stops then put a 10K across the switches.
I got the info for the 10K resistors from some where not sure now but it could have been from Xylotex.

In simple terms why would you recommend 1K resistors over 10K and will the 10K course problems? I’ve used them now for about two years without any problems that I know of.

John
Reply With Quote

  #9   Ban this user!
Old 05-08-2007, 07:32 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by Oldmanandhistoy View Post
If you need more than five input pins you will need another PCI parallel port card as well as a simple connect BOB.



I got the info for the 10K resistors from some where not sure now but it could have been from Xylotex.

In simple terms why would you recommend 1K resistors over 10K and will the 10K course problems? I’ve used them now for about two years without any problems that I know of.

John
Little known detail: micro-switches have a maximum specification for current and a minimum current specification too.

The switches are specified for number of cycles during their lifetime at a specified test switching current. The contact wear consists of mechanical wear and electrical wear.

Mechanical wear makes the gap bigger depending the amount of switching cycles, contact material, and contact force during the lifetime of the switch,
The electrical wear consists of two main mechanisms: arching vaporizing/corroding the contact alloy, and non-conductive contact oxide formation due to environmental conditions. Normal contact arching (within the specified current range) acts as a cleaning mechanism for the oxide layer that develops on the contacts, when that mechanism does not exist due to less than the minimum contact current, the life expectancy decays fast due to false contacts and switching noise.

By using a 1K resistor to VCC you are satisfying the 5 mA minimum current requirement for most of the small signal micro-switches (5- 30 mA @ 30 VDC).

Attaching a small value ceramic capacitor across the switch contacts will help cleaning the contacts by discharging the capacitor when the switch contacts close, and filtering some contact noise due to bouncing.
Reply With Quote

  #10   Ban this user!
Old 05-09-2007, 09:53 AM
 
Join Date: Mar 2005
Location: ENGLAND
Age: 47
Posts: 1,655
Oldmanandhistoy is on a distinguished road

Originally Posted by kreutz View Post
Little known detail: micro-switches have a maximum specification for current and a minimum current specification too.

The switches are specified for number of cycles during their lifetime at a specified test switching current. The contact wear consists of mechanical wear and electrical wear.

Mechanical wear makes the gap bigger depending the amount of switching cycles, contact material, and contact force during the lifetime of the switch,
The electrical wear consists of two main mechanisms: arching vaporizing/corroding the contact alloy, and non-conductive contact oxide formation due to environmental conditions. Normal contact arching (within the specified current range) acts as a cleaning mechanism for the oxide layer that develops on the contacts, when that mechanism does not exist due to less than the minimum contact current, the life expectancy decays fast due to false contacts and switching noise.

By using a 1K resistor to VCC you are satisfying the 5 mA minimum current requirement for most of the small signal micro-switches (5- 30 mA @ 30 VDC).
Hi kreutz,

Thank you for the information and your time it is very much appreciated. It’s nice to have a full understanding which you have provided.

I will change the 10K resisters for 1K as soon as I get the time.

Originally Posted by kreutz View Post
Attaching a small value ceramic capacitor across the switch contacts will help cleaning the contacts by discharging the capacitor when the switch contacts close, and filtering some contact noise due to bouncing.
On the subject of switches I have noticed a strong spark through a small hole in the switch when I switch the power on to my drives. This does concern me even though the switch is suitably rated. Do you think this will be damaging the switch to the point it could weld the contacts and would a capacitor help here? It’s switching 45Vdc at around 11Amps; the switch is rated 240V and 13Amps.

John
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-09-2007, 05:02 PM
bigz1's Avatar  
Join Date: Apr 2006
Location: NZ
Posts: 485
bigz1 is on a distinguished road

Thanks Kreutz for the info. What size would you suggest on the capacitor?

I tried the limit switches today they work but interfere with the stepper motors. Losing steps making unusal noises. Any advice on correcting this would be appreciated? Debounce setting in MACH is at 8000. Steppers work fine as soon as Homing/Limits are disconected. All wire is shielded and earthed in a star pattern.

Liam
Reply With Quote

  #12   Ban this user!
Old 05-09-2007, 05:53 PM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Originally Posted by Oldmanandhistoy View Post

On the subject of switches I have noticed a strong spark through a small hole in the switch when I switch the power on to my drives. This does concern me even though the switch is suitably rated. Do you think this will be damaging the switch to the point it could weld the contacts and would a capacitor help here? It’s switching 45Vdc at around 11Amps; the switch is rated 240V and 13Amps.

John
Are you talking about the main power supply switch or the limit micro-switches?

Every switch has two different ratings: AC and DC. Check that you are reading DC specs. Can you, please post a diagram of your circuit?

1Kohm to VCC and 0.047 to 0.1 uF/ 50V ceramic capacitor across the limit micro-switches will be ok. Take into account that mechanical vibration will trigger your micro-switches depending on their construction. There are specifically designed micro-switches for limit switch applications. Opto-coupler isolation will help rejecting induced noise.
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
More on ports and pins andrewbishop66 Mach Software (ArtSoft software) 2 03-08-2007 07:05 PM
Changing tool height ofsets and re-runing program Fudd Fadal 4 11-03-2006 08:01 AM
Any one runing Allen B Ultra100 in Step/dir DennisCNC Servo Motors and Drives 4 06-15-2006 09:26 PM
Anyone runing ~2,600 oz steppers? DennisCNC Stepper Motors and Drives 6 05-31-2006 11:05 PM
ports and pins planescott Stepper Motors and Drives 5 03-24-2006 11:57 PM




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