My thanks to all who replied to my post question. Using #IFSTR along with using brackets < > around my conditional output did the trick.
Now I need another post tweak: When the same drill moves from one workplane to the next, I need a drill cycle cancel, the conditional workplane output for the corresponding workplane, then the drill cycle started again, as follows: G80 Z1.0 G68 X____ Y____ R#508 G98 G83 X____ Y____ Z-____ R0.1 Q0.25 As of now, I have never used the @WKSYS section. Do I need to start using it now? Any help, as always, would be greatly appreciated. Chris > >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] ======================================================================
