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 10-27-2005, 06:40 PM
 
Join Date: Jan 2005
Location: USA
Posts: 9
rebrumm is on a distinguished road
need help with simple logic circuit

since i am asking this question all will know how stupid i am ,,but here goes anyway. i need a simple circuit that will let me turn a logic high to low through a mechanical limit switch.

to be more specific my driver board, 2 axis, LMD 18245 has enable ports set high and i want to put limit switchs on X and Y to set them low and shut the axis off.

a single chip would be best

russ brumm
Clairton PA
Reply With Quote

  #2   Ban this user!
Old 10-27-2005, 07:04 PM
 
Join Date: Aug 2005
Location: USA
Posts: 1,622
One of Many is on a distinguished road

Originally Posted by rebrumm
since i am asking this question all will know how stupid i am ,,but here goes anyway. i need a simple circuit that will let me turn a logic high to low through a mechanical limit switch.

to be more specific my driver board, 2 axis, LMD 18245 has enable ports set high and i want to put limit switchs on X and Y to set them low and shut the axis off.

a single chip would be best

russ brumm
Clairton PA
If these are tied high to a positive voltage, you could place a single pole double throw toggle switch in the lines to the enable ports. Connect the outputs going to the enable ports on the switches common terminals and the high on one set terminals and ground on the other set. Just verify the switch orientation to the terminals so you don't create a direct short.

Another way is to use a single non-maintained push button that could trigger a flip-flop circuit to control the on/off. Somewhat more complex, but not impossible.

Do you know what the voltage sources are that tie these inputs high? This could involve associated circuits if the inputs require 24v.

DC
__________________
Learn cause and effect through experience. Mastering those relationships is the "Common Sense" ability within the art of any trade.
Reply With Quote

  #3   Ban this user!
Old 10-27-2005, 08:19 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

051027-1950 EST USA

rebrumm:

First, go to www.national.com . Search for LMD 18245. Then find the datasheet and print it out.

The 18245 itself has a brake input. The logic inputs to this chip are TTL and CMOS compatible. A logic 1, anything from +2 to +12 v, causes braking by shorting the motor coil.

Since you indicate that your board is enabled (not braked) when the enable line is high this means there is an inverter between the enable line and the brake input to the 18245.

You have not specified the logic voltage levels at the input to you board. You need to do this.

You are describing your board as a two axis board. This may imply that you have two dc motors using two 18245s, or there are four 18245s and two stepper motors. If this one board was driving a single stepper, then you would connect both enables together.

Lets assume the board inputs are CMOS gates, and the phasing is as you indicate. Then I would put a low resistance, maybe 390 to 1000 ohms from the enable input to common (you might call it ground). This by itself would force the logic input low and thus thru the input inverter activate braking (logic 1 at the 18245 input).

Next connect a 4N35 optical isolator between your logic + supply and the enable pin. When you turn the optical coupler on this will pull the enable input high.

At the input to the optical coupler you need maybe 10 to 20 ma to over drive the coupler. Then use a normally closed limit switch that opens when the limit is made and an appropriate current limiting resistor to achieve the 10 to 20 ma current.

If you put a limit switch at advanced and another at returned, then put these two in series with the 4N35 and opening either one will stop the motor.

.
Reply With Quote

  #4   Ban this user!
Old 10-28-2005, 05:11 PM
 
Join Date: Jan 2005
Location: USA
Posts: 9
rebrumm is on a distinguished road

after reading the 18245 data sheet, my driver board manual and viewing the schematic .the enable lines do serve the brake on the 18245 thru the microcontroller. if i wasn't using limit switches i should have jumpered them to Vcc. now i am really confused i can run the motors in turbocnc with or without the jumpers, high or low it doesn't matter. time to email the boards designer
thanks for your time
Reply With Quote

  #5   Ban this user!
Old 10-28-2005, 05:34 PM
 
Join Date: Jan 2005
Location: USA
Posts: 9
rebrumm is on a distinguished road

it just occured to me. is a logic low the same as no connection? in my case logic high would be 5v so would logic low be 0v (no connection at all?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-29-2005, 12:15 PM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 1,102
H500 is on a distinguished road

Logic low is and no connection is not necessarily the same thing. You need to connect the pin to 0v
Reply With Quote

  #7   Ban this user!
Old 10-29-2005, 02:28 PM
CLaNZeR's Avatar  
Join Date: Jul 2005
Location: UK
Posts: 101
CLaNZeR is on a distinguished road

Hi Russ

The simplest way is to take your 5volts to the chip via a resistor, say a 4k7 in value. One end of the resistor to 5volts and the other end to the chip enable pin.

Then attach one end of you normally closed switch to the enable pin of chip and the other side of the switch to 0Volts.

When the switch gets activated the circuit will get broken and 5volts will appear on the chip pin rather than 0volts without creating a short.

Regards

Sean.


Originally Posted by rebrumm
since i am asking this question all will know how stupid i am ,,but here goes anyway. i need a simple circuit that will let me turn a logic high to low through a mechanical limit switch.
Clairton PA
__________________
********************
http://www.cncdudez.co.uk
Reply With Quote

  #8   Ban this user!
Old 10-30-2005, 02:26 AM
 
Join Date: Aug 2005
Location: USA
Posts: 1,622
One of Many is on a distinguished road

Originally Posted by rebrumm
it just occured to me. is a logic low the same as no connection? in my case logic high would be 5v so would logic low be 0v (no connection at all?
No, the connection would be left floating. Not a good idea in some circuits. This could leave the inputs capable of changing states at any inconvenient time due to interference. A zero should be tied to ground on most/all inputs.

DC
__________________
Learn cause and effect through experience. Mastering those relationships is the "Common Sense" ability within the art of any trade.

Last edited by One of Many; 10-30-2005 at 07:49 PM.
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 10:49 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