// ---------------------------------------- // // 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 7/16/88 Machine: Maho NH700 Horizontal Mill with Phillips CNC432 Control @START %PM N#FILE #ONBLK G18 T#TOOL S#SPEED M6 G54 G0 X#XPOS Z#YPOS Y#ZPOS #EVAL(#V7=0) #RESET(#XPOS,#YPOS,#ZPOS) @TOOLCHG T#TOOL S#SPEED M6 #RESET(#SPNDL) #RESET(#V1) @END M6 M30 #OFFBLK% @STPROF #EVAL(#V7=1) < #ABSI>< #MOV>< X#XPOS>< Z#YPOS>< Y#ZPOS>< S#SPEED>< #SPNDL> @ENDPROF #MOV Y#ZPOS < #DCOMP> @RAP < #ABSI>< #MOV>< X#XPOS>< Z#YPOS>< Y#ZPOS>< S#SPEED>< #SPNDL> @LINE #IF(#V7=1)< #IF(#DCOMP<>0)< G43>< X#XPOS>< Z#YPOS>< Y#ZPOS>< F#FEED>> #EVAL(#V7=#V7+1) #IF(#V7=2)<#EXIT> #IF(#V7>2)< < #DCOMP> < #MOV>< X#XPOS>< Z#YPOS>< Y#ZPOS>< F#FEED>> @ARC < #DCOMP> < #PLANE>< #MOV>< X#XPOS>< Z#YPOS> I#XCTR K#YCTR< F#FEED> @XZARC < #DCOMP> < #PLANE>< #MOV>< X#XPOS>< Y#ZPOS> I#XCTR J#ZCTR< F#FEED> @YZARC < #DCOMP> < #PLANE>< #MOV>< Y#ZPOS>< Z#YPOS> J#ZCTR K#YCTR< F#FEED> @HELIX < #DCOMP> < #PLANE> #MOV< X#XPOS> Y#ZPOS< Z#YPOS> I#XCTR K#YCTR J#INC< F#FEED> @XZHELIX < #DCOMP> < #PLANE> #MOV< X#XPOS>< Y#ZPOS> Z#YPOS I#XCTR J#ZCTR K#INC< F#FEED> @YZHELIX < #DCOMP> < #PLANE> #MOV X#XPOS< Y#ZPOS>< Z#YPOS> J#ZCTR K#YCTR I#INC< F#FEED> @ZCLRMV < #ABSI><< #MOV> Y#ZPOS> @ZCHKMV << #MOV> Y#ZPOS> @ZDPTHMV << #MOV> Y#ZPOS< F#FEED>> @FXD1 < #ABSI>< #FXD Y#ZCHK Z#ZDPTH>< F#FEED>< S#SPEED>< #SPNDL> #EVAL(#V1=#ZCHK-2) G79< X#XPOS>< Z#YPOS>< Y#V1> @FXD2 < #ABSI>< #FXD X#DWELL Y#ZCHK Z#ZDPTH>< F#FEED>< S#SPEED>< #SPNDL> #EVAL(#V1=#ZCHK-2) G79< X#XPOS>< Z#YPOS>< Y#V1> @FXD3 < #ABSI>< #FXD Y#ZCHK Z#ZDPTH>< F#FEED>< S#SPEED>< #SPNDL> #EVAL(#V1=#ZCHK-2) G79< X#XPOS>< Z#YPOS>< Y#V1> @FXD4 < #ABSI>< #FXD X#DWELL Y#ZCHK Z#ZDPTH>< F#FEED>< S#SPEED>< #SPNDL> #EVAL(#V1=#ZCHK-2) G79< X#XPOS>< Z#YPOS>< Y#V1> @FXD5 #EVAL(#V0=#TLDIA/3) #EVAL(#V9=#TLDIA/2) < #ABSI>< #FXD Y#ZCHK Z#ZDPTH>< I#V0>< K#V9>< F#FEED>< S#SPEED>< #SPNDL> #EVAL(#V1=#ZCHK-2) G79< X#XPOS>< Z#YPOS>< Y#V1> @DWELL G04 X#DWELL#EVAL(#TIME=#DWELL/60) @STOP M0 @FOURTH B#FMT(#V0,D3.4) @