// ---------------------------------------- // // 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. // ---------------------------------------- @COMMENTS SmartCAM Code Generator: Komo VR 508 Revision History: @ @DECLARE //#OUTSEC @ @START % #S5 (#FILE) (#DATE) #EVAL(#U4=1) #IF(#TOOL>=1000,#AND#TOOL<=1200)<#EVAL(#S1=G54)#EVAL(#U5=1)#EVAL(#U6=11)> #IF(#TOOL>=200,#AND#TOOL<=200)<#EVAL(#S1=G55)#EVAL(#U5=2)#EVAL(#U6=12)> #IF(#TOOL>=5000,#AND#TOOL<=5600)<#EVAL(#S1=G58)#EVAL(#U5=5)> #IF(#TOOL>=600,#AND#TOOL<=600)<#EVAL(#S1=G59)#EVAL(#U5=6)> #IF(#TOOL>=70,#AND#TOOL<=78)<#EVAL(#S1=G56)#EVAL(#U5=7)#EVAL(#U6=17)> #IF(#TOOL>=8,#AND#TOOL<=8)<#EVAL(#S1=G57)#EVAL(#U5=8)#EVAL(#U6=18)> #ONBLK G20 G40 G90 G17 G00 G49 G64 G80 M05 Z0.0 T#TOOL #SPNDL S#SPEED ( #TDESC ) ( #TLCMT ) < #MOV> #S1< X#XPOS>< Y#YPOS> G43 H#U5 Z#ZPOS @ @TOOLCHG < #FXD> #IF(#TOOL>=1000,#AND#TOOL<=1200)<#EVAL(#S1=G54)#EVAL(#U5=1)#EVAL(#U6=11)> #IF(#TOOL>=200,#AND#TOOL<=200)<#EVAL(#S1=G55)#EVAL(#U5=2)#EVAL(#U6=12)> #IF(#TOOL>=5000,#AND#TOOL<=5600)<#EVAL(#S1=G58)#EVAL(#U5=5)> #IF(#TOOL>=600,#AND#TOOL<=600)<#EVAL(#S1=G59)#EVAL(#U5=6)> #IF(#TOOL>=70,#AND#TOOL<=78)<#EVAL(#S1=G56)#EVAL(#U5=7)#EVAL(#U6=17)> #IF(#TOOL>=8,#AND#TOOL<=8)<#EVAL(#S1=G57)#EVAL(#U5=8)#EVAL(#U6=18)> #MOV G90 G49 Z0.0 M05 #IF(#U9>0)<#CALL(STOP)> T#TOOL #SPNDL S#SPEED ( #TDESC ) ( #TLCMT ) < #MOV> #S1< X#XPOS>< Y#YPOS> G43 H#U5 Z#ZPOS @ @END < FXD> G00 G90 G49 Z0 M05 G91 G28 X0. G90 M30 #OFFBLK% @ @STPROF < #ABSI>< #FXD>< #MOV>< X#XPOS>< Y#YPOS>< Z#ZPOS> @ @ENDPROF #EVAL(#V2=#XPOS+.05) #EVAL(#V3=#YPOS+.05) #MOV Z#ZPOS < #DCOMP#EXC X#V2 Y#V3> #RESET(#XPOS,#YPOS) @ @RAP < #ABSI>< #FXD>< #MOV>< X#XPOS>< Y#YPOS>< Z#ZPOS> @ @LINE < #DCOMP#EXC D#U6>< #MOV>< X#XPOS>< Y#YPOS>< Z#ZPOS>< F#FEED> @ @ARC #EVAL(#V9=#FEED) #IF(#ARAD>=3.0,#AND#ARAD<10.0)<#EVAL(#FEED=300)> #IF(#ARAD>=2.01,#AND#ARAD<3.0)<#EVAL(#FEED=190)> #IF(#ARAD>=1.01,#AND#ARAD<2.01)<#EVAL(#FEED=115)> #IF(#ARAD>=.51,#AND#ARAD<1.01)<#EVAL(#FEED=80)> #IF(#ARAD>=.26,#AND#ARAD<.51)<#EVAL(#FEED=65)> #IF(#ARAD<.26)<#EVAL(#FEED=35)> < #MOV>< X#XPOS>< Y#YPOS>< I#XCTR>< J#YCTR>< F#FEED> #EVAL(#FEED=#V9) @ @HELIX < #MOV>< X#XPOS>< Y#YPOS>< I#XCTR>< J#YCTR>< Z#ZPOS>< F#FEED> @ @ZCLRMV < #ABSI>< #FXD>< #MOV>< Z#ZPOS> @ @ZDPTHMV < #MOV>< Z#ZPOS>< F#FEED > @ @FXD1 < #ABSI>< #FXD>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK>< F#FEED> @ @FXD2 < #ABSI>< #RTNLVL>< #FXD>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK>< F#FEED> @ @FXD3 < #ABSI>< #RTNLVL>< #FXD>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK>< F#FEED> @ @FXD4 < #ABSI>< #RTNLVL>< #FXD>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK>< F#FEED> @ @FXD5 < #ABSI>< #FXD>< X#XPOS>< Y#YPOS>< Z#ZDPTH R#ZCHK Q#PECK>< F#FEED> @ @DWELL G04 P#DWELL @ @STOP G91 G28 X0 G90 M00 #EVAL(#U9=0) @