VAR_REMOVE_ALL[]
//
// =================================== INPUT VARIABLES
===========================
//
//  Enter #S1 User_cmd
//
STRING: #S1
PROMPT[TX="Enter AG???? REV.?? DWG DIE ??? PART NAME for the S1
User_Element", VN="S1"]
//
PROMPT[TX="Enter LEAD as the length of the Lead In/Out lines.\n
The minimum distance for lead In/Out lines is .010" , VN="LEAD", DV=1]
//
I'm trying to check to see if #GLUESTOP variable is less then .015" or
bigger then #DISTANCE variable.
tried...
WHILE(#GLUESTOP<.015 ,OR #GLUESTOP>#DISTANCE)no good. 

I think only IF statements would work BUT you cannot go back up the macro
and reenter the #GLUESTOP variable.

Anyways, I tried two WHILE statements with appropriate PAUSE error boxes.
Does the first WHILE check okay and blows up on the second.

Hmmm....



//  Enter and check LEAD variable
//
WHILE(#LEAD<.010)
        PAUSE[TX="ERROR: The LEAD In/Out length must be .010\" and bigger!",
PT=1] // Include box cancel option
                  #LEAD=1000000  // this resets LEAD variable to an unknown
value
ENDW
//
PROMPT[TX="Enter DISTANCE as the length from the start of the\n
EL to where you want to lead In/Out. The min. distance from the start of the
EL is .015" , VN="DISTANCE", DV=1]
//
//  Enter and check DISTANCE variable
//
WHILE(#DISTANCE<.015)
        PAUSE[TX="ERROR: The DISTANCE must be .015\" and bigger!", PT=1] //
Include box cancel option
                  #DISTANCE=1000000  // this resets DISTANCE variable to an
unknown value
ENDW
//
//  Enter and check the size of the glue stop
//
PROMPT[TX="Enter GLUESTOP as the size of the glue stop you want to\n
use. It must be a minimum of .015 and less then the DISTANCE\n
from the start of the element." , VN="GLUESTOP", SC=50, DV=1]
//
WHILE(#GLUESTOP<.015)
        PAUSE[TX="ERROR: The GLUESTOP must be bigger then .015\"!", PT=1,
SC=50] // Include box cancel option
                  #GLUESTOP=1000000  // this resets GLUESTOP variable to an
unknown value
ENDW
//
WHILE(#GLUESTOP=>#DISTANCE)
        PAUSE[TX="ERROR: The GLUESTOP must be less then the DISTANCE from
start of element!", PT=1, SC=50] // Include box cancel option
                  #GLUESTOP=1000000  // this resets GLUESTOP variable to an
unknown value
ENDW

Tthanks for any input!


Regards,

Michael Senack, X354
Your local friendly neighborhood CNC Programmer


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