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 02-08-2010, 10:23 AM
FXC FXC is offline
 
Join Date: Nov 2009
Location: USA
Posts: 38
FXC is on a distinguished road
Smile Relay control with BOB - parallel port pins are always +5V until CNC software startup

I was trying to make my first "extra" by controlling a water pump (flood) with a relay hooked up to my C10 breakout board. I thought it would be as simple as wiring a N.O. relay to any available output and be done with it.

Unfortunately, all my output pins are set to "1" (+5V) anytime the PC is restarted and so the water pump turns on and pumps like crazy until I enter EMC2 (or Mach3) and toggle the flood control.

I was about to build a negating gate and tell the software to invert the output but I don't think this is the way to go. Please let me know of a simple solution - THANK YOU!
Reply With Quote

  #2   Ban this user!
Old 02-08-2010, 11:37 AM
 
Join Date: Nov 2007
Location: USA
Posts: 187
multiplex is on a distinguished road

this is where a charge pump circuit comes into play. Mach outputs a frequency on one of the pins, which turns the power on to the board. This way you don't get any unexpected outputs while rebooting, etc.

I always loved it when i pulled into my driveway, and could hear that my router had been running all day long due to a power outage, or computer reboot.

since you are using a C10 board, you are already familiar with cnc4pc.

http://www.cnc4pc.com/Store/osc/prod...products_id=51
Reply With Quote

  #3   Ban this user!
Old 02-08-2010, 11:51 AM
FXC FXC is offline
 
Join Date: Nov 2009
Location: USA
Posts: 38
FXC is on a distinguished road

I was afraid that a charge pump would be the only solution. Thanks for the link; though I think the price is a little steep... I need 4 - a little over $100. And besides, it shows it's on backorder as of today (2/8/10).

I'll be looking for alternatives, maybe a multi-I/O unit, but if you readily know of something other than cnc4pc, please let me know. Thanks again.
Reply With Quote

  #4   Ban this user!
Old 02-08-2010, 12:36 PM
 
Join Date: Nov 2007
Location: USA
Posts: 187
multiplex is on a distinguished road

i'm not sure you need four, however i haven't implemented one yet.

i'm assuming the charge pump would switch the 5v that is going to the c10 board. therefore, all outputs will be dead.

I usually get some twitching on my stepper outputs too.
Reply With Quote

  #5   Ban this user!
Old 02-08-2010, 12:42 PM
FXC FXC is offline
 
Join Date: Nov 2009
Location: USA
Posts: 38
FXC is on a distinguished road

That's right, only one is needed, I realized that in the meantime. Still, the ones from cnc4pc are on backorder and I can't find anything anywhere else. It would have been nice if I could just close up my control box and put it away sooner, but if I have to wait it out, then I will.
Reply With Quote

Sponsored Links
  #6  
Old 02-08-2010, 04:36 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

This is why you have a hard wired E-Stop!, if the system is off on initialization or restarts, all power devices are off including servo's/steppers and require a manual reset of the E-stop to restart.
This is Standard industrial control practice.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #7  
Old 02-08-2010, 06:57 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

BTW, if you need to build a discrete watchdog timer using the Mach charge pump signal, it can be done for a $1.00 or so using a 555 (25˘) timer, the principal has been used for many decades, the timer runs at a frequency of slightly slower than the 12khz Mach signal, if not kept reset by the the 12khz signal, then the timer times out and sets a relay, the idea is to constantly reset the timer if Mach is active.
The 555 applications by Google are endless.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #8   Ban this user!
Old 02-08-2010, 07:22 PM
FXC FXC is offline
 
Join Date: Nov 2009
Location: USA
Posts: 38
FXC is on a distinguished road

Originally Posted by Al_The_Man View Post
This is why you have a hard wired E-Stop!, if the system is off on initialization or restarts, all power devices are off including servo's/steppers and require a manual reset of the E-stop to restart.
This is Standard industrial control practice.
Al.
This Taig mill was built 10 years ago when E-Stops were probably not very common practice
I'll give it a shot with the 555, I'm sure I have one around. Thanks!
Reply With Quote

  #9  
Old 02-08-2010, 09:15 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

E-stop circuitry has been around and mandatory by code on industrial control for many decades now.
Often overlooked or skimped on home built equipment though.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #10   Ban this user!
Old 02-09-2010, 11:29 PM
 
Join Date: Mar 2009
Location: USA
Posts: 99
marzetti is on a distinguished road

Hmmm. The 555 charge pump sounds interesting. Can you point me to a schematic?
Reply With Quote

Sponsored Links
  #11  
Old 02-10-2010, 09:36 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

I will see if I can dig one up, in the mean time here is a PDF for general information, the 555 would be used in the monostable mode and the in coming 12khz pulse would reset the 555, (pin 4).
Set the time out to around .1ms.
There is probably more information out there on the 555 than any IC made to date.
This uses the 12khz Mach signal as a Watchdog timer not a charge pump, the technique is different but the results are the same.
Al.
Attached Files
File Type: pdf 555_timer.pdf‎ (88.3 KB, 186 views)
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #12   Ban this user!
Old 02-13-2010, 09:38 PM
 
Join Date: Dec 2007
Location: US
Posts: 445
BrassBuilder is on a distinguished road

Originally Posted by FXC View Post
Unfortunately, all my output pins are set to "1" (+5V) anytime the PC is restarted and so the water pump turns on and pumps like crazy until I enter EMC2 (or Mach3) and toggle the flood control.
Interesting. Mine does the same thing running under Windows 2000 and Mach3.

I think I bought a charge pump for the system but I never installed it. Might be time to look for it and make that a priority.

Mike
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
Parallel port control software slinger1010 General Electronics Discussion 4 04-27-2009 05:46 PM
Parallel port+ input pins for use with EMC visky General Electronics Discussion 0 10-26-2008 04:18 PM
Printer Port relay control Sieg General Electronics Discussion 6 12-08-2007 01:39 PM
Configuration Of Output Pins In Parallel Port FOR 4 AXIS Khalid Open Source Controller Boards 2 05-20-2007 01:55 AM
Parallel Port / Relay Control Question Verboten Computers and Networking 7 12-21-2004 04:17 PM




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