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 > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #13   Ban this user!
Old 11-22-2004, 09:41 AM
 
Join Date: Jan 2004
Location: Gardnerville,Nevada
Posts: 256
cncwhiz is on a distinguished road

E-Stop,
The line that should be before the "G10's" should contain the "G90" as well as all the other g codes to cancel drilling, cut comp etc. I also like to use a "G49" to make sure that the "G10's" don't double load the work offsets. The "G49" is a pretty important command in this line, however there can be times in setup that if it is read after a tool offset it can result in the tool moving to the "0" offset position. I personally do not put the "G90" in my "G10" line and have my posts built to not output it. I do make sure that it gets called before and after the "G10" lines. I have places in my programs where I use "G91" but I always make sure that the next line has "G90" even if it is a forth axis index move. I agree with the statement about the operators I have built macro's and all kinds of insurance into my programs too keep operators from having problems, but they still from time to time find a way to get in trouble.
Reply With Quote

  #14   Ban this user!
Old 11-23-2004, 06:08 AM
 
Join Date: May 2003
Posts: 17
rob2424 is on a distinguished road

is the G10 supported in cnc zeus?
Reply With Quote

  #15   Ban this user!
Old 11-23-2004, 07:32 AM
 
Join Date: Sep 2004
Location: US
Posts: 13
tpaulson is on a distinguished road

Originally Posted by rob2424
is the G10 supported in cnc zeus?
That appears to be the problem. According to CNCZeus support, currently G10 is Not supported.

I guess I will just have to generate the code for each box instead of doing a subprogram. Not a big deal, I just figured there was any easy way to repeat the code with offsets. Which there is, but CNCZeus doesn't support it. I will probably look at using Mach2 sometime in the future, but CNCZeus works well for now.

Thanks again
Tim
Reply With Quote

Sponsored Links
  #16   Ban this user!
Old 11-23-2004, 07:42 AM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

You can still subroutine. Just write the subroutine with all G91 codes. When the subroutine is over, move to a new absolute location (G90) and fire the subroutine again, as often as needed. Does that make sense? You just keep using G90s to get the cutter in your "start" position.

Swami
Reply With Quote

  #17   Ban this user!
Old 11-23-2004, 08:14 AM
 
Join Date: Sep 2004
Location: US
Posts: 13
tpaulson is on a distinguished road

Swami
I am very new to G code, but I think I understand. The problem is that the software I usually use to create the g-code from dxf doesn't appear to have the ability to generate incremental programming. DeskCNC is the only software I currently have access to that can create pockets.
Is there other software available inexpensive or free that will generate relative g-code for pockets?

Thanks
Tim
Reply With Quote

  #18   Ban this user!
Old 11-23-2004, 09:26 AM
 
Join Date: Jan 2004
Location: Gardnerville,Nevada
Posts: 256
cncwhiz is on a distinguished road

If this is an older fanuc controller 11 or 15, I can give you the option code to turn on the option. think that it is 9102 bit O.
Reply With Quote

  #19   Ban this user!
Old 11-23-2004, 10:09 AM
 
Join Date: Sep 2004
Location: USA
Posts: 77
Swami is on a distinguished road

Oh! No incremental...I understand why you needed to do it with G10 then now....

I dont know of a program that will generate the pocket using G91, but you could manually edit the code most likey.

Assume your machine is at 0,0 (or something else convenient). Program your first pocket You should be able to take that code and just append G91 (or remove G90) codes from what was produced. When you could make that modified code into a subroutine (by putting O1000 to start the block and M99 to end it) Now you should have a block of code that will work from whatever startingpoint you are at prior to calling it.

Example:
G0 G90 X0 Y0
M98P1000

G0 G90 X7 Y0
M981000

Hopefully that can help you out.

I was wondering, if you have a DXF to code generator, why not DXF all the pockets you want to make and let the program write the whole thing? Sheetcam would be very good for that. www.sheetcam.com

Good Luck,
Swami
Reply With Quote

  #20   Ban this user!
Old 11-29-2004, 01:36 PM
 
Join Date: Sep 2004
Location: US
Posts: 13
tpaulson is on a distinguished road

Swami
Thanks for your help.

Originally Posted by Swami
I was wondering, if you have a DXF to code generator, why not DXF all the pockets you want to make and let the program write the whole thing? Sheetcam would be very good for that. www.sheetcam.com
I ended up letting the software generate all of the pockets like you mentioned.

The main reasons why I was trying subroutines was:
1. To allow for quick changes of pocket size. Just make the change on one pocket location in the DXF instead of 5.
2. The subroutine method would also complete an entire box before moving to the next box. Having the g-code generater create all pockets, creates code to make the first pocket on all 5 boxes before creating the second pocket on the first box. This is a waste of time if I only need to make one box instead of all 5.
3. Easily change the number of boxes to be machined in a run

Tim
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM
parametric programming Karl_T CamSoft Products 21 05-24-2005 02:58 PM
How to set up Tool Offset in MACH2? High Seas Mach Software (ArtSoft software) 7 09-09-2004 12:54 PM
I need sample G code program bunalmis G-Code Programing 1 08-24-2004 03:50 AM
Getting The Most Out of CNCzone's Posting Features CNCadmin CNCzone.com FAQ 0 03-01-2003 11:08 PM




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