Title: totally lost
Chris,
  Thanks for this.  It works for what I need.
     Rick
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, January 30, 2004 9:03 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [mfg-smartcam] totally lost

Try adding this to your code generator. It should give you a place to start. I got a version of this off of the forum some time ago; don't remember when or from whom. I modified it to produce something close to what you are asking for. The Z line is hard-coded. You should be able to modify this section to pick up a value from the job file if desired.
 
@START
 %O0000
#CALL(TOOLLIST)
@TOOLLIST
#IF(#U10=1)<***** THIS IS THE TOOL LIST  SECTION *****>
#EVAL(#U17=1)
#EVAL(#U18=0)
#REPEAT(TOTEL())<
#EVAL(#U19=JTOOL(#U17)
#IF(#U19>0,AND#U19<>#U18)<
T#U19
Z1.5>
#EVAL(#U18=#U19)
#EVAL(#U17=#U17+1)>
-----Original Message-----
From: Stannard, Rick [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 11:10 AM
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]


Reply via email to