CNCzone.com-The Largest Machinist Community on the net!


Welcome to the CNCzone.com-The Largest Machinist Community on the net! forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Notices

Fadal Discuss Fadal machinery here!


Reply
 
Thread Tools Display Modes
  #1   Ban this user!
Old 03-11-2010, 01:41 PM
Robert Edward J Robert Edward J is offline
 
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
DareBee DareBee is offline
Monkeywrench Technician
 
Join Date: Jan 2004
Location: Stratford, Ont. Canada
Posts: 2,469
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
denmar denmar is offline
 
Join Date: Jul 2009
Location: usa
Posts: 134
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
Neal Neal is offline
 
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 731
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
Robert Edward J Robert Edward J is offline
 
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
Neal Neal is offline
 
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 731
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
Robert Edward J Robert Edward J is offline
 
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
Neal Neal is offline
 
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 731
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
Robert Edward J Robert Edward J is offline
 
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
Robert Edward J Robert Edward J is offline
 
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
Neal Neal is offline
 
Join Date: Mar 2003
Location: Chatsworth, Ca
Posts: 731
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
Robert Edward J Robert Edward J is offline
 
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

Bookmarks

Tags
look ahead, programming, serial




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

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 02:15 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.