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
  #1   Ban this user!
Old 07-28-2010, 01:26 PM
 
Join Date: Jan 2009
Location: USA
Posts: 39
ggborgen is on a distinguished road
Question G08 Advanced Preview Control

Gentlemen,
Can someone tell me what this G-code is used for and what it does?
Seen it use at the end of Renishaw probing macro #9820 Ren Stock Allowance
and it spark my interest. Thank You
Reply With Quote

  #2   Ban this user!
Old 07-28-2010, 09:14 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Post the macro so we can see how it's used.

I suspect that it may be shutting off G08 which is a control look-ahead function which can sometimes cause problems with macros especially with probing or other high number crunching sub programs....

I have a few different versions of #9820 but I'm not seeing it...
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #3   Ban this user!
Old 07-29-2010, 07:56 AM
 
Join Date: Jan 2009
Location: USA
Posts: 39
ggborgen is on a distinguished road

pychomill,
Here you go
Attached Files
File Type: txt O9820.txt.txt‎ (2.5 KB, 88 views)
Reply With Quote

  #4   Ban this user!
Old 07-30-2010, 09:03 PM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

Somebody edited this program to turn G08 on (P1 = on, P0 = off). This is a FANUC look-ahead function for the control. I pretty sure Renishaw did not do this as Look-ahead is generally a known problem with macros, probing, etc. What this does is allow the control to 'read ahead' much further into the program before it gets there. It's an accuracy related subject and allows the control to "prepare" itself for different moves, comps, code strings, etc. Sounds like a good thing for a probe but it actually can have a negative affect due to macro calculations.

You don't generally see Renishaw shutting off any type of Look-ahead or other precision control (like G05, G5.1, G61.1, etc) because there's too many variations of this out there and how the strings are triggered. So shutting it off is the user's responsibility. In fact, you'll actually find that probe programs may contain quite a few dwells programmed (G4). This is to slow down the control and process to make sure you don't get any math errors. Sometimes you'll even see several dwells back to back.

If you want to know more about G8 (or G5, G5.1, etc)... do a search through this forum. There's tons of posts and discussion on the subject.

For whatever reason, someone typed in the G8 to turn back on in the probe macro instead of say the part program itself.
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #5   Ban this user!
Old 07-31-2010, 01:58 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

I think dwell does not shut off look-ahead feature. Macro calculations would still be done, till the next NC statement.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-31-2010, 10:03 AM
 
Join Date: Mar 2005
Location: Silicon Valley, CA
Posts: 982
psychomill is on a distinguished road

I did not say it will shut down look-ahead.....

I stated that it is to "slow" down the control. This is in order to ensure the execution of calculations and/or statements...
__________________
It's just a part..... cutter still goes round and round....
Reply With Quote

  #7   Ban this user!
Old 07-31-2010, 12:32 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Psyco is correct as I have had to do this on a few occasions. In some of my macros when using a system variable in a loop they system variable would not update fast enough for the program. In the program a calculation would change the system variable and in the next line of code I would check the status of it but because I was checking it in the next line it would not be updated and it would blow by the check. I had to add a dwell right before the check line to give the machine time to update the system variable.

Look ahead has burned me many times in some of my extensive macros. It’s easy to over look as the problem and has caused many head pounding to control monitors before figuring it out . Few other things that do this is the “rounding point math” macro variable reads one thing but calculates another.

Stevo
Reply With Quote

  #8   Ban this user!
Old 08-02-2010, 01:10 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

I had the following example in my mind, where the idea is to keep an output device on for five seconds, and then restart the program execution:
#1100=1;
G04 X5;
#1100=0;
This does not work. #1100 immediately becomes zero. The device would switch on only momentarily.

Illogical rounding is something I never expected. For example #0.5=1 stores 1 in #1 on Fanuc controls!
Reply With Quote

  #9   Ban this user!
Old 08-02-2010, 07:55 AM
 
Join Date: Jan 2009
Location: USA
Posts: 39
ggborgen is on a distinguished road

Gentlemen,
I have also seen dwells written like this:

#3001=0
WHILE[#3001LT9000]DO1
END1

Is there a reason to do it this way?
Reply With Quote

  #10   Ban this user!
Old 08-02-2010, 08:11 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

#3001 is a timer and can be written as a dwell. The WHILE statement is more or less used to repeat a section of code for programming a specific amount of times. This is actually kind of a smart way to do it because IIRC the program will not read outside the END line until it is satisfied so it should eliminate any issues with the look ahead.

To answer your question, No I have not seen a dwell written this way before. When it comes to programming there are so many ways it can be written.

When grooving on our lathes you always wanted to dwell in the bottom of the groove so you got a flat bottom. Some people just program the last few thousands at a slow feed but I would program the amount of dwell needed based on machine position and spindle speed.

G4X[#5041/#4119*10]
This would give the proper amount of dwell based on all the factors. This way it would not dwell to little or too much.

Stevo
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-02-2010, 02:36 PM
 
Join Date: Jan 2009
Location: USA
Posts: 39
ggborgen is on a distinguished road

G4X[#5041/#4119*10]
This would give the proper amount of dwell based on all the factors. This way it would not dwell to little or too much.

Stevo[/QUOTE]

Stevo1
If programmed in G96 is #4119 programmed spindle speed or actual?
Reply With Quote

  #12   Ban this user!
Old 08-04-2010, 12:14 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

First off I want to apologize that the factor of *10 is suppose to be *15. This is not exact as I had stated. If you want to get exact numbers you have to do more calculations.

To answer your question the #4119 is the programmed SFM so if you take the current diameter / the SFM*15 it will be pretty much there within a few milliseconds.

As for calculating it out exact you will have to calculate like so with 200sfm at a 31” diameter as an example.

G4X[60]/[[#4119*3.82]/#5043]](=2.43455)

G4X[#5043/#4119*15](=2.325)

Stevo
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
Preview for DX-32 johnhb Bridgeport and Hardinge Mills 3 07-01-2010 08:01 AM
Need Help!- text preview Claude Boudreau BobCad-Cam 4 05-05-2010 11:53 AM
Need Help!- BOSS DX32 Control [F5] Preview minton General CNC (Mill and Lathe) Control Software (NC) 0 03-09-2009 09:47 PM
AI Advanced preview control qmas99 Fanuc 1 09-21-2008 08:49 PM
Preview Materials dighsx Vectric 0 11-07-2005 03:44 PM




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