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 > DeskCNC Controller Board


DeskCNC Controller Board Discuss DeskCNC Controller Boards and the software that controls it here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-10-2007, 06:28 PM
 
Join Date: Apr 2005
Location: us
Posts: 55
bradyfb is on a distinguished road
Unhappy G or M code for tool change

I'm working with a stl file and I'am useing two passes. I need to change the bit after the roughing pass. The code automatically gives a M06 (Tool change) But the cnc router I made does'nt stop it keeps going. So I hit the pause button and change my bit. what I would like to know is there something else I should be inserting on one of these lines. I have tried stopping the mach. but all that does is make the program start at the beginning. I want the machine to stop,at a give height so i have access to the bit then let me change the bit, and resume where its at in the code. I need that part of the code which allows it to resume to. Thanks Brady And the lines read as follows;
13715 (Begin next pass at 0.020)
13716 N27419 T21 M06 S10000
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 12-10-2007, 09:00 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

M0 or M00; M1 or M01

M0 is a program stop.

M01 is an optional stop. On real cnc's (and perhaps Deskcnc has the logic) a toggle switch sends a signal that the operator wishes to have the M01 active, or not. If it is active, then it behaves like an M0 and the program stops running. Pressing cycle start initiates the program again.

Of course, the control may require that you stop the spindle, stop the program, restart the spindle and continue, like so:
M5
M0
M3

M6 might be able to be reconfigured within the 'ladder' program to stop the spindle and stop the program. But usually, M6 starts the operations of an automatic toolchanger, so on a manually loaded machine, no logic may have been written for your M6.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #3   Ban this user!
Old 12-10-2007, 09:05 PM
Khalid's Avatar  
Join Date: Apr 2006
Location: Pakistan
Age: 32
Posts: 2,786
Khalid is on a distinguished road

Insert following lines where u want to change the tool.

T2 M6
M05
G00 X0 Y0
G00 Z-45
M00
G00 G17 G21 G40 G49 G80 G90
G00 Z-3
S10000 M03



Here Z-45 let ur z-axis up to 45 mm as in my case... there i change the tool and after changing the tool i manually down the Z-axis as it touches the original Z-place (i.e. i always set z just at the top of work piece)...after touching the z-axis at workpiece ...i change the value in for Z-axis in MACH3 to Zero.. and then press cycle start..

T2= New tool Number
G21= Use it if u r working in metric or use G20 if Inch system
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 12-14-2007, 09:29 PM
 
Join Date: Apr 2005
Location: us
Posts: 55
bradyfb is on a distinguished road

Ok I did both as suggested. yes you do have to put M05 then M00 for the spindle to stop. If swithched my router will just keep running. But still the machine wants to start over at the beginning; Should Deskcnc have some other command to allow me to resume after a tool change, If not what are other Deskcnc users doing to get around this problem. I use to think it was my computer win98 cause when running a lenghtly g-code the win98 would just lock up. Now I have a new XP Pro with a 1.6ghz processor and yes there is a big difference between the two in the operation. So plese what are you Deskcnc users doing for this problem, Again I want to run a file with a roughing pass then change the tool then continue on where I left off at the tool change.
Thanks Brady
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 12-14-2007, 11:27 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

So you let the program run and it reads down to the M00 and it stops there or does it immediately go back to the beginning of the program?

Or do you have to hit cyclestart again and then it starts at the beginning of the program?

What happens if you try to single step through the M00?

It sounds as though Deskcnc may not have any logic associated with M00. What it should be doing is switching to single step mode at the M00. I have no familiarity with your software, but that is the gist of it.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

Sponsored Links
  #6   Ban this user!
Old 12-15-2007, 06:25 PM
 
Join Date: Apr 2005
Location: us
Posts: 55
bradyfb is on a distinguished road

What happenes is. the M05 does stop the router, and yes the M00 does stop the program. And this is when I change the bit everything is ok at this point..... Now in deskcnc I have to hit the go button; and this is when it starts at the beginning again. Before all this I was hanging around untill the roughing pass was done, then I hit pause, then since I paused the machine this pauses all function keys; like raiseing the Z axis etc.. So this is when I would move the work piece and change the bit. I have to be missing something somewhere cause I would not think that as long as cnc programs have been around that who ever wrote the program would leave something like this function or sequence out of the program. This is why I must be doing something wrong. And I do appreaciate Your input and Help. I seem to learn more when you old timers show me different things to try. I may have to wait untill Imserv awnsers He seems to Know quite a bit about this Deskcnc program Thanks again Brady
Tweet this Post!Share on Facebook
Reply With Quote

  #7  
Old 12-15-2007, 06:40 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,823
HuFlungDung is on a distinguished road

Just checking the documentation here:
http://www.deskcnc.com/toolchange.html

It would appear that M0 does serve the typical purpose. Perhaps you need to check your ToolChange.cfg to see what it looks like.
__________________
First you get good, then you get fast. Then grouchiness sets in.

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

  #8   Ban this user!
Old 12-15-2007, 08:13 PM
 
Join Date: Feb 2007
Location: usa
Posts: 493
SORCHEROR is on a distinguished road

if i remember isnt there a toggle in mach to ignore tool changes,maybe your is set to ignore,check it out,been awhile since i used mach
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 12-15-2007, 08:22 PM
 
Join Date: Apr 2005
Location: us
Posts: 55
bradyfb is on a distinguished road

I'am useing Deskcnc
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 12-15-2007, 08:37 PM
 
Join Date: Feb 2007
Location: usa
Posts: 493
SORCHEROR is on a distinguished road

it might have to do with the tool change config file in your software
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-15-2007, 08:38 PM
 
Join Date: Feb 2007
Location: usa
Posts: 493
SORCHEROR is on a distinguished road

i know your using deskcnc,i dont know that sofware but maybe its like mach
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 12-16-2007, 01:17 PM
 
Join Date: Apr 2005
Location: us
Posts: 55
bradyfb is on a distinguished road

Ok, I'am trying to look at the cfg files. Now what program do I need to open these kind of files. both win98 and xppro come up and say windows can not open this type of file.
Tweet this Post!Share on Facebook
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
G Code Change gm3211 Haas Mills 4 09-20-2007 08:02 PM
How to change Tool change position(About MAZATROL T1 control) liushuixingyun Mazak, Mitsubishi, Mazatrol 5 07-07-2007 03:58 PM
tool change jrick Commercial CNC Wood Routers 0 01-13-2007 06:01 PM
Tool change lilricky2 BobCad-Cam 2 06-03-2006 02:00 PM
Tool Change WOODKNACK General CAM Discussion 10 07-12-2003 10:26 PM




All times are GMT -5. The time now is 04:38 AM.





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