To: Stannard, Rick [mailto:[EMAIL PROTECTED]] ;
[EMAIL PROTECTED]
Subject: RE: [mfg-smartcam] Fanuc tool change

O1999
(TOOL-SETTING PROGRAM)
N1#100=1(SET #100 EQUAL TO FIRST TOOL)
N2DO1(BEGINNING OF LOOP) 
N3T[#100](SELECT TOOL)
N4M6(TOOL CHANGE)
N5M0(SET TOOL OFF Z0)
-------------------
Just looking here, but on line N6, is are the # signs in the right place?
   Rick

yes, # signs are correct, #[2000+#100] will result in the variable #2001
being
set to the value of variable #5023

#2001 is the H1 offset in memory A Fanuc controls. All the variable numbers
will need to be set to those used by that particular control.

I should point out that #5023 is usually the Z value of the machine
coordinates, again this parameter could be different on different controls.

Marc
----------------------------------

N6#[2000+#100]=#[5023](MACHINE Z0 INTO OFFSET)
N7G0G91G28Z0(RAPID TO Z AXIS ZERO RETURN)
N8#100=#100+1(INCREMENT TO NEXT TOOL)
N9END1(END INDEFINITE LOOP)
N10G90(SWITCH BACK TO ABSOLUTE COORDINATES)
M30
%
Dave Wolfgang
CNC Programmer/Supervisor
www.hrindustries.net <http://www.hrindustries.net> 


----- Original Message ----- 
From: lee <mailto:[EMAIL PROTECTED]>  
To: Smartcam Mailing List (E-mail) <mailto:[EMAIL PROTECTED]>  
Sent: Monday, July 30, 2001 7:10 PM
Subject: [mfg-smartcam] Fanuc tool change


everyone, 
 I'm looking for ideas and suggestions on the best way to automatically
change a predefined number of tools for entering tool length offsets into a
Fanuc 18-m. Our control doesn't seem to have this option. We run allot of
short runs and using MDI to type tool number +M6 up to 30 times is a waste.
It also would be nice to store the Z value at the same time. This should be
a simple command, right? By the way I know this isn't a SC question but I
know you guys\gals can help me out.

Lee Greer 
CNC\CAD programmer 
Midwest Precision Tool & Die 
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to