Fred,

This it what I use to "kill" my code when a error occurs, its not a
undocumented feature you 

would like to find, but it seem to work.

The only thing is you have to put the "traps" in the correct locations.


After each @section you need to add
#IF(#U19>0)<#CALL(ERROR)>#IF(#U19=100)<#EXIT>


then customize the following section to your needs, just keep the last
line #EVAL(#U19=100) so 

the C/G will suppress all out put after a error has occurred.

@ERROR
#OFFBLK 
#IF(#U19=1)<***ERROR*** #TLDIA TOOL DIA TO LARGE TO MACHINE #ARAD RADIUS
WHILE USING CUTTER COMP> 
#IF(#U19=2)<***ERROR*** CAN NOT USE CUTTER COMP WITH RIGHT ANGLE HEAD !>
#EVAL(#U19=100)

J.G.




-----Original Message-----
From: Lauzus, Frederick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 25, 2000 2:24 PM
To: SmartCAM Email Group
Subject: [mfg-smartcam] How to kill a code generator 


Does anyone know how to kill a code generator?

Before they come to lock me up, let me explain.
I'm building in some automatic error checks into
the template file such as checking for axis over
travel, excessive spindle speeds, etc. Once a
error condition is found, is there a simple way
to stop generating code at that point?

What I'm looking for is one of those happy little
accidents where someone finds a bug (a.k.a.
undocumented feature) that they can actually make
good use of.

Anybody have such luck?

=============================================
 Fred Lauzus, CAM Programming Coordinator
 High Steel Structures, Incorporated
 mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
 


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

Reply via email to