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


SolidCam Discuss SolidCam software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-16-2009, 07:22 AM
 
Join Date: Jul 2009
Location: UE
Posts: 3
freakolot is on a distinguished road
G-code loops on profile ?

Hello.

--poor english mode on--

Is it possible in SolidCAM to generate g-code loops
on profile operations?

I'm using standard FANUC.gpp i FANUC.mac files.
In .mac file the loops are set to "Y"
But I read that loops can only be generated with T-Slot operations.. ?

Now I'm changing g-code to look like this:

#1 = 0
o100 while [#1 gt -20]
#1 = [#1-2]
G1 ....
G1 ....

o100 endwhile

I'm really newbie on this,
and I really need to generate this "on the fly"...

thanks for any suggestions

--poor english mode off--

F.
Reply With Quote

  #2   Ban this user!
Old 07-16-2009, 08:19 AM
 
Join Date: Jul 2009
Location: united kingdom
Posts: 3
si.peco is on a distinguished road

i dont know if this will help but i generate electrodes for the model industry, so pretty small stuff with fine cuts over profiles, in my expierience i would bin off the profile operations of solidcam as we haven't found them to be versatile enough, and regardless of how simple it is we always use 3d milling even for a 2 pass profile. let the post processor do the work. hope this helps, cheers.
Also it looks like that program format has macro (ive never liked this) in it, so its not 100% Gcode.
Reply With Quote

  #3   Ban this user!
Old 07-17-2009, 03:52 AM
 
Join Date: Jul 2009
Location: UE
Posts: 3
freakolot is on a distinguished road

Hm...

But the thing is that I can't get the loops
generated in any way.
Even with Slot operation with section.
And I really need them to be generated
from SolidCAM.

F.
Reply With Quote

  #4   Ban this user!
Old 07-17-2009, 06:16 AM
 
Join Date: Jul 2009
Location: united kingdom
Posts: 3
si.peco is on a distinguished road

hmm yeah t slots bit of a turd,
why i say about the macro, is
that to loop a sub program in g,code you wanna use:-
M98(sub prog call) P111(E.g for O111 prog num) L10 (times prog to repeat)
then have your profile info in O111 with any incremental Z m oves at the start
E.g
O111
G91 Z-2
G90
G01 (PROFILE DATA)
Again i dont know if this will help but you should be able to get a 100% g.code post processor(ours is for a hurco) for solidcam as this program format is both easier to read and understand, also hell of a lot easier to learn to write your own sections of program.
Cheers
Reply With Quote

  #5   Ban this user!
Old 07-17-2009, 09:40 AM
 
Join Date: Jul 2009
Location: UE
Posts: 3
freakolot is on a distinguished road

Hello

After some changes in fanuc.gpp and fanuc.mac files
i can get g code like this:

O3 call
G1 Z-8. F30
O3 call
G1 Z-12. F30
O3 call
G1 Z-16. F30
....
....
O3 sub
G3 X70. Y29. R29. F30
G1 X0.
G3 X0. Y-29. R-29.
G1 X70.
G3 X90.506 Y-20.506 R29.
O3 endsub

I had to change "M98 and P" because EMC2 don't understand them.
But all of this are subprograms not loops...
Now if i have 50 steps down there will be 50 "O3 call and G1 Z-X lines"
... but anyway it is a little step forward

thanks,

F.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-18-2009, 01:07 AM
 
Join Date: Oct 2007
Location: United Kingdom
Posts: 393
Brakeman Bob is on a distinguished road

To generate loops in your code you need to restructure the post processor. This involes turning PROCS on in the MAC file and then writing code in the GPP file to handle the gernerate loop. Very likely you will need to add some global variables for holding the start and finish N numbers.

There is good sample code in the GPP tool manual and in the GPP help.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gerber Profile Router G Code Information cryg Canadian Club House 0 07-02-2009 12:08 PM
Setting up loops Zmachine Haas Lathes 6 03-20-2009 10:15 AM
Komatsu fine plasma profile cutting G code nguyenthanhthi G-Code Programing 0 03-06-2009 05:50 AM
Profile - Depth Type 3D - G Code mattpatt SolidCam 7 02-16-2009 02:33 AM
loops and subs d.dixson Mach Mill 5 04-07-2007 05:25 PM




All times are GMT -5. The time now is 09:48 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 354 355 356 357 358 359 360 361