v12345vtm

postprocesor plotter werkend

Aug 20th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. +================================================
  2. +
  3. + Grbl - Vectric machine output configuration file
  4. +
  5. +================================================
  6. +
  7. + History https://jtechphotonics.com/Downloads/PostP/J_Tech_M106-M107_NoZ_MM_v4.pp
  8. +
  9. + Who When What
  10. + ======== ========== ===========================
  11. + JTechP 03/28/2016 Added laser commands to
  12. + every line. Changed laser
  13. + OFF command to both M03 S0 and
  14. + M05.
  15. + PaulW 01/20/2016 turn Spindle off during rapids
  16. + EdwardP 11/02/2015 Written from Grbl_mm.pp but
  17. + set G20
  18. + EdwardP 11/02/2015 Commented out arcs as these
  19. + slow GRBL performance appear
  20. + interpolated anyway
  21. + JayJ 3/10/2017 Changed for 3D printer fan
  22. + control of laser
  23. +================================================
  24.  
  25. POST_NAME = "shapeoko lasercut (MM) (*.gcode)"
  26. FILE_EXTENSION = "gcode"
  27.  
  28. UNITS = "MM"
  29.  
  30. +------------------------------------------------
  31. + Line terminating characters
  32. +------------------------------------------------
  33.  
  34. LINE_ENDING = "[13][10]"
  35.  
  36. +------------------------------------------------
  37. + Block numbering
  38. +------------------------------------------------
  39.  
  40. LINE_NUMBER_START = 0
  41. LINE_NUMBER_INCREMENT = 10
  42. LINE_NUMBER_MAXIMUM = 999999
  43.  
  44. +================================================
  45. +
  46. + Formating for variables
  47. +
  48. +================================================
  49.  
  50. VAR LINE_NUMBER = [N|A|N|1.0]
  51. VAR SPINDLE_SPEED = [S|A|S|1.0]
  52. VAR FEED_RATE = [F|C|F|1.1]
  53. VAR X_POSITION = [X|C|X|1.4]
  54. VAR Y_POSITION = [Y|C|Y|1.4]
  55. VAR Z_POSITION = [Z|C|Z|1.4]
  56. VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
  57. VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
  58. VAR X_HOME_POSITION = [XH|A|X|1.4]
  59. VAR Y_HOME_POSITION = [YH|A|Y|1.4]
  60. VAR Z_HOME_POSITION = [ZH|A|Z|1.4]
  61.  
  62. +================================================
  63. +
  64. + Block definitions for toolpath output
  65. +
  66. +================================================
  67.  
  68. +---------------------------------------------------
  69. + Commands output at the start of the file
  70. +---------------------------------------------------
  71. begin HEADER
  72.  
  73. "M220 S100"
  74. + ; snelheid op 100% zetten je weet nooit hoe de printer ervoor stond
  75. "M117 Home x"
  76. "G28 X"
  77. +home x
  78.  
  79. "M117 Home y"
  80. "G28 Y"
  81. +home x
  82.  
  83. "T1M6"
  84. "G17"
  85. "G21"
  86. "; starscript lASER UIT/pen op"
  87. "M280 P0 S25"
  88. "M1 S1; 1sec pauze"
  89.  
  90. +vith edit
  91. "M75"
  92. +start de klok op lcd
  93.  
  94. "M111 S247"
  95. +logging aangezet
  96. "M117 Vectric aspire"
  97.  
  98. "G90"
  99. + ;absolute positioning
  100.  
  101. "M82"
  102. + ;set extruder to absolute mode
  103.  
  104. +einde vith edit
  105.  
  106. +---------------------------------------------------
  107. + Commands output for rapid moves
  108. +---------------------------------------------------
  109.  
  110. begin RAPID_MOVE
  111.  
  112. +"G0 [X] [Y] [Z]"
  113. "M400 ; elke G0 beweging afwechten ipv de door buffer te vliegen"
  114. "G0 [X] [Y]; vithlaser rapidmove pen OP"
  115.  
  116. "M280 P0 S25"
  117. "M1 S0.5; 0.5sec pauze"
  118.  
  119.  
  120. +---------------------------------------------------
  121. + Commands output for the first feed rate move
  122. +---------------------------------------------------
  123.  
  124. begin FIRST_FEED_MOVE
  125.  
  126. +"G1 [X] [Y] [Z] [F] ;vithlaser firstfeedmove"
  127. "G1 [X] [Y] [F] ;vithlaser firstfeedmove pen neer"
  128.  
  129. "M280 P0 S147"
  130. "M1 S0.5; 0.5sec pauze"
  131.  
  132. +---------------------------------------------------
  133. + Commands output for feed rate moves
  134. +---------------------------------------------------
  135.  
  136. begin FEED_MOVE
  137.  
  138. "G1 [X] [Y] [Z] ;vithlaser feedmove"
  139.  
  140.  
  141. +---------------------------------------------------
  142. + Commands output for the first clockwise arc move
  143. +---------------------------------------------------
  144.  
  145. begin FIRST_CW_ARC_MOVE
  146.  
  147. "G2 [X] [Y] [I] [J] [F]"
  148.  
  149.  
  150. +---------------------------------------------------
  151. + Commands output for clockwise arc move
  152. +---------------------------------------------------
  153.  
  154. begin CW_ARC_MOVE
  155.  
  156. "G2 [X] [Y] [I] [J]"
  157.  
  158.  
  159. +---------------------------------------------------
  160. + Commands output for the first counterclockwise arc move
  161. +---------------------------------------------------
  162.  
  163. begin FIRST_CCW_ARC_MOVE
  164.  
  165. "G3 [X] [Y] [I] [J] [F]"
  166.  
  167.  
  168. +---------------------------------------------------
  169. + Commands output for counterclockwise arc move
  170. +---------------------------------------------------
  171.  
  172. begin CCW_ARC_MOVE
  173.  
  174. "G3 [X] [Y] [I] [J]"
  175.  
  176.  
  177. +---------------------------------------------------
  178. + Commands output at the end of the file
  179. +---------------------------------------------------
  180.  
  181. begin FOOTER
  182.  
  183. ";end script laser uit/op"
  184. "M280 P0 S25"
  185. "M1 S0.5; 0.5sec pauze"
  186. "G0 [XH] [YH]"
  187.  
  188.  
  189. "M300 S1 P500"
  190. "M400 ; volgende beweking volledig afwachten"
  191. "G4 P500 ; wait for 1/2 second"
  192. "M300 S1 P500"
  193. "G4 P5000 ; wait for 1/2 second"
  194. "M117 ist frezen gelukt ?"
  195. "M77"
  196. +stop de klok op lcd
Advertisement
Add Comment
Please, Sign In to add comment