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! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-25-2008, 11:24 PM
 
Join Date: Jan 2008
Location: New Zealand
Posts: 26
GreenLead is on a distinguished road
EMC2 E-stop parallel port pinout and E-stop loop

I've read up about this in the EMC2 wiki already but it appears to be somewhat vague for a beginner like me.

Basically what I'm trying to do is to implement an Emergency stop (E-stop) setup. The spindle is probably going to be running on 24V.

I've looked at the user manual and it says that by default Pin 1 of the parallel port is ESTOP OUT, in the outputs section (PC to Mill). I find this strange; isn't pushing a E-stop switch an input as opposed to an output as the manual suggests?

I also read up about something along the lines of an E-stop loop, where all the relays wired to auxiliary devices (spindle, coolant pumps etc) are in series.

Any suggestions and simple working circuit designs would be greatly appreciated. Thanks in advance!
Reply With Quote

  #2   Ban this user!
Old 01-26-2008, 06:58 AM
 
Join Date: Feb 2006
Location: usa
Posts: 52
Gads is on a distinguished road

HI GREENLEAD I HOPE THIS HELPS, I NEVER RAN E-STOP WHEN I USED MACH3
BUT DECIDED TO WIRE IT INTO MY BOARD BEFORE STARTING TO PLAY WITH EMC2. IT SOUNDS LIKE YOU ARE IN STEPCONFIG SCREEN ALREADY. ON MY SETUP PIN 10 IS E-STOP IN. PIN 1 ON MY BOARD IS AN OUTPUT CONTROL
SUCH AS COOLANT ETC.. I CAN'T REMEMBER OF THE TOP OF MY HEAD BUT I MAY HAVE PIN TEN SELECTED AS INVERTED. DO YOU HAVE A CONTROL BOARD AND DRIVERS ?

I DECIDED TO TRY EMC BECAUSE IT'S FREE BUT THE TRIAL VERSION OF MACH3 WAS EASY TO UNDERSTAND AND SETUP FOR ME BUT CAN'T AFORD THE $160 TO UNLOCK THE LIMITED PROGRAM LENGHT. YOU MIGHT WANT TO CONSIDER MACH3 BY ARTSOFT TO GET STARTED THEN SWITCH LATER. I HAVE GOTTEN VERY LITTLE FEEDBACK ON EMC POSTS BUT STILL TRYING TO WORK OUT ISSUES SO I CAN DECIDE ON WHICH SYSTEM I WILL STAY WITH.
THIS SOFTWARE IS VERY CONFUSING TO SETUP AND I'M IN THE MIDDLE OF TRYING TO SETUP MY LIMIT HOME SWITCHS AND ITS GOT ME PULLING MY HAIR OUT.
Reply With Quote

  #3   Ban this user!
Old 01-26-2008, 07:26 AM
 
Join Date: Feb 2006
Location: usa
Posts: 52
Gads is on a distinguished road

GREENLEAD I THINK I STARTED VENTING MY OWN CONFUSION RATHER THAN FULLY ANSWER YOUR QUESTION. ASSUMING YOU HAVE A BREAK OUT BOARD
BETWEEN YOUR PC AND MILL. OR MAYBE YOUR MILL HAS ITS OWN BUILT IN INTERFACE THAT YOU PLUG YOUR PAR PORT INTO. WHAT THE SOFTWARE IS DOING IS LOOKING AT THE VOLTAGE ON A GIVEN PIN TO SEE IF IT IS HIGH OR LOW AND DECIDING IF THE ESOP HAS BEEN PUSHED. THIS IS INTERNAL PC VOLTAGE MEASURED AT THE TRANSISTOR LEVEL. DONT TRY AND PUT VOLTAGE OR GROUND TO YOUR PC'S PAR PORT DIRECTLY.
WHAT YOUR BREAKOUT BOARD DOES IS ISOLATE YOUR PC FROM THE MACHINE, THE BOARD HOWEVER IT MAYBE SETUP TO DO IT TAKES YOUR ESTOP INPUT AND CHANGES THE STATE OF THE PIN FROM HIGH TO LOW OR VISE VERSA. IN MY CASE THAT IS PIN 10. AND ON MY BOB CAMPBELL BOARD I HAVE A SOCKET I WIRE A SWITH INTO VIA TWO WIRES. THE SWITCH WILL BE OPEN OR CLOSED BASED ON MY ESTOP. WHEN I SETUP I SAW WHAT YOU ARE TALKING ABOUT WITH PIN 1 . THERE MAY BE SOME SYSTEMS OR SETUPS OUT THERE THAT WOULD USE PIN 1 AND 10 AS AN ESTOP SETUP, OUT 1 AND IN 10 BUT WITH MY SYSTEM PIN 1 IS A CONTROL FOR EXTERNAL DEVICES. HOPE THIS HELPS, ANY QUESTION MESSAGE ME.
Reply With Quote

  #4   Ban this user!
