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 > TurboCNC


TurboCNC Discuss TurboCNC controller software here!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-11-2005, 09:19 AM
 
Join Date: Mar 2003
Location: USA
Posts: 78
jimglass is on a distinguished road
How to pause Turbocnc

Is there a way to remotely stop and restart a program running with Turbocnc.

Below is a home built wire EDM I built from scratch.

For now the EDM is controlled by a programmable controller. It is limited to only rectangular moves right now.

In the EDM power supply is a circuit that monitors the spark voltage. When the spark voltage drops, x or y motion is paused until the voltage rises again and motion is resumed. This is easy with a PLC. If the voltage reaches "0" that means burn is shorted out and the machine must stop.

Turbocnc can be paused with the [ESC] key and the program can resume with the [Y] key. Can this be done without striking keys manualy? When I figure this out my wire EDM could be CNC controlled.

Any Ideas,
Jim
Reply With Quote

  #2   Ban this user!
Old 12-11-2005, 09:33 AM
 
Join Date: Mar 2004
Location: Iowa, USA
Posts: 264
rippersoft is on a distinguished road

If the power supply can sense a "burn" condition, can it output the "sense" to a logic circuit? If so, then a breakout board could be used to either send the logic signal back to the computer or trip a relay, etc.

I believe that there is a GCode for pause as well. The key would be to get the logic together to actually tell the computer what the power supply is seeing.
Reply With Quote

  #3   Ban this user!
Old 12-11-2005, 12:02 PM
RotarySMP's Avatar  
Join Date: Mar 2004
Location: Vienna, Austria
Posts: 1,048
RotarySMP is on a distinguished road

Have you searched the archive of the TurboCNC Yahoo group? This has been discussed there before. I think you need to modify the source code for this, but am not sure.
__________________
Regards,
Mark
www.wrathall.com
Reply With Quote

  #4   Ban this user!
Old 12-11-2005, 12:33 PM
 
Join Date: Mar 2003
Location: USA
Posts: 78
jimglass is on a distinguished road

The control logic is already in the PLC. The PLC senses the voltage has dropped for a few miliseconds then can send an output to the computer to stop the feed untill the voltage goes high and the CNC program can resume feeding.

Is it possible to use a limit switch input in the break out board then to the computer?

Thanks
Jim
__________________
www.outbackmachineshop.com
Reply With Quote

  #5  
Old 12-11-2005, 02:33 PM
Gold Member
 
Join Date: Oct 2004
Location: USA
Posts: 742
CJL5585 is on a distinguished road

Originally Posted by jimglass
The control logic is already in the PLC. The PLC senses the voltage has dropped for a few miliseconds then can send an output to the computer to stop the feed untill the voltage goes high and the CNC program can resume feeding.

Is it possible to use a limit switch input in the break out board then to the computer?

Thanks
Jim
You can use one of the pins on the breakout board that is normally a limit switch or emergency stop function. In the set-up you can set the TurboCNC software to be active Low or Active high. You should be able to use an output from the plc under the above conditions, if it is programmed, or you can program the output.

Jerry
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-22-2006, 11:12 AM
 
Join Date: Mar 2004
Location: United States
Posts: 1,147
vacpress is on a distinguished road

i dont see why you cannot just hack up an old keyboard for the demultiplexing chip and just wire it to 'hit' the keys for you... this seems like a 1hour project...

am i missing something?
__________________
Design & Development
My Portfolio: www.robertguyser.com | CAD Blog I Contribute to: http://www.jeffcad.info
Reply With Quote

  #7   Ban this user!
Old 03-26-2006, 10:20 AM
 
Join Date: Jul 2005
Location: us
Age: 56
Posts: 668
Madclicker is on a distinguished road

Use the ultimarc board. It is also an easy way to make a button and joystick control panel.

Ultimarc
__________________
Steve
DO SOMETHING, EVEN IF IT'S WRONG!
Reply With Quote

  #8   Ban this user!
Old 03-27-2006, 09:57 AM
 
Join Date: Mar 2004
Location: United States
Posts: 1,147
vacpress is on a distinguished road

Im not sure it is easiest. For 1, it costs some $, for 2 it needs to be ordered in... If you go and spend $12.00 on a USB keyboard, you can take it apart and have this be a usb interface. If you were crafty you could add a port on it, and make your joystick\pendant\whatever plug into the port... Total cost: some switches plus cost of USB keyboard. Of course, it dosent have to be USB.. Go ahead and use that old $1.00 PS/2 one and that gamepad.. Total cost: time.
__________________
Design & Development
My Portfolio: www.robertguyser.com | CAD Blog I Contribute to: http://www.jeffcad.info
Reply With Quote

  #9   Ban this user!
Old 03-27-2006, 10:59 AM
 
Join Date: Jul 2005
Location: us
Age: 56
Posts: 668
Madclicker is on a distinguished road

Originally Posted by jimglass

Turbocnc can be paused with the [ESC] key and the program can resume with the [Y] key. Can this be done without striking keys manualy? When I figure this out my wire EDM could be CNC controlled.

Any Ideas,
Jim
This is the original question. The control signals are electrical not mechanical. Tearing up a keyboard is not going to let him convert from PLC control to CNC control and the Ultimarc board will.
__________________
Steve
DO SOMETHING, EVEN IF IT'S WRONG!
Reply With Quote

  #10   Ban this user!
Old 03-27-2006, 02:58 PM
dkowalcz's Avatar  
Join Date: Apr 2003
Location: USA
Posts: 118
dkowalcz is on a distinguished road

In TurboCNC, go to Configure --> Configure IO Lines, and set up the "Block Hold" function for an input pin.

When that goes active, the execution stops before executing the next block. When it goes inactive again, it'll resume. This is for safety stuff mainly, but just interface your go/no-go signal to it.

In TurboCNC, write your code as a loop so that it takes a lot of very small moves, you'll always move one full unit however small, but if the block hold goes active, you'll definitely pause before the next. Here's an example to move an inch in .001 steps (I haven't tested this, this is just off the top here, but you get the idea):

#1=0.0 (START)
#2=10.0 (DESTINATION)
#3=0.001 (INCREMENT)
N10 G01[#1] F10
#1=[#1+#3]
IF #1 LT #10 M97 O10

Good luck! I see this post is a trifle old, so maybe this info is too late to be of use. I should add "feed hold" to the software as well, or perhaps some EDM specific I/O to make this easier...
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-27-2006, 03:21 PM
 
Join Date: Jul 2005
Location: us
Age: 56
Posts: 668
Madclicker is on a distinguished road

Well, that certainly is a $0.0 solution....at least for straight lines. Don't even want to think how to cut a circle that could be stopped anywhere with a block hold.

Just my $0.02, but I'd spend $50 to keep from having to write that kind of code...even if all I did was cut straight.
__________________
Steve
DO SOMETHING, EVEN IF IT'S WRONG!
Reply With Quote

  #12   Ban this user!
Old 03-27-2006, 04:24 PM
 
Join Date: Mar 2004
Location: United States
Posts: 1,147
vacpress is on a distinguished road

I think it would be possible\easy to interface a plc with a keyboard circuit.. you might need some sort of latch\relay type dealie.. but nothing over $5
__________________
Design & Development
My Portfolio: www.robertguyser.com | CAD Blog I Contribute to: http://www.jeffcad.info
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 12:13 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