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! > CAM Software > BobCad-Cam


BobCad-Cam Discuss all BobCad software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-03-2005, 10:43 AM
 
Join Date: Feb 2005
Location: USA
Posts: 223
Jim Estes is on a distinguished road
Mathematical Quirk?

I was programming a cut with a ball endmill on a core of a mold I am building and I was getting an error on my cnc machine that said "Z NOT ALLOWED IN G17". Basically BobCad was putting a Z number in the program while doing a G02 or G03. I checked to make sure that my setup was to only put in Changed Z numbers and that was correct. I noticed this happened a couple of times before and I thought that it was because of my computer but then I was able to recreate the problem. It turns out that it has to do with the depth settings and I guess the mathematics involved in calculating the steps.


In the below example, the Z value is only placed in the G02 and G03 in every other step, which lead me to believe that it had to do with the math. I figured out how to avoid it, I just adjust the steps or the depth settings, but it was a real pain in the rear to figure out, I thought I'd help someone else out by telling you guys about it.


Here is an example of the code:
G00X-10.Y8.Z0.05
X-8.5851Y-0.9766
G01X-8.5851Y-0.9766Z-0.2083F3.0
G03X-8.3176Y-1.2441I-8.3176J-0.9766K-0.2083F10.0
G01X-4.6936Y-1.2441
G02X-4.1365Y-1.3724I-4.6936J-2.5175
G01X-3.6812Y-1.5939
G03X-3.1369Y-1.7193Z-0.2082I-3.1369J-0.4752
G01X3.1369Y-1.7193Z-0.2083
G03X3.6812Y-1.5939Z-0.2082I3.1369J-0.4752
G01X4.1365Y-1.3724Z-0.2083
G02X4.6936Y-1.2441I4.6936J-2.5175
G01X8.3176Y-1.2441
G03X8.5851Y-0.9766I8.3176J-0.9766
G01X8.5851Y0.4731
G03X8.3176Y0.7406I8.3176J0.4731
G01X5.0814Y0.7406
G02X4.5074Y0.9974Z-0.2082I5.0814J1.5105
G03X3.9552Y1.2445Z-0.2083I3.9552J0.5039
G01X-3.9552Y1.2445
G03X-4.5074Y0.9974I-3.9552J0.5039
G02X-5.0814Y0.7406Z-0.2082I-5.0814J1.5105
G01X-8.3176Y0.7406Z-0.2083
G03X-8.5851Y0.4731Z-0.2082I-8.3176J0.4731
G01X-8.5851Y-0.9766Z-0.2083
X-8.5851Y-0.9766Z-0.2165F3.0
G03X-8.3176Y-1.2441I-8.3176J-0.9766K-0.2165F10.0
G01X-4.6936Y-1.2441
G02X-4.1365Y-1.3724I-4.6936J-2.5175
G01X-3.6812Y-1.5939
G03X-3.1369Y-1.7193I-3.1369J-0.4752
G01X3.1369Y-1.7193
G03X3.6812Y-1.5939I3.1369J-0.4752
G01X4.1365Y-1.3724
G02X4.6936Y-1.2441I4.6936J-2.5175
G01X8.3176Y-1.2441
G03X8.5851Y-0.9766I8.3176J-0.9766
G01X8.5851Y0.4731
G03X8.3176Y0.7406I8.3176J0.4731
G01X5.0814Y0.7406
G02X4.5074Y0.9974I5.0814J1.5105
G03X3.9552Y1.2445I3.9552J0.5039
G01X-3.9552Y1.2445
G03X-4.5074Y0.9974I-3.9552J0.5039
G02X-5.0814Y0.7406I-5.0814J1.5105
G01X-8.3176Y0.7406
G03X-8.5851Y0.4731I-8.3176J0.4731
G01X-8.5851Y-0.9766
X-8.5851Y-0.9766Z-0.2248F3.0
G03X-8.3176Y-1.2441I-8.3176J-0.9766K-0.2248F10.0
G01X-4.6936Y-1.2441
G02X-4.1365Y-1.3724I-4.6936J-2.5175
G01X-3.6812Y-1.5939
G03X-3.1369Y-1.7193Z-0.2247I-3.1369J-0.4752
G01X3.1369Y-1.7193Z-0.2248
G03X3.6812Y-1.5939Z-0.2247I3.1369J-0.4752
G01X4.1365Y-1.3724Z-0.2248
G02X4.6936Y-1.2441I4.6936J-2.5175
G01X8.3176Y-1.2441
G03X8.5851Y-0.9766I8.3176J-0.9766
G01X8.5851Y0.4731
G03X8.3176Y0.7406I8.3176J0.4731
G01X5.0814Y0.7406
G02X4.5074Y0.9974Z-0.2247I5.0814J1.5105
G03X3.9552Y1.2445Z-0.2248I3.9552J0.5039
G01X-3.9552Y1.2445
G03X-4.5074Y0.9974I-3.9552J0.5039
G02X-5.0814Y0.7406Z-0.2247I-5.0814J1.5105
G01X-8.3176Y0.7406Z-0.2248
G03X-8.5851Y0.4731Z-0.2247I-8.3176J0.4731
G01X-8.5851Y-0.9766Z-0.2248
X-8.5851Y-0.9766Z-0.233F3.0
G03X-8.3176Y-1.2441I-8.3176J-0.9766K-0.233F10.0
G01X-4.6936Y-1.2441
G02X-4.1365Y-1.3724I-4.6936J-2.5175
G01X-3.6812Y-1.5939
G03X-3.1369Y-1.7193I-3.1369J-0.4752
G01X3.1369Y-1.7193
G03X3.6812Y-1.5939I3.1369J-0.4752
G01X4.1365Y-1.3724
G02X4.6936Y-1.2441I4.6936J-2.5175
G01X8.3176Y-1.2441
G03X8.5851Y-0.9766I8.3176J-0.9766
G01X8.5851Y0.4731
G03X8.3176Y0.7406I8.3176J0.4731
G01X5.0814Y0.7406
G02X4.5074Y0.9974I5.0814J1.5105
G03X3.9552Y1.2445I3.9552J0.5039
G01X-3.9552Y1.2445
G03X-4.5074Y0.9974I-3.9552J0.5039
G02X-5.0814Y0.7406I-5.0814J1.5105
G01X-8.3176Y0.7406
G03X-8.5851Y0.4731I-8.3176J0.4731
G01X-8.5851Y-0.9766
G00X-8.5851Y-0.9766Z0.05
__________________
www.maverickmoldandtool.com
Reply With Quote

  #2  
