I don't quite understand what you're looking for in the first part of your question. As for the latter question, yes, you can have #EVAL( ) statements inside of the #ELSE< >.
============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: gary [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 8:16 AM To: Lauzus, Frederick Subject: Re: [mfg-smartcam] A axis rotation That works grate. Could I bother you with one more question along the same lines. At the beginning of the temp file there is a section I do now how to handle. That is the only place the post will still out put the G91 A-1 move. Can I have an eval statement in an #ELSE > : G00 G90 G61 (MSG, T#TOOL #TDESC) #CALL(MESSAGE) #ONBLK M01 #EVAL(#TOOL=#TOOL+1000) T#TOOL M06 G71 #IF(#INDXA<>0)<#EVAL(#U20=1)#CALL(TPINDX)>#ELSE< A#INDXA G00 G94 A-1.00 F100 G91 A1.00 G90 M10> #WKPLN #MOV X#XPOS Y#YPOS Z#ZPOS#EVAL(#U18=1)#EVAL(#U17=1) S#SPEED #SPNDL#EVAL(#U19=0) Thank you for your help. Gary -----Original Message----- From: Lauzus, Frederick <[EMAIL PROTECTED]> To: gary <[EMAIL PROTECTED]>; Lauzus, Frederick <[EMAIL PROTECTED]> Date: Monday, February 19, 2001 7:51 AM Subject: RE: [mfg-smartcam] A axis rotation >Try adding a line to test if the variable #V0 is >a negative number and compensate by 360 degrees. > >#EVAL(#V0=#INDXA-1) >#IF(#V0<0)<#EVAL(#V0=360+#V0)> >#MOV A#V0 >G01 F100 A#INDXA >M10 > >============================================= > Fred Lauzus, CAM Programming Coordinator > High Steel Structures, Incorporated > mailto:[EMAIL PROTECTED] http://www.highsteel.com >============================================= > > >-----Original Message----- >From: gary [mailto:[EMAIL PROTECTED]] >Sent: Monday, February 19, 2001 7:45 AM >To: Lauzus, Frederick >Subject: Re: [mfg-smartcam] A axis rotation > > >That almost did it. >Except whent the final position is 0 deg, the pre position out put is A-1.00 >and it should be A359.00. >Do you have any ideas. > > > >Thank you for all your help. >Gary > > > > > >-----Original Message----- >From: Lauzus, Frederick <[EMAIL PROTECTED]> >To: gary <[EMAIL PROTECTED]>; Smartcam Users Group (E-mail) ><[EMAIL PROTECTED]> >Date: Monday, February 19, 2001 6:00 AM >Subject: RE: [mfg-smartcam] A axis rotation > > >> >>Try something similar to this in your @TPINDX section. >> >>#EVAL(#V0=#INDXA-1) >>#MOV A#V0 >>G01 F100 A#INDXA >>M10 >> >> >> >>============================================= >> Fred Lauzus, CAM Programming Coordinator >> High Steel Structures, Incorporated >> mailto:[EMAIL PROTECTED] http://www.highsteel.com >>============================================= >> >> >>-----Original Message----- >>From: gary [mailto:[EMAIL PROTECTED]] >>Sent: Saturday, February 17, 2001 10:23 AM >>To: Smartcam Users Group (E-mail) >>Subject: [mfg-smartcam] A axis rotation >> >> >>I am trying to output a rotary move like this for a particular A move. ( >>90deg for instance ) >> >>G00 A89.00 >>G01 F100 A90 >>M10 >> >>How can I subtract 1 degree from the #indexA number and then position to >>#indexA in the tmp file. >> >>Any help is appreciated. >> >>Gary >> ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
