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 06-13-2009, 11:52 AM
 
Join Date: Jun 2009
Location: US
Posts: 2
cnczone is on a distinguished road
What would you do?

I am designing some attachment pieces for a 3 axis CNC machine. But, I would like your advice at to what you would do. I am completely new to this, so I don't know all the electronic components I should be considering.

Without going into to much confusing detail, I have a situation where I have 60 small plastic cups lined up next to each other. Each cup holds small 1/2 inch wooden "blocks" (for lack of a better description). The cups are held by/hanging from a shelf where the bottom of the cup is exposed and cut open (an opening) and covered by a thin metal "gate" /hatch that I figure will be opened or closed by a solenoid (?).

My question is this. If I am going to use the parallel port of my computer to control the 3 axis stepper motors - how can I be able to utilize the remaining pins/outputs in my breakout board/driver to control the turning on/off of 60 relays to the solenoids? That is, I don't have 60+ output pins in a parallel port to be able to physically hardwire 60 different different relays to solenoids (as well as the stepper motors). The way I "think" I need to do this is to only use 2 or 3 of the outputs to send a "code" signal to some circuit that will understand which relay should be powered on, based on that "code" signal. The question is, is my thinking correct? And if so, what kind of hardware is involved? From what I could see on the internet, I think I need to use something called a PLA (Programmable Array Logic). Is that correct? If so, does anyone have any links to plans and/or can tell me the formal name of the kind of circuit I am envisioning here? Also, do I need to have relays involved (think I do, as I think a relay is a switch thingy - but isn't a mosfet also a switch - which is better)? I do plan to have another power source that all these 60 solenoids would be connected to, so don't worry too much about the power part of it. Also, I am a programmer, so don't worry too much about the coding part/actuating signals out from the parallel port part of it. Thanks.
Reply With Quote

  #2  
Old 06-13-2009, 12:34 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Are you using Mach3 to control it? Or something else?

I could be wrong, but I'm not sure if you can somehow use 2 outputs to control 60 devices. Although thinking while typing, I guess you can use 3 outputs to get 1000 code combinations, so maybe it is possible. But you'd need to use some type of external hardware (PLC?) to "decode" the state of the 3 outputs and do the desired action. Mach3 can control PLC's via Modbus.

Mach3 can also use an I/O device, like the Pokeys, that will give you 55 outputs.
http://www.poscope.com/product.php?pid=3

I think that how you open or close your "gate" may dictate the method used to control them.

Sorry, but I can't give you a more specific answer.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3  
Old 06-13-2009, 12:37 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

I would visualize it 2 ways.
If you have to index the stepper motor between solenoid operations, you could use a trigger pulse, or Binary coded signal to a PLC (Programmable Logic Controller).
Say you have to index the stepper 60 steps, after the first index a trigger pulse could be output to the PLC when the solenoid operation is completed an input to the PC would tell the stepper to index again, if 60 signals are needed, you would need 6 outputs.
You could also make up the logic with a PLD or even a PicMicro, but the PLC has the advantage of already having relay or SSR outputs and conditioned inputs.
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

  #4   Ban this user!
Old 06-14-2009, 12:15 AM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

I'm not sure if it is supported yet, but the smooth stepper has an SPI expansion port which could be used to talk to an MCU or PLC.

You could use coded binary, 6 outputs for the 3 axes and 6 outputs for the solenoid control circuit would give you 63 "outputs" and would fit on one parallel port. This is limited though in that you can only have one on at a time, unless you have some more logic outside the computer besides just decoding the binary signal. It may also work to make up your own 6 bit parallel protocol which you could use to send multiple 6 bit bytes. 63 (111111) could be the start byte, to tell the micro to pay attention, then it would store the data bytes until it got a 63 again, which would signal the end of the command. This could be pretty versatile if you could get the timing worked out so it functions properly.

Matt
Reply With Quote

  #5   Ban this user!
Old 06-14-2009, 07:26 AM
 
Join Date: Jun 2009
Location: US
Posts: 2
cnczone is on a distinguished road
Thanks

Thanks everyone for the ideas. I will start looking into them. Currently, I think I am liking the idea of using this: http://www.poscope.com/product.php?pid=3. I didn't really think too much about USB before because most of the solutions I found earlier online for the 3-axis part of my CNC project were parallel port solutions. I saw one or two things for USB, but they did not seem so complete. But, this item seems like it is very open ended and gives me a bunch of possibilities.

I don't know what software I will be using of if I will just write my own software. I looked into Mach 3 and that is what everyone else seems to be using, so I might go with that. We will see.
Reply With Quote

Sponsored Links
  #6  
Old 06-14-2009, 08:54 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

Without knowing the full details of what you want to do it is difficult to give a specific answer, for example, if the operation only needs limited operator input, i.e. no G-code programming etc, and the operation is repetitive point to point, then you may not need CNC type controller, in that case a stand alone answer may suffice.
You can operate a PLC with stepper outputs and simple operator interface such as Maple display etc.
No PC or Mach required.
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

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 11:23 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