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 05-26-2009, 07:09 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 35
blue_luke is on a distinguished road
What to do with a PLC

I am an industrial electronic engineer by trade and I am building my first CNC router these days....

25:"Y by 37:"X y Z:8" with not much to brag about really!

This machine is built with a lot of stuff I have been recuperating / scrounging... over the last couple of years.

I will be using MACH3 and I am "ferociously" reading the instruction manuals.

One thing I found is that it lacks inputs, only 4. Not a problem with MACH3, but with the simple fact that the printer parallel port dos not provide more....

So I thought of using a PLC to do monitoring of ....what?

If I can use say 16 inputs and generate a nible from this group of inputs, then MACH 3 could monitor much more inputs at a time.

Provided : 1 out of 16 inputs at a time can be interpreted
: MACH 3 can be be coaxed to interpret a nible instead of four discrete inputs

What you guys would suggest I can do with a PLC in the system?

I can see a vastly more efficient emergency stop circuit with monitoring of guard doors, limit switches circuit loop, etc...

I have at hand a Omron CPM1A and can get up to 40 INs /32 OUTs

What would you suggest?

Luc
Reply With Quote

  #2   Ban this user!
Old 05-26-2009, 07:21 PM
 
Join Date: Apr 2007
Location: Canada
Posts: 15
jamesl is on a distinguished road

I know nothing about plc's, but you could add another printer port to your computer to get more inputs
Reply With Quote

  #3  
Old 05-26-2009, 07:25 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?

A cleaner way would be to use a PLC on a network if possible.
Plcbus or other maybe?
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 05-26-2009, 08:05 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 35
blue_luke is on a distinguished road

Originally Posted by jamesl View Post
I know nothing about plc's, but you could add another printer port to your computer to get more inputs
A second port gives axises and outputs I don't realy need and only 4 inputs more...

A 4 bit binary output from the PLC is actually one of sixteen input conditions...

Individual limit switches (rellay needed?) much more "intelligent" emergency switch circuit loop, various critical timings of accessories and auxiliary system controls, but I wonder if
-1 is it necessary? or at least usefull?
-2 what would be useful on a router / aluminium milling machine ?

I understand that most people, probably including myself, can go without a PLC and be perfectly happy with the system...
It is just that the bells and whistle department is fully open, and my question is more about what would YOU do if you can add a PLC to your machine...
I have them, cost me nothing! I have the ladder editing software and the cables etc...

Luc

PS: I may end up not using it, I have not figured out the electrical as of yet, and may find that they have no use, MACH3 is formidable program on its own...
Reply With Quote

  #5   Ban this user!
Old 05-27-2009, 12:36 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi Luc,

Actually it's 5 inputs, pins 10, 11, 12, 13 and 15. The second port can be set to use pins 2-9 as inputs as well. That gives you 4 outputs and 13 inputs on the second port.

I have a CUBLOC "PLC" on my mill, it is connected to Mach3 over MODBUS and I use it to interface my control-panel switches (CycleStart, Feedhold feedrate override etc) and to monitor the state of things like servo motor overtemp, spindle VFD OK signal, E-stop etc. I do not depend on the PLC for emergency stop, it just monitors and lets Mach3 know if the system E-stoped because of me hitting the E-stop or becuase of a limit-switch or whatever I have wired in the E-stop loop.

/Henrik.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-27-2009, 07:26 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 35
blue_luke is on a distinguished road

Originally Posted by H.O View Post
Hi Luc,

Actually it's 5 inputs, pins 10, 11, 12, 13 and 15. The second port can be set to use pins 2-9 as inputs as well. That gives you 4 outputs and 13 inputs on the second port.

I have a CUBLOC "PLC" on my mill, it is connected to Mach3 over MODBUS and I use it to interface my control-panel switches (CycleStart, Feedhold feedrate override etc) and to monitor the state of things like servo motor overtemp, spindle VFD OK signal, E-stop etc. I do not depend on the PLC for emergency stop, it just monitors and lets Mach3 know if the system E-stoped because of me hitting the E-stop or becuase of a limit-switch or whatever I have wired in the E-stop loop.

