+----------------------------------------------------------- | | ShopBot configuration file | |----------------------------------------------------------- | | Who When What | ====== ========== ======================================== | Tony M 22/06/2005 Written | Brian M 08/07/2005 Modified to output feed units correctly | Brian M 14/07/2005 Modified to output 6 d.p | PACO 15/08/05 Added router control for SB3 Alpha and | router/spindle RPM dislay/prompt | Tony 27/06/2006 Added NEW_SEGMENT section | in case new tool has different | feedrates to first tool | Brian M 14/07/2006 Added circular arC support | ScottJ 31/10/2007 setup file for PartWorks to keep look consistant | ScottJ 12/05/2009 Fixed issue with mutiple toolpaths not remaining at SaFE Z | ScottJ 11/12/2009 Added File info to headerChanged to simplified post format | TedH 12/26/2010 Enable DIRECT for Beta ShopBotEASY | RyanP 12/09/2011 Corrected return home after new segment. Removed JH replaced with PW variables for home position + Jay 02/06/2016 Laser support and remove Z +----------------------------------------------------------- POST_NAME = "Shopbot TC Laser NoZ v6(Inch)(*.sbp)" FILE_EXTENSION = "sbp" UNITS = "inches" DIRECT_OUTPUT = "DIRECT to ShopBot|ShopBot_run.ini" +------------------------------------------------ | line terminating characteRS +------------------------------------------------ LINE_ENDING = "[13][10]" +------------------------------------------------ | Block Numbering +------------------------------------------------ LINE_NUMBER_START = 0 LINE_NUMBER_INCREMENT = 10 LINE_NUMBER_MAXIMUM = 999999 +================================================ + + default formating for variables + +================================================ +------------------------------------------------ + Line numbering +------------------------------------------------ var LINE_NUMBER = [N|A|N|1.0] +------------------------------------------------ + Spindle Speed +------------------------------------------------ var SPINDLE_SPEED = [S|A||1.0] +------------------------------------------------ + Feed Rate +------------------------------------------------ var CUT_RATE = [FC|A||1.1|0.0166] var PLUNGE_RATE = [FP|A||1.1|0.0166] +------------------------------------------------ + Tool position in x,y and z +------------------------------------------------ var X_POSITION = [X|A||1.6] var Y_POSITION = [Y|A||1.6] var Z_POSITION = [Z|A||1.6] +------------------------------------------------ + Home tool positions +------------------------------------------------ var X_HOME_POSITION = [XH|A||1.6] var Y_HOME_POSITION = [YH|A||1.6] var Z_HOME_POSITION = [ZH|A||1.6] +------------------------------------------------ + ArC centre positions - incremental from arC start +------------------------------------------------ VAR ARC_CENTRE_I_INC_POSITION = [I|A||1.6] VAR ARC_CENTRE_J_INC_POSITION = [J|A||1.6] +================================================ + + Block definitions for toolpath output + +================================================ +--------------------------------------------- + Start of file +--------------------------------------------- begin HEADER "'SHOPBOT ROUTER FILE IN INCHES" "'GENERATED BY J Tech Photonics Inc." "'Minimum extent in X = [XMIN] Minimum extent in Y = [YMIN] Minimum extent in Z = [ZMIN]" "'Maximum extent in X = [XMAX] Maximum extent in Y = [YMAX] Maximum extent in Z = [ZMAX]" "'Length of material in X = [XLENGTH]" "'Length of material in Y = [YLENGTH]" "'Depth of material in Z = [ZLENGTH]" "'Home Position Information = [XY_ORIGIN], [Z_ORIGIN] " "'Home X = [XH] Home Y = [YH] Home Z = [ZH]" "'Rapid clearance gap or Safe Z = [SAFEZ]" "'UNITS:Inches" "'" "IF %(25)=1 THEN GOTO UNIT_ERROR 'check to see software is set to standard" "SA 'Set program to absolute coordinate mode" "CN, 90" "'New Path" "'Toolpath Name = [TOOLPATH_NAME]" "'Tool Name = [TOOLNAME]" "" "SO,5,0" "MS,[FC],[FP]" "JZ,[ZH]" "J2,[XH],[YH]" +-------------------------------------------- + Program moves +-------------------------------------------- begin RAPID_MOVE "J2,[X],[Y]" +--------------------------------------------- begin FIRST_FEED_MOVE "SO,5,1" "M2,[X],[Y]" +--------------------------------------------- begin FEED_MOVE "M2,[X],[Y]" +--------------------------------------------------- + Commands output for clockwise arC move +--------------------------------------------------- begin CW_ARC_MOVE "SO,5,1" "CG, ,[X],[Y],[I],[J],T,1" +--------------------------------------------------- + Commands output for counterclockwise arC move +--------------------------------------------------- begin CCW_ARC_MOVE "SO,5,1" "CG, ,[X],[Y],[I],[J],T,-1" + --------------------------------------------------- + Commands output for Retract Moves + --------------------------------------------------- begin RETRACT_MOVE "SO,5,0" +--------------------------------------------------- + Commands output at toolchange +--------------------------------------------------- begin TOOLCHANGE "C7" "'New Path" "'Toolpath Name = [TOOLPATH_NAME]" "'Tool Name = [TOOLNAME]" "&TOOL=[T]" "C9" +"TR, [S]" "C6" "MS,[FC],[FP]" +--------------------------------------------------- + Commands output for a new segment - toolpath + with same toolnumber but maybe different feedrates +--------------------------------------------------- +begin NEW_SEGMENT +"'New Path" +"TR, [S]" +"MS,[FC],[FP]" +"JZ,[ZH]" +--------------------------------------------- + end of file +--------------------------------------------- begin FOOTER "'Turning Laser OFF" "SO,5,0" "JZ,[ZH]" "J2,[XH],[YH]" "M02 'program end" "END" "'" "'" "UNIT_ERROR:" "CN, 91 'Run file explaining unit error" "END" "M30 'Program End"