The best way I've found of tracking the number of rotations is by setting SMF question 304 to 2 to treat the rotary axis as a linear axis. You can divide the angle by 360 for total rotations from 0 degrees.
@DECLARE #INT #Rotations #DEC #Angle @TPINDX #EVAL(#Rotations=INT(#INDXB/360)) #EVAL(#Angle=#INDXB-#Rotations*360) < #MOV>< Z#ZPOS> < B#Angle> You cannot use the IF, WHILE, ENDIF, ENDW functions of from the macro language in a TMP file. You can however use #IF(logic expression)<action if true>#ELSE<action if false> and #REPEAT(number of repetitions)<action> functions. I've never heard of a @BROTATE template section, it must be custom. How is it called? ============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: Kevin M. Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 9:25 AM To: SmartCam Fourm Subject: [mfg-smartcam] TMP files Does anyone know if you can count the number of rotations and if so can you use IF, WHILE, #COUNT, ENDIF, ENDW in the @BROTATE section of a TMP file. I can get 2 and 4 rotations to come out correctly but anything else is messed up. -- Kevin M. Clark Programmer Abbott Workholding Inc. ====================================================================== 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] ======================================================================
