Oops.... I was a little hasty with the send button. In hindsight I gave you some bad syntax. I was trying to assign strings, "B0" & "B180", to the decimal variable "#INDXB". Here's the corrected version:
@TPINDX #IFSTR(#WKPLN=H1)<#EVAL(#INDXB=0)> #IFSTR(#WKPLN=H2)<#EVAL(#INDXB=0)> #IFSTR(#WKPLN=H3)<#EVAL(#INDXB=0)> #IFSTR(#WKPLN=H4)<#EVAL(#INDXB=180)> #IFSTR(#WKPLN=H5)<#EVAL(#INDXB=180)> #IFSTR(#WKPLN=H6)<#EVAL(#INDXB=180)> � ================================================== 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: Wednesday, October 22, 2003 7:29 AM To: [EMAIL PROTECTED] Subject: RE: [mfg-smartcam] POST HELP? In addition to John and Bill's contributions (add the "B" and use "#IFSTR"), here's my 2� worth. Use the @TPINDX section not the declare. Add the "#" to WKPLN and use the "#EVAL()" functions to assign values to #INDXB. @TPINDX #IFSTR(#WKPLN=H1)<#EVAL(#INDXB=B0)> #IFSTR(#WKPLN=H2)<#EVAL(#INDXB=B0)> #IFSTR(#WKPLN=H3)<#EVAL(#INDXB=B0)> #IFSTR(#WKPLN=H4)<#EVAL(#INDXB=B180)> #IFSTR(#WKPLN=H5)<#EVAL(#INDXB=B180)> #IFSTR(#WKPLN=H6)<#EVAL(#INDXB=B180)> @START #EVAL(#U0=0) #IF(#U0=1)< START> % :G0 G70 G90 T#TOOL M6 (MSG,#TDESC) X#XPOS Y#YPOS B#INDXB #SPEED #SPNDL T#NTOOL #WKPLN <#MOV>Z#ZPOS M8 @TOOLCHG #IF(#U0=1)< TOOLCHANGE SECTION> G0 Z20 H0 <#FXD> :G0 G70 G90 T#TOOL M6 (MSG,#TDESC) G0 Z#ZPOS X#XPOS Y#YPOS B#INDXB S#SPEED #SPNDL T#NTOOL #WKPLN <#MOV>Z#ZPOS M8 ================================================== Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ================================================== > -----Original Message----- > From: Steve Nelson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 21, 2003 2:45 PM > To: Smartcam > Subject: [mfg-smartcam] POST HELP? > > Hello Smartcam Users, > Im trying to write a post for a Cincinnati a950mc control I am programming > off the centerline of the pallet and its a horizontal machine so I have > three tubes 33.0" long six different surfaces I named them > H1,H2,H3,H4,H5,H6. and H1,H2,H3 are at zero deg. H4,H5,H6 are at 180 deg. > > > > This is what my post looks like: > @DECLARE > #IF(WKPLN=H1)<#INDXB=B0> > #IF(WKPLN=H2)<#INDXB=B0> > #IF(WKPLN=H3)<#INDXB=B0> > #IF(WKPLN=H4)<#INDXB=B180> > #IF(WKPLN=H5)<#INDXB=B180> > #IF(WKPLN=H6)<#INDXB=B180> > > > @START > #EVAL(#U0=0) > #IF(#U0=1)< START> > % > :G0 G70 G90 T#TOOL M6 > (MSG,#TDESC) > X#XPOS Y#YPOS #INDXB #SPEED #SPNDL T#NTOOL #WKPLN > <#MOV>Z#ZPOS M8 > > @TOOLCHG > #IF(#U0=1)< TOOLCHANGE SECTION> > G0 Z20 H0 > <#FXD> > :G0 G70 G90 T#TOOL M6 > (MSG,#TDESC) > G0 Z#ZPOS > X#XPOS Y#YPOS #INDXB S#SPEED #SPNDL T#NTOOL #WKPLN > <#MOV>Z#ZPOS M8 > > How can I get my output to show B0 or B180 at these #INDXB areas. > > This is what I'm getting so far: > % > :G0 G70 G90 T270 M6 > (MSG,6.000 DIA. FACE MILL) > X-6.0 Y5.8 0.0 350 M3 T240 H4 > Z18.0 M8 > Z16.6 > G1Z-16.5F7.5 > > Any help would be greatly appreciated. > ====================================================================== 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] ======================================================================
