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 11-27-2007, 02:27 PM
 
Join Date: May 2006
Location: USA
Posts: 94
dewme5 is on a distinguished road
E-stop

I'm having E-stop troubles.

I have the E-stop hooked up to pin 10 on my breakout board. In stepconf wizard, on parallel port setup, I have Pin 10 as ESTOP in. Pins 1, 8, 9, 11-16 = unused. Pins 2-7 = x,y,z Pin 17 Charge Pump.

In Hal Meter, If I select
parport.0.Pin-10-in, status changes from FALSE to TRUE when pressing the E-stop on the mill.

parport.0.Pin-10-in-not, status changes from TRUE to FALSE.

estop-ext, status changes from FALSE to TRUE

estop-out, status does not change. It does however change when pressing the estop icon on the EMC2 main window.

estop-out is false when in safe mode


I find towards the bottom of my .hal file,
net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

I'm just getting things setup currently. Before I go crazy I want some safety first. I know E-stop to software isn't the best method, but it's a start.
Reply With Quote

  #2   Ban this user!
Old 11-27-2007, 03:05 PM
 
Join Date: Feb 2006
Location: Canada
Posts: 45
tfmacz is on a distinguished road
E-Stop Configuration

I don't have access to my machine right now, Will check when I get home and post the exact configuration, but you have to connect in the .hal file
parport.0.Pin-10-in to iocontrol.0.emc-enable-in

This will give the external E-Stop button control.




Originally Posted by dewme5 View Post
I'm having E-stop troubles.

I have the E-stop hooked up to pin 10 on my breakout board. In stepconf wizard, on parallel port setup, I have Pin 10 as ESTOP in. Pins 1, 8, 9, 11-16 = unused. Pins 2-7 = x,y,z Pin 17 Charge Pump.

In Hal Meter, If I select
, status changes from FALSE to TRUE when pressing the E-stop on the mill.

parport.0.Pin-10-in-not, status changes from TRUE to FALSE.

estop-ext, status changes from FALSE to TRUE

estop-out, status does not change. It does however change when pressing the estop icon on the EMC2 main window.

estop-out is false when in safe mode


I find towards the bottom of my .hal file,
net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

I'm just getting things setup currently. Before I go crazy I want some safety first. I know E-stop to software isn't the best method, but it's a start.
Reply With Quote

  #3   Ban this user!
Old 11-27-2007, 05:05 PM
 
Join Date: May 2006
Location: USA
Posts: 94
dewme5 is on a distinguished road

there is a command in the .hal file stating

net estop-ext <= parport.0.pin-10-in

but that was already in there, and not doing what I need.

I tried putting something together like you suggested, but when I run the command thru HAL configuration in EMC2, it comes up as an invalid statement. Something is just a little different.
Reply With Quote

  #4   Ban this user!
Old 11-27-2007, 05:47 PM
 
Join Date: Jan 2007
Location: usa
Posts: 4
jcorrea is on a distinguished road

I had the same problem. This is how I fixed it.

On your .hal file delete this line;
net estop-ext <= parport.0.pin-10-in

Change line;
net estop-out <= iocontrol.0.user-enable-out

to read;
net estop-out <= parport.0.pin-10-in

You should have this now;
net estop-out <= parport.0.pin-10-in
net estop-out => iocontrol.0.emc-enable-in

You need to do this every time you modify the .hal file with the stepconf wizard.

Good luck,
Jorge
Reply With Quote

  #5   Ban this user!
Old 11-27-2007, 06:52 PM
 
Join Date: May 2006
Location: USA
Posts: 94
dewme5 is on a distinguished road

Jorge.
With those changes, EMC wont' even start. I get the error screen, which I don't fully comprehend just yet. However, you have gotten my closer. There are several lines I've edited so far, and I'll just post all the code for you to look at.

Code:
# Generated by stepconf at Tue Nov 27 19:39:22 2007
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]SERVO_PERIOD key=[EMCMOT]SHMEM_KEY num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg=0x378
setp parport.0.reset-time 4000
loadrt stepgen step_type=0,0,0
loadrt charge_pump

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf charge-pump base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread

net xdir => parport.0.pin-02-out
net xstep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
net ydir => parport.0.pin-04-out
net ystep => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
net zdir => parport.0.pin-06-out
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
net charge-pump => parport.0.pin-17-out

net estop-ext <= parport.0.pin-10-in

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 16000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable

setp stepgen.1.position-scale [AXIS_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 16000
setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL
net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable axis.1.amp-enable-out => stepgen.1.enable

setp stepgen.2.position-scale [AXIS_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 35000
setp stepgen.2.dirsetup 16000
setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable axis.2.amp-enable-out => stepgen.2.enable

net estop-out <= parport.0.pin-10-in-not
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
for some reason I also have to delete the line

net estop-out charge-pump.enable <= iocontrol.0.user-enable-out

net estop-ext <=parport.0.pin-10-in (stays, but dropped "not" from the end)

net estop-out <=parport.0.pin-10-in-not (added "not" to stop conflict with above)

Right now, the E-stop is working. When first starting EMC, I do not have to clear the E-Stop on the screen before pressing power. Either the hard E-stop is in or out. However, if I press the software button, it still stops. Press the Hard button, and it stops. Suppose that is good for now.

I'm not sure why there is a difference between what works on your system, and mine, I would like to understand though.
Reply With Quote

Sponsored Links
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
cnc stop for a saw cnc metalcraft WoodWorking 2 09-05-2007 11:58 AM
E-Stop bkukowski Safety Zone 47 01-09-2007 05:29 PM
E-Stop jhwatts Xylotex 1 03-10-2006 06:42 PM




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