When doing a milling sub I must put in a point before and after the sub. The handle point is usually the default for me (starting point). Some properties can be changed when defined into a sub but you can't rotate the sub. It will show good in SmartCam but will code the original way. In most of my changes I would have to explode back to original make my change and define the sub again. You should try to define the sub correct in the status bar when defining. Here is my sub section. Hope this helps.
O#SNAME ( SUB PROGRAM FILENAME #SNAME, USED BY #FILE ) #ONBLK #ABSI @ENDDEF G90 M99 #OFFBLK% @GOSUB #IF(#SREPT>0)<#EVAL(#SREPT=#SREPT+1)> M98 P#SNAME L#SREPT < #ABSI> #RESET(#SPEED,#FEED) Dave Wolfgang CNC Programmer/Supervisor www.hrindustries.net ----- Original Message ----- From: "John Coulston" <[EMAIL PROTECTED]> To: "SmartCAM" <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 4:37 PM Subject: [mfg-smartcam] Sub-program question > Whenever I use a sub program I always have to edit the code. I usually have > to edit the first move of the sub. Does anyone have any suggestions for > using sub programs? What do your @sub sections contain. When defining subs > where is the best palace for the handle x y z? Can you change the > properties of the sub with a property change command or should you define > the sub with the values from the status bar when defining? > > > // sub program start for sub definition (called in place of @STPRG) > @SUBDEF > O#SNAME (#FILE) > (SUBDEF,#SNAME, NOTE USED BY #FILE) > #ONBLK #ABSI > @ > // > // sub program end (called in place of @END) > @ENDDEF > G00 Z#CLEAR > M99 > #OFFBLK > @ > > // sub program call > @GOSUB > M98 P#SNAME/// L#SREPT > G00 #ABSI > @ > > Thank you, > > John Coulston > > CBR Industries, Inc. > CNC Milling & Turning > www.cbrcnc.com > > ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