/Henrik.
Interesting!
I just checked the config panel in MACH3 and the panel says "only pin 10-13 and 15 are inputs"
I don't see where pin 2-9 can be configured as inputs on port 2.
A second port cost really little and at that point, I wonder if a parallel to USB port would work? Will MACH3 recognize it?
Hmmmm?
Then a piece of vero board and a dozen of opto-couplers is all that is needed.

I still like the idea of a sub-system built with a PLC for the added safety factor it could provide in the system. I have never seen a PLC going bonker with a windows "blue screen"

Also, the PLC I have on hand does not have MODBUS but I did not know that a parallel port could be used for this! Can you elaborate?

Unless I misunderstood you and you implie that some sort of a modbus to PC interface is used, probably to the serial port in this case?

I know its off topic, but since its MY topic! let's go there, I am fairly new here, but known on other forums to slide easily off, especially when it gets mentions about fine cuisine, cheese, wine and beer!!

Luc
Reply With Quote

  #7   Ban this user!
Old 05-27-2009, 07:41 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 35
blue_luke is on a distinguished road

While looking elsewhere on the 'zone' I came across this PoKeys 55
http://www.cnc4pc.com/Store/osc/prod...roducts_id=214

A very interesting I/O to USB subsystem... and very affordable!
This thing opens up a host of possibilities and is getting me wild!! :P

I'll calm down.... eventually!
Reply With Quote

  #8   Ban this user!
Old 05-27-2009, 10:11 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi Luc,
Yes, on port 1 only pins 10, 11, 12, 13 and 15 can be, and ARE, inputs - that's hardcoded in Mach3 and can't be changed. The same normally goes for port 2 as well unless you activate the 2-9 as input option in the Ports & Pins dialog (see screenshot).

Mach3 can talk MODBUS to external devices either thru a COM-port (RS232 but can be converted to RS422/485 or whatever with the usual converters) or thru TCP/IP no external "dongles/converters/units are needed. Obviously you need a device (PLC, micro-controller or whatever) that 'does' MODBUS.

MODBUS has the benefit of being a standard industrial protocol and many off the shelf PLC's, I/O extenders, VFD's etc has it built in making it fairly easy to interface them to Mach3 - but there is a learning curve, obviously.

The drawback of MODBUS (and the POkeys and other simmilar units) is that it can "only" beused for "slow" inputs like pushbuttons and other non real-time things. Limitswitches, probe input, home switches etc are not appropriate signals to route thru such a device.

There are a couple of MODBUS-enabled units espically catered towards Mach3, Peter Homman MODIO and CNC4PC's M1 serial server are two of them - none of which I've personally used.

The second LPT-port option on the other hand is perfectly usable for as well slow and fast "signals", you can not use an USB printer port dongle though, only "true" parallel-port cards.

/Henrik.
Attached Thumbnails
Click image for larger version

Name:	screenshot.JPG‎
Views:	47
Size:	55.4 KB
ID:	82006  
Reply With Quote

  #9   Ban this user!
Old 05-27-2009, 11:10 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 35
blue_luke is on a distinguished road

Thanks for the clarification H.O.

I know MODBUS, without having ever used it, the machines I maintain are all from Europe and use more commonly the PROFIBUS with Siemens step7 PLC (ST-200 300 and 400).
Those machines makes cigarette tubes.... Lots of'em!! (6K/minute!!) and are the size of a city bus!

The servo motors are either controlled by an I/O module or directly on profibus, depending of the generation...

I understand also your concern about latency (reaction time) to a command using the USB or Modbus interface...
I guess a mixture of PoKeys and a second printer port is all that I could ever need then....
This is VERY interesting indeed
Thanks, Luc
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: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