// ---------------------------------------- // // 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. // ---------------------------------------- ////////////////////////////////// // // Code Generator for Shoda router // Fanuc control @DECLARE //#OUTCND // outputs conditional status //#OUTSEC // outputs @section names //#OUTREF // outputs processing errors //#OUTRPT // outputs an error report file @ @START % O0001 (#DATE) (FILE = #FILE) #ONBLK G54 G40 G90 G17 G64 (#TLCMT) S#SPEED #MOV Z#ZPOS #MOV X#XPOS Y#YPOS T#TOOL #SPNDL @ @TOOLCHG #MOV G54 G28 Z0 #SPOFF (#TLCMT) S#SPEED X#XPOS Y#YPOS Z#ZPOS T#TOOL #SPNDL @ @END G54 #SPOFF G28 X0.0 M30 #OFFBLK% @ @STPROF < #ABSI>< #MOV>< X#XPOS>< Y#YPOS> @ @ENDPROF #MOV Z#ZPOS < #DCOMP> @ @RAP < #ABSI>< #MOV>< X#XPOS>< Y#YPOS> @ @LINE < #DCOMP#EXC D#DOFF>< #MOV>< X#XPOS>< Y#YPOS>< Z#ZPOS>< F#FEED> @ @ARC < #MOV>< X#XPOS>< Y#YPOS>< I#XCTR>< J#YCTR>< F#FEED> @ @XZARC < #PLANE>< #MOV>< X#XPOS>< Z#ZPOS>< I#XCTR>< K#ZCTR>< F#FEED> @ @YZARC < #PLANE>< #MOV>< Y#YPOS>< Z#ZPOS>< J#YCTR>< K#ZCTR>< F#FEED> @ @HELIX < #PLANE> #MOV< X#XPOS>< Y#YPOS> Z#ZPOS< I#XCTR>< J#YCTR>< F#FEED> @ @XZHELIX < #PLANE> #MOV< X#XPOS> Y#YPOS< Z#ZPOS>< I#XCTR>< K#ZCTR>< F#FEED> @ @YZHELIX < #PLANE> #MOV X#XPOS< Y#YPOS>< Z#ZPOS>< J#YCTR>< K#ZCTR>< F#FEED> @ @ZCLRMV < #ABSI><< #MOV> Z#ZPOS> @ @ZCHKMV < #FXD><< #MOV> Z#ZPOS> @ @ZDPTHMV << #MOV> Z#ZPOS< F#FEED>> @ @DWELL G04 X#DWELL @