@COMMENTS ---------------------------------------- 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 SSA 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 SSA 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. ---------------------------------------- Machine: Mazak Power Center V-12 Control: Fanuc 6M-B Notes: Use Cycle=Cycle 2 for high speed (or deep hole) G73 peck drilling. Otherwise this CG will use G83. Coolant type is controlled in the Planner. This CG support M07, M08 and M09. @ @DECLARE //#OUTCND // outputs conditional status //#OUTSEC // outputs @section names //#OUTREF // outputs processing errors //#OUTRPT // outputs an error report file #TBL#range // gear range, M38 or M39 @ @COOLNT 0,M09 1,M08 2,M07 @ @range 600,M38 3100,M39 @ @START #EVAL(#range=#SPEED) % #RESET(#ABSI,#MOV) #ONBLK G90 G80 G00 G20 G40 G92 X0 Y0 Z0 #OFFBLK #ONBLK #range < #MOV>< #ABSI>< X#XPOS>< Y#YPOS>< S#SPEED>< #SPNDL> G46< Z#ZPOS>< H#LOFF> #RESET(#COOLNT) @ @TOOLCHG #EVAL(#range=#SPEED) #EVAL(#U3=#TOOL) #EVAL(#U6=0) #MOV G91 G28 Z0< #FXD> M09 T#TOOL M06 T#LTOOL #OFFBLK #ONBLK #range G00 G90< X#XPOS>< Y#YPOS>< S#SPEED> #SPNDL G46< Z#ZPOS>< H#LOFF> #RESET(#COOLNT) @ @END #MOV G91 G28 Z0< #FXD> M09 T#NTOOL G91 G28 X0 Y0 M06 T#FMT(#U3,L2.0) M30 #OFFBLK% @ @STPROF < #ABSI>< #FXD>< #MOV>< X#XPOS>< Y#YPOS> @ @RAP < #range>< #ABSI>< #FXD>< #MOV>< X#XPOS>< Y#YPOS> @ @LINE < #MOV>#IF(#U6<>1)< #PLANE>#IF(#DOFF<>0)<< #DCOMP#EXC< D#DOFF>>>#EXLN < X#XPOS>< Y#YPOS>< Z#ZPOS>< F#FEED> #IF(#DCOMP=0)<#EVAL(#U2=0)>#ELSE<#EVAL(#U2=1)> #EVAL(#U6=1) @ @ARC < #MOV>< X#XPOS>< Y#YPOS> I#XCTR J#YCTR< F#FEED> #IF(#DCOMP=0)<#EVAL(#U2=0)>#ELSE<#EVAL(#U2=1) @ @XZARC < #PLANE>< #MOV>< X#XPOS>< Z#ZPOS> I#XCTR K#ZCTR< F#FEED> @ @YZARC < #PLANE>< #MOV>< X#XPOS>< Z#ZPOS> I#XCTR K#ZCTR< F#FEED> @ @ZCLRMV < #ABSI>< #FXD>< #MOV>< Z#ZPOS> < #DCOMP> @ @ZCHKMV < #FXD>< #MOV>< Z#ZPOS> @ @ZDPTHMV < #MOV>< Z#ZPOS>< F#FEED>< #COOLNT> @ @OP_SPEC #CALL(OP_DRL) @OP_REAM #CALL(OP_DRL) @OP_DRL < #ABSI>< #RTNLVL>< #CYCLE>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK>< F#FEED>< #COOLNT> #RESET(#FXD) @@CYCLE 0,G81 @ @OP_SPDRL #CALL(OP_CSINK) @OP_CDRL #CALL(OP_CSINK) @OP_CBORE #CALL(OP_CSINK) @OP_SPFACE #CALL(OP_CSINK) @OP_CSINK < #ABSI>< #RTNLVL>< #FXD>< X#XPOS>< Y#YPOS>#EXLN < Z#ZDPTH R#ZCHK P#DWELL>< F#FEED>< #COOLNT> #RESET(#FXD) @@CYCLE 0,G82 @ @OP_TAP #IF(#U6<>1)<<#EVAL(#C1=0)>#RESET(#C1)> < #C1>< #ABSI>< #RTNLVL>< #CYCLE>< X#XPOS>< Y#YPOS>#EXLN < Z#ZDPTH R#ZCHK>< F#FEED>< #COOLNT> #EVAL(#U6=1) #RESET(#FXD) @@CYCLE 0,G84 @ @OP_BORE < #ABSI>< #RTNLVL>< #CYCLE>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK>< F#FEED>< #COOLNT> #RESET(#FXD) @@CYCLE 0,G86 @ @OP_PDRL < #ABSI>< #RTNLVL>< #CYCLE>< X#XPOS>< Y#YPOS>#EXLN < Z#ZDPTH R#ZCHK Q#PECK>< F#FEED>< #COOLNT> #EVAL(#U6=1) #RESET(#FXD) @@CYCLE 0,G73 1,G83 2,G73 3,G73 @ @DWELL G4 P#DWELL @ @HOME G00 G91 G28 Z0 M09 X0 Y0 M05 M00 #RESET(#COOLNT) @