Chris,

The variable #WKPLN is a string. Use #IFSTR instead of #IF. You are also
missing the brackets < > around what is to be output if the expression is
true.

#IFSTR(#WKPLN=G54)< G68 X#XHOME Y#YHOME R#507>
#IFSTR(#WKPLN=G55)< G68 X#XHOME Y#YHOME R#508>

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




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 14, 2000 1:47 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Posting conditional output


Hi all,
     I'm a little rusty in my post work, and don't have a lot of spare time
right now to dig deeper, so I'm hoping for a quick hit answer from the
forum. I want to test which workplane is active and output specific code
for axis rotation. I've tried a few variations on the following with no
luck:
#IF(#WKPLN=G54) G68 X#XHOME Y#YHOME R#507
#IF(#WKPLN=G55) G68 X#XHOME Y#YHOME R#508

I get both lines output instead of one or the other needed for the active
workplane.
Any help will be greatly appreciated.

Thanks,
Chris


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