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! > MetalWorking Machines > Fadal


Fadal Discuss Fadal machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-11-2010, 01:41 PM
 
Join Date: Mar 2010
Location: USA
Posts: 6
Robert Edward J is on a distinguished road
Fadal Look Ahead Feature

I have a Fadal VMC 3016 that I am communicating with from a PC via serial. As a program on the mill runs in auto mode it sends data to the PC, and the PC send data back. The problem I'm having is that the Look Ahead feature is causing the serial commands to execute early - before the mill gets to that part of the program. Timing is important in my application.
I know that I can disable the Look Ahead feature from the run time menu, but I'd like to either 1) turn it off permanently, 2) turn it on and off from the g-code, or 3) make it not apply to certain lines of my program.

Does anyone know how to do any of those three things?

BTW, my programming manual says that the Look Ahead feature will not read beyond an M0 - but it DOES!

Thanks very much for any help you can offer me!
Reply With Quote

  #2  
Old 03-11-2010, 03:36 PM
DareBee's Avatar
Monkeywrench Technician
 
Join Date: Jan 2004
Location: Stratford, Ont. Canada
Posts: 2,783
DareBee is on a distinguished road

You had better tell us what control you are using and what format.
My 88HS in format 2 will look ahead post the M00 but it will not execute beyond it until I push the green button.
__________________
www.integratedmechanical.ca
Reply With Quote

  #3   Ban this user!
Old 03-13-2010, 06:17 PM
 
Join Date: Jul 2009
Location: usa
Posts: 286
denmar is on a distinguished road

the smaller de BUFFER, the Run Time Menu is faster
Reply With Quote

  #4   Ban this user!
Old 03-15-2010, 11:21 AM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 896
Neal is on a distinguished road

If you are using any macros, the macro is processed as soon as it hits the buffer. Using the "WAIT" statement to temporarily turn off the buffer, or usie a block skip symbol, or change the Binary Buiffer parameter to a samller size could help.
If I could see your program, I could tell why it is happening.

Neal
Reply With Quote

  #5   Ban this user!
Old 03-15-2010, 11:38 AM
 
Join Date: Mar 2010
Location: USA
Posts: 6
Robert Edward J is on a distinguished road

Neal,

Will block skip work? I wondered about that but something I read made me think it wouldn't.

I'm going to try reducing the number of binary buffers to 15 and then just inserting 15 comment blocks, but that is a vey inelegant solution, if it works.

Yes I am using macros. My code (hugely simplified for clarity) is below. The "PART FINISHED" SPRINT is happening very early. I need it to happen after the CNC has finished its motion. The M0 is definitely not stopping this line from executing early.

#SPRINT SEND INFO

#SINPUT V1

(other macros, motion, etc.)

M0

#SPRINT "PART FINISHED" <---this is the line I'm having trouble with

#IF (SOME CONDITION) THEN GOTO: (THE BEGINNING OF THE PROGRAM)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-15-2010, 03:41 PM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 896
Neal is on a distinguished road

The block skip will not work properly with the macros. In this case use the WAIT statement. This will stop the program from loading into the buffer unitl the buffer has been depleted.

Neal
Reply With Quote

  #7   Ban this user!
Old 03-15-2010, 04:03 PM
 
Join Date: Mar 2010
Location: USA
Posts: 6
Robert Edward J is on a distinguished road

Neil,

I am not familiar with the WAIT command, nor can I find documentation on it. Can you tell me how to use it? Can I execute it from within my code?

Thanks so much!
Reply With Quote

  #8   Ban this user!
Old 03-15-2010, 06:37 PM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 896
Neal is on a distinguished road

Tell me what you want to happen and send me a little more of the code. You can e-mail the code section to me at xyzpro@sbcglobal.com if you want to.

Neal
Reply With Quote

  #9   Ban this user!
Old 03-17-2010, 04:45 PM
 
Join Date: Mar 2010
Location: USA
Posts: 6
Robert Edward J is on a distinguished road

I want the CNC to NOT execute the SPRINT until after it has completed its motion. LOOK AHEAD is causing the CNC to execute the SPRINT command well before the CNC has gotten that far in its motion.

The code looks like:

N20#:Start
N30#CLEAR
Reply With Quote

  #10   Ban this user!
Old 03-17-2010, 04:56 PM
 
Join Date: Mar 2010
Location: USA
Posts: 6
Robert Edward J is on a distinguished road

oops. Hit the wrong key.

The code looks like:

%
N20#:START
N30#CLEAR
N40#SPRINT "SEND DATA" <-----NO PROBLEMS HERE
N50#SINPUT V5
...
N130G90
N140M6T11
N150H11E7G0X0Y9.Z8.
N160M66
N170M61M63
...
N800G0Z2.
N810G1Z+R7F3000.
N820G91
N830G0Z0.005
N840G91
....
N1060Y9.
N1070M5
N1080M0
N1090#SPRINT "PART FINISHED" <-----EXECUTES WAY TOO EARLY
N2000#SINPUT V27
N2010#IF V27NE50 THEN GOTO:START
N2020#GOTO:SENDOD
N2030#:END
N2040M99
%

The SPRINT "PART FINISHED" command is being executed while the CNC is still doing motion from many lines earlier in the code.

I tried turning the number of binary buffers down to 15, and now the SPRINT executes only 15 lines ahead of where the CNC is in the code. I tried adding 15 comment lines just before the SPRINT, but they had no effect.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-18-2010, 09:25 AM
Neal's Avatar  
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 896
Neal is on a distinguished road

Insert the line N1085#WAIT This will stop the Sprint statement from loading into the buffer until the previous data has ben executed.

Neal
Reply With Quote

  #12   Ban this user!
Old 03-18-2010, 02:51 PM
 
Join Date: Mar 2010
Location: USA
Posts: 6
Robert Edward J is on a distinguished road

Thank you, Neal! That works!
Reply With Quote

Reply

Tags
look ahead, programming, serial




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
HSM and look-ahead JohnJW Haas Mills 32 02-26-2010 01:38 PM
look ahead cnc spook Controller & Computer Solutions 2 08-26-2009 08:37 AM
0i parameter number for look-ahead feature sinha_nsit Fanuc 1 03-02-2009 09:26 AM
Problem- Look Ahead with G68 ludde_77 Fanuc 0 10-30-2008 05:13 PM
look ahead on oi-mc spock Fanuc 2 05-03-2007 07:50 AM




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