To do a check of a variable value all in one block I use this format. IF[[#510-1]*[#510-9] LE 0]THEN #3000=#510(26 CHARACTER MESSAGE)
This block will check #510 for a legal vaue of 1 thru 9, and if ouside of that range, will generate an NC side alarm. You can set the #3000=1-200 to customize the alarm message number. > -----Original Message----- > From: Ernie Rymer [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, June 14, 2000 5:18 PM > To: Wilson, Andrew > Cc: Smart-Cam Group > Subject: Re: [mfg-smartcam] Macro B Question > > How about this..... > > I'm assuming to have done the check (angle), and have the deviation number > stored in a proper variable register. > > IF[#100 GE 0] GOTO3000 (.....#100 Could be any register) > > IF[#101 LE 359] GOTO3000 (.....#101 Could be any register) > > N3000 > #3000ERROR > > Mind you I'm no expert...and I may not understand the question..but what > the > heck it is a shot!! > > Blueskies, > > Ernie > > > All you Fanuc Macro B experts.... > > I need to do a conditional check to check that a variable value is > between > > 359. and 1. > > I cant figure out the statement to check between 2 numbers with zero as > the > > mid point. > > I am probing an angle, if it checks 0 to 1 degree its ok.... if it > checks > 0 > > to 359 (off square the other direction) > > then thats Ok anything beyond 359 to 0 to 1 and I want it to fault out > with > > a #3000 error. > > thanks > > > > > > Andrew Wilson > > CNC Programmer/Systems Admin > > > > > > ====================================================================== > > 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] > ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