Old 12-03-2005, 11:49 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Jim,
You'll have to go into your nc editor in Bobcad, and open up the setup, and then conversion. This will be where you enter a generic version of what Bobcad posts in the left hand window, and then the conversion should be put in the right window.

The conversion amounts to simply dropping the Z and K words from the G02/G03

There are special codes that you use and I think it tells you somewhat about this in the help file. For example, to remove all instances of K, you would use this in the "Original" window:
K-*[0-9]*.[0-9]*
And on the same line directly across from this in the "Convert to" window, you simply leave a blank.

The basic idea is that you will likely never have need to use a Z nor a K value in your G02/G03 lines, so you remove them in this fashion.

Check the Bobcad website for more info and help.
__________________
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)
Reply With Quote

  #3   Ban this user!
Old 12-09-2005, 01:27 PM
 
Join Date: Aug 2003
Location: United States
Posts: 449
The One is on a distinguished road

The Z can be a problem, but if you use this conversion you will never see it again.

In the Original Window put in this value
{G03}@ {[A-Z]*-*+*[0-9]*.[0-9]*}@ {[A-Z]*-*+*[0-9]*.[0-9]*}@ {[A-Z]*-*+*[0-9]*.[0-9]*}@ {[A-Z]*-*+*[0-9]*.[0-9]*}@ {[A-Z]*-*+*[0-9]*.[0-9]*}@ {[A-Z]*-*+*[0-9]*.[0-9]*}@

Red will be the X value, Yellow the Y value, Magenta the Z value, Blue will be the I value, Lime the J value and light blue the K value.

In the Convert to window put in this string
@1@ @2@ @3@ @5@ @6@

This would remove both the Z and the K value. You would have to enter the command in with G02 as well.

In fact you could possibly correct any problems that might come up in the future using this conversion method in your post processor.

Regards
Reply With Quote

  #4   Ban this user!
Old 12-10-2005, 11:26 PM
 
Join Date: Feb 2005
Location: USA
Posts: 223
Jim Estes is on a distinguished road

Thanks for the replies. I tried inputing the conversion, but I must have not gotten it exactly right, however, I did use the REPLACE function to strip all the K values from my programs. I'll give this some more thought tomorrow and triy some other things out. One thing I don't understand is when you refer to the post processor, can this be edited without using the SETUP function? I edited a post processor for Mastercam a couple of years ago (changed it from using I &J to using R values), but I wasn't aware that I could edit the post processor for BobCad. Where would I go to get more info about doing that?
Jim
__________________
www.maverickmoldandtool.com
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 10:18 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