Gene,

What I want is:
If #V13 =0.0 or .1 then set #V13 to the value of #ZCHK, else output the
value of #V13
So is this correct?
#IF(#V13=0.0, #OR#V13=.1)<#EVAL(#V13=#ZCHK)>
And if so, do I need an ELSE at the end?

Thanks, Dave






genebo <[EMAIL PROTECTED]> on 02/05/2003 11:50:48 AM

Please respond to [EMAIL PROTECTED]

To:    [EMAIL PROTECTED]
cc:    [EMAIL PROTECTED]

Subject:    Re: [mfg-smartcam] Need Syntax Help


Dave,

Your #IF statement says:

If  #V13 is anything except 0.0 or 0.1 then do nothing.

If  #V13 is 0.0 or 0.1, set #V13 to #ZCHK.

You can accomplish this with:

#IF (#V13=0.0,#OR#V13=0.1) <#EVAL(#V13=#ZCHK>

If  #V13 is anything other than 0.0 or 0.1, then nothing will happen.

Gene Bowen

[EMAIL PROTECTED] wrote:

>I'm trying to change my Z check clearance for one tool in a program. I'm
>doing this with a user element as the first element of that tool (eg. #V13
>=-.05). This is what I have in my @FXD2 section.
>
>#IF(#V13<>.1,#AND#V13<>0.0)<#EVAL(#V13=#V13)>#ELSE<#EVAL(#V13=#ZCHK)>
>< #ABSI>< #RTNLVL>< #FXD>< X#XPOS>< Y#YPOS>#EXLN
>< Z#ZDPTH>< R#V13 P#DWELL> <F#FEED>
>
>I know my IF statement isn't right "<#EVAL(#V13=#V13)>",(although I think
it's outputting correctly), but what's the correct syntax if the IF
>statement is true?
>
>Thanks, Dave
>
>









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