In this episode, we will look how to a create a post processor file for Vectric Cut 2D to drive the laser cutter on our Probotix Fireball v90. This should also work for all GRBL based machines like the Shapeoko or the XCrave too. Below is the code for the millimeter based post processor file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
+================================================ + www.DIY3DTech.com + Vectric PP machine output configuration file + for GRBL/Laser Machines + No warranties made or implied and use is at + your own risk! +================================================ + + Laser Control Commands + Change these to match your needs +================================================ + M3 = Laser Power On + M4 = Laser Power Off + S0 = Laser intensity nil + S1000 = Laser intensity full +================================================ + + How to use +================================================ + Name file: GRBL-Laser-mm.pp + Save file to Post Processor dir (example below) + C:\Program Files (x86)\Cut2D V1\PostP +================================================ + + History + + Who When What +================================================ + DIY3DTech 09/26/2015 Written + +================================================ POST_NAME = "GRBL Laser (mm) (*.nc)" FILE_EXTENSION = "nc" + Rememeber you are working in MM UNITS = "MM" +------------------------------------------------ + Line terminating characters +------------------------------------------------ LINE_ENDING = "[13][10]" +------------------------------------------------ + Block numbering +------------------------------------------------ LINE_NUMBER_START = 0 LINE_NUMBER_INCREMENT = 10 LINE_NUMBER_MAXIMUM = 999999 +================================================ + + Formating for variables + +================================================ VAR LINE_NUMBER = [N|A|N|1.0] VAR SPINDLE_SPEED = [S|A|S|1.0] VAR FEED_RATE = [F|C|F|1.1] VAR X_POSITION = [X|C|X|1.4] VAR Y_POSITION = [Y|C|Y|1.4] VAR Z_POSITION = [Z|C|Z|1.4] VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4] VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4] VAR X_HOME_POSITION = [XH|A|X|1.4] VAR Y_HOME_POSITION = [YH|A|Y|1.4] VAR Z_HOME_POSITION = [ZH|A|Z|1.4] +================================================ + + Block definitions for toolpath output + +================================================ +--------------------------------------------------- + Commands output at the start of the file +--------------------------------------------------- begin HEADER + Set Plane "G17" + Set Units to MM "G21" + Set Home (with Z removed) + Note S0 sets laser to low power (but ON!) "G0 [XH] [YH] [S] S0" +--------------------------------------------------- + Commands output for rapid moves +--------------------------------------------------- begin RAPID_MOVE + S0 Set laser output to 0 for rapid "S0" "G0 [X] [Y]" +--------------------------------------------------- + Commands output for the first feed rate move +--------------------------------------------------- begin FIRST_FEED_MOVE + S1000 sets laser power to full to cut + G04 P10. Dwells for 10 seconds to allow cut to start "S1000" "G04 P10." "G1 [X] [Y] [F]" +--------------------------------------------------- + Commands output for feed rate moves +--------------------------------------------------- begin FEED_MOVE "G1 [X] [Y]" +--------------------------------------------------- + Commands output for the first clockwise arc move +--------------------------------------------------- begin FIRST_CW_ARC_MOVE "G2 [X] [Y] [I] [J] [F]" +--------------------------------------------------- + Commands output for clockwise arc move +--------------------------------------------------- begin CW_ARC_MOVE "G2 [X] [Y] [I] [J]" +--------------------------------------------------- + Commands output for the first counterclockwise arc move +--------------------------------------------------- begin FIRST_CCW_ARC_MOVE "G3 [X] [Y] [I] [J] [F]" +--------------------------------------------------- + Commands output for counterclockwise arc move +--------------------------------------------------- begin CCW_ARC_MOVE "G3 [X] [Y] [I] [J]" +--------------------------------------------------- + Commands output at the end of the file +--------------------------------------------------- begin FOOTER + Rapid Position to Home + M04 turns off the laser to return home "S10" "M04" "G0 [XH] [YH]" + Program End "M30" |
500MW DIY laser Engraver engraving machine Picture CNC Printer 17cm X 22cm
by Mega Save [Mega Save]
Rank/Rating: 1859556/-
Price: -