// ---------------------------------------- // // The following SmartCAM code generator has been // created to generate NC code for the respective // machine and control combinations listed below. // // Due to differences in programming styles, // controller versions, and optional equipment, // SmartCAMcnc DOES NOT and CANNOT guarantee // that the NC code generated is correct for any // specific machine. Some modification to the code // generator to match your setup and output // requirements is likely necessary. // // Modifications to code generators do not TYPICALLY // require a significant amount of time. SmartCAM // customers with active SMA contracts are entitled // to support for their code generators from the // SmartCAMcnc Support Group. To contact them for // support, please send an email to: // Support@SmartCAMcnc.com. If you would like // information on purchasing SMA for your SmartCAM // products, please contact: Sales@SmartCAMcnc.com // // DISCLAIMER: It is the responsibility of the end // user to confirm and verify that the NC code // created by any code generator is accurate and // will not cause a machine malfunction which // could result in stock, tooling, machine, and/or // personal injury. // // SmartCAMcnc assumes no responsibility or // liability for any damage caused or alleged to // have been caused by the use of any of the code // generators it provides. // ---------------------------------------- @COMMENTS 07/07/90 Machine: Ikegai Lathe with Fanuc Control @START % #ONBLK G50 X#XSET Z#ZSET S2000 #IF(#TOOL>6)<#EVAL(#U3=#TOOL-4)> #MOV T#TOOL#IF(#TOOL>6)<#FMT(#U3,L2.0)>#ELSE<#TOOL> #IF(#SPEED>=25,AND#SPEED<=630)<#EVAL(#C0=1)> #IF(#SPEED>=800,AND#SPEED<=2000)<#EVAL(#C0=2)> #SPMODE S#SPEED #C0 #SPNDL #NEXTPT @TOOLCHG #IF(#TOOL>6)<#EVAL(#U3=#TOOL-4)> G00 X#XPOS Z#ZPOS M09 T#LTOOL00 #OFFBLK #ONBLK G50 X#XSET Z#ZSET S2000 #MOV T#TOOL#IF(#TOOL>6)<#FMT(#U3,L2.0)>#ELSE<#TOOL> #IF(#SPEED>=25,AND#SPEED<=630)<#EVAL(#C0=1)> #IF(#SPEED>=800,AND#SPEED<=2000)<#EVAL(#C0=2)> #EVAL(#U1=INT(#TLTIME)) #EVAL(#U2=#TLTIME-#U1) #EVAL(#U0=#U2*60) #OFFBLK(TOOL #FMT(#LTOOL,T2.0) EST.TIME:#EXLN #I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