Much easier! I did not know about #OUTSEC.
Thanks,

Ed Hess
Alcon Research, LTD.
Fort Worth, TX

-----Original Message-----
From: Gregg Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 11:16 AM
To: Ed Hess
Cc: 'Kevin Brown'; [EMAIL PROTECTED]
Subject: Re: [mfg-smartcam] more errs


Alternatively you can add  #OUTSEC to your @DECLARE section :

@DECLARE
#OUTSEC

in your .tmp file which is much easier, but you can't control it with a
variable.

--gregg

Ed Hess wrote:

> Kevin,
>
> I use a variation of literals to debug a .tmp file. (page 200 of the
> SmartCAM code generation guide v11 under "Testing and Verification")
Perhaps
> you or some of the others could benefit from it. I do not know who to give
> credit to for this method. I discovered it in a downloaded code generator
of
> unknown origin. Adding literals to every line is time consuming
considering
> you must remove them each time also. The trick involves placing a literal
> label on each @Section and controlling it with a variable switch in the
> beginning. Example:
>
>         @VARIABLES
>         U0 = 1   :: WHEN ON IS A DEBUG SECTION LABEL OUTPUT SWITCH
>
>         @START
>         #EVAL(#U0=0)
>         #IF(#U0=1)<( ******************** start    ***************** )>
>
> Each @section will also contain a label with it's name. Example:
>
>         @TOOLCHG
>         #IF(#U0=1)<( ******************** toolchg  ***************** )>
>
> To use this simply change the  #EVAL(#U0=0) to read #EVAL(#U0=1) then each
> time an @section is called the label will be output along with your code.
It
> is very easy to identify the part of the .tmp file that needs to be
> modified. Here is a sample of the output code with the labels included.
>
>         ( ******************** start    ***************** )
>         %
>         N2 G90
>         N4 G01 X3. Y2. Z4. R
>         N6 T1 M6
>         N8 G48 R
>         N10 M3 S9
>         N12 G4X3.0
>         N14 G01 X0.38 Y-0.984 R
>         N16( ******************** cyclchg ***************** )
>         N18( ******************** ZCLRMV   ***************** )
>         N20 Z0.1 R
>         N22( ******************** cyclchg ***************** )
>         N24( ******************** stprof   ***************** )
>         N26( ******************** cyclchg ***************** )
>         N28( ******************** zchkmv   ***************** )
>         N30( ******************** cyclchg ***************** )
>         N32( ******************** zdpthmv  ***************** )
>         N34 G01 Z-2.165 F7.5
>         N36( ******************** cyclchg ***************** )
>         N38( ******************** arc      ***************** )
>         N40 G03 X0.4174 Y-0.9689 I0.0001 J0.0083 F15.0
>         N42( ******************** cyclchg ***************** )
>         N44( ******************** line     ***************** )
>         N46 G01 X0.4311 Y-0.963
>         N48( ******************** cyclchg ***************** )
>         N50( ******************** line     ***************** )
>         N52 Y-0.984
>         N54( ******************** cyclchg ***************** )
>         N56( ******************** line     ***************** )
>         N58 X0.38
>
> Here is the same piece of code with the labels (literals) turned off.
>
>         %
>         N2 G90
>         N4 G01 X3. Y2. Z4. R
>         N6 T1 M6
>         N8 G48 R
>         N10 M3 S9
>         N12 G4X3.0
>         N14 G01 X0.38 Y-0.984 R
>         N16 Z0.1 R
>         N18 G01 Z-2.165 F7.5
>         N20 G03 X0.4174 Y-0.9689 I0.0001 J0.0083 F15.0
>         N22 G01 X0.4311 Y-0.963
>         N24 Y-0.984
>         N26 X0.38
>
> As you can see it is very easy to see where the code is coming from and
what
> needs to be modified to correct a problem. The attached .tmp file is an
> example for a Bostomatic SPC II that I am currently debugging. Hopefully
it
> will help make sense of all this. Hope this is useful to someone.
>
> Ed Hess
> Alcon Research, LTD.
> Fort Worth, TX
>
> -----Original Message-----
> From: Kevin Brown [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: [mfg-smartcam] more errs
>
> Hello,
>
>   Here is some sample code and I will try to hylight the problems that my
> post is producing and mabee someone can help!
>
> N25000
> N5 G18 T6 S2292 M6
> N10 G54
> N15 G0 X1.29 Z3.1758 Y0.1
> N20 X1.29 Z3.1758 Y0.1 M3
> N25 Y0.05
> N30 G1 Y-0.25 F2.0
> N35 G3 X1.546 Z3.4842 I2.6007 K2.3484 F4.0
> N40 X1.7891 Z3.71
> N45 G1 X1.29
> N50 Z3.1758
> N55 G0 Y0.1
> N60 Z1.29
> N65 Y0.05
> N70 G1 Y-0.25 F2.0
> N75 X1.4683 F4.0
> N80 G3 X1.29 Z1.521 I2.6007 K2.3484
> N85 G1 Z1.29
> N90 X1.04 Z1.04
>
> First off my machine is a universal maho that is programed in horizontal
but
> we use vertical att.  So the Y's and Z's are reversed.
> First problem is on line 40 it is dong a linear movement however, the G1
> doesn't come in till the 2nd line?  THe next is it does one portion at the
> .25 depth, then comes up for no reason reposisions itself and goes down
> again and finnishes?
>
> Well my day just got worse, I was runing through the program on my machine
> and then pooff the hydrolics are gone.  All I got threw was these first
few
> lines.  There are somethings that are wrong or things that I would like
help
> to change.  As soon as my machine is back on line I will send the rest.
>
> Thanks
>
> Kevin Brown
> Brock University
> St. Catherines ont.
>
>
> _______________________________________________________
> Send a cool gift with your E-Card
> http://www.bluemountain.com/giftcenter/
>
> ======================================================================
> To find out more about this mailing list including how to unsubscribe,
> send the message "info mfg-smartcam" to [EMAIL PROTECTED]
> ======================================================================
>
>   ------------------------------------------------------------------------
>                   Name: i_bosto.tmp
>    i_bosto.tmp    Type: application/x-unknown-content-type-tmp_auto_file
>               Encoding: quoted-printable

--

Gregg Olson
Development Manager
SDRC CAM Products


======================================================================
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