Old 01-26-2008, 12:18 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Originally Posted by GreenLead View Post
I've read up about this in the EMC2 wiki already but it appears to be somewhat vague for a beginner like me.

Basically what I'm trying to do is to implement an Emergency stop (E-stop) setup. The spindle is probably going to be running on 24V.

I've looked at the user manual and it says that by default Pin 1 of the parallel port is ESTOP OUT, in the outputs section (PC to Mill). I find this strange; isn't pushing a E-stop switch an input as opposed to an output as the manual suggests?

I also read up about something along the lines of an E-stop loop, where all the relays wired to auxiliary devices (spindle, coolant pumps etc) are in series.

Any suggestions and simple working circuit designs would be greatly appreciated. Thanks in advance!
GreenLead,

Here is the E-stop configuration that I am using.
net estop-ext <= parport.0.pin-10-in-not
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #5   Ban this user!
Old 01-26-2008, 04:20 PM
 
Join Date: Jan 2008
Location: New Zealand
Posts: 26
GreenLead is on a distinguished road

Thanks for the help so far everybody!

At the moment I'm actually still building my controller (Allegro 5804B unipolar stepper IC), so I hadn't got around to actually installing and configuring EMC2 yet, let alone build any axes. I was simply studying the user manual.

The controller can be found here . By itself it doesn't have any optoisolation capabilites, and I also don't have a BOB.

Gads, your explanation seemed to clear things up a wee bit. Now that I understand that you have used a switch on your BobCampbell board (and never to directly ground or pump voltage to the parallel port!), does anyone know how I can build a simple E-stop circuit that will go into Pin 1 of the parallel port?

Also, I've heard that the E-stop circuit can shut off any auxiliary devices (spindle, coolant pumps etc) in series. How would I put something like that together?

I'd like to tackle (with everyone's help) building a working E-stop pushbutton and circuit, then we can move on to configuring it in EMC2.

Again, thanks to everyone for their help so far, and apologies for sounding like a total idiot.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-29-2008, 08:43 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Install EMC and use the stepconf from the menu to set up your machine. Then wire up the estop to the input you choose. Some good examples on gecko's site in their user manuals.

With version 2.2.2 EMC2 got real easy to configure...

John
Reply With Quote

  #7   Ban this user!
Old 01-29-2008, 04:31 PM
 
Join Date: Jan 2008
Location: New Zealand
Posts: 26
GreenLead is on a distinguished road

Originally Posted by Big John T View Post
Install EMC and use the stepconf from the menu to set up your machine. Then wire up the estop to the input you choose. Some good examples on gecko's site in their user manuals.

With version 2.2.2 EMC2 got real easy to configure...
John, I'm using the (default) pin 1 of the port for E-stop. Pin 1 hardware wise is an output. How would you force a switch input to a output pin? I'm assuming you also need an opto-coupler, as Gads pointed out how unwise it would be to directly apply an external voltage to the port.

Also, can you show me which Gecko user manual discusses E-stop in EMC2? I can't seem to find it.
Reply With Quote

  #8   Ban this user!
Old 01-29-2008, 10:14 PM
 
Join Date: Feb 2006
Location: usa
Posts: 52
Gads is on a distinguished road

Hello again greenlead
I understand your confusion and wish i could give you a better answer
I noticed a link to similar questions at bottom of the page when i was looking at your posts and found a similar question and no definate answer but the poster may have found an answer you might try messaging him. my thought is that this pin still should be controlled by your opto isolated controller board. and from what i read of his links etc was the switch was a normally open switch that trigered when closed. my setup is on pin 10 but i believe i have the signal set to inverted. my concern for non isolated switching is based on a project i tried before taking the plung into building a cnc controller when i tried making a digital readout using the par port and led hal sensors and basic programming, i think i fried 2 par ports trying to work out opto isolated circuits etc.. i do know you can ground the port and the pc will see the pin status change. but i do believe a resistor would be recomended to prevent to much current flow through the ports transistor. i dont have the page open but this was the posters question if you find it he has some links that might help( Parallel pin 01 - E-stop use as Input or output?) (username mike944)

gads
Reply With Quote

  #9   Ban this user!
Old 01-31-2008, 10:48 PM
 
Join Date: Jan 2008
Location: New Zealand
Posts: 26
GreenLead is on a distinguished road

Hey Gads -

I think I figured something out - it turns out Pin 1 is always going to be an output, because that's the way parallel ports work. I just ran stepconfig (although not to the end), and by default it is ESTOP Out. The thing I was looking for turns out to be ESTOP In on Pin 10, as Alan had shown from his config file.

(At this point, I'm feeling rather sheepish...)

Reading up a bit more today, I think this is what is supposed to happen:

When an external N.C. EStop pushbutton is untouched, ESTOP In (Pin 10) remains low, so EMC2 keeps ESTOP Out (Pin 1) high as it is safe. Pin 1 is optoisolated to a 24V relay that goes to the spindle power supply and other external devices like coolant pumps and dust extractors before reaching ground.

When the external EStop is pushed, it breaks the circuit, and ESTOP In goes high (An optoisolated +5V source with a 4.7kohm). EMC2 then pulls ESTOP Out low, shutting off the 24V relay and in turn, the spindle and everything else.

I think the logical first step for my build would be to make an optoisolated BOB first. Does anyone have any suggestions? One issue I was thinking was that, sure, the ParPort outputs (PC to Mill) are optoisolated to prevent stepper backEMF from destroying the ParPort, but should the inputs (Mill to PC) be optoisolated as well?
Reply With Quote

  #10   Ban this user!
Old 02-01-2008, 01:54 PM
 
Join Date: Jun 2003
Location: Boalsburg PA
Posts: 844
unterhaus is on a distinguished road

The reason that you need an estop out of your computer is just in case emc figures out that there is an estop, and the rest of the machine is too busy crashing to have noticed yet. The way I intend to set up my machine is that anyone that thinks something went wrong can say estop: limit switches, estop buttons, amp faults, EMC, etc.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-01-2008, 03:07 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Sounds like you have a handle on it now...

John
Reply With Quote

  #12   Ban this user!
Old 08-03-2010, 04:06 AM
tyo tyo is offline
 
Join Date: Jul 2010
Location: indonesia
Posts: 13
tyo is on a distinguished road
Question

hello gentleman..
how to configure parport input..??
why when i configure by 0x379..then i input the signal (logical.1)...that's doesn't work..??

Last edited by tyo; 08-03-2010 at 05:18 AM.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minitech Minimill port Pinout? rustyolddo Benchtop Machines 1 12-11-2007 06:56 PM
Parallel pin 01 - E-stop use as Input or output? mike944 LinuxCNC (formerly EMC2) 2 12-03-2007 08:39 AM
e stop eloid General Electronics Discussion 0 02-19-2007 09:41 PM




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