Here is a sample tool list routine for use in template files.
//TOOL LIST #EVAL(#U17=1) #EVAL(#U18=0) #REPEAT(TOTEL())< #IF(VIS(#U17))< #EVAL(#U16=JTOOL(#U17)) #EVAL(#U19=TOOL(#U17)) #IF(#U19>0,AND#U19<>#U18)< #EVAL(#S19=TDESC(#U19)) #EVAL(#V19=TLDIA(#U19)) #EVAL(#V18=TLEN((#U19)) (TOOL=#U16 #S19 DIA.=#V19 LEN.=#V18)> #EVAL(#U18=#U19)> #EVAL(#U17=#U17+1)> It uses macro functions that are not documented as available for use in the template file. The routine loops through all the visible (unmasked) elements in the database. Below is a variation of the tool list routine for template files. Place it in the @START section of the TMP file. @START %(#FILE) //TOOL LIST @TOOLLIST #EVAL(#U17=1) #EVAL(#U18=0) #REPEAT(TOTEL())< #IF(VIS(#U17))< #EVAL(#U16=JTOOL(#U17)) #EVAL(#U19=TOOL(#U17)) #IF(#U19>0,AND#U19<>#U18)< T100#U6 Z1.5> #EVAL(#U18=#U19)> #EVAL(#U17=#U17+1)> This will not take into account if the tool is used twice in the same program or if the tools are non-sequential. If you establish the maximum tool number used by this machine it is possible to address those issues. ================================================== Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ================================================== -----Original Message----- From: Stannard, Rick [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 11:28 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [mfg-smartcam] totally lost Yes, the Z coordinate is constant. This is the way he wants it to look like. I don't know why. Its possible that it tells the machine that each tool is 1.5 above the part. I would ask him, but its his day off. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 4:15 AM To: [EMAIL PROTECTED] Subject: RE: [mfg-smartcam] totally lost Is the Z coordinate a constant 1.5 or if not, what does it represent? ================================================== Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ================================================== -----Original Message----- From: Stannard, Rick [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 12:10 PM To: 'Smartcam Forum' Subject: [mfg-smartcam] totally lost Hi, Another co-worker has pmill v11.5 on a pentium 4 with win2000. He has a crusader that is probably a BNC(Before NC) Its a Crusader control mill, looks like a bridgeport mill to me. We have a code generator that works for him, but he has to add a few lines in at the beginning of the file before it will run. I don't know how I can accomplish this, so I have come to the great minds of SmartCam(ok a litter buttering up) At the beginning he needs to have every tool called out along with a Z move such as shown below for each and every tool he uses. I don't know how to make the code generator look ahead? and tell what tools he has chosen. So, it needs to look something like the following.. %(file name) T1001 G0 Z1.5 T1002 G0Z1.5 T1003 G0Z1.5 ETC... then, Rest of the code here. % I did go to the repository and got one code, but it calls out all tools from tool1 to tool 10. Thanks, Rick Stannard CNC Programmer 3000 W. Lomita Blvd. Torrance, CA. 90505 (310)784-4394 [EMAIL PROTECTED] ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
