Advertisement
tlse72

Untitled

May 28th, 2023
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1.  
  2.  
  3. POST_NAME = "UCCNC Plasma (*.nc)"
  4.  
  5.  
  6. FILE_EXTENSION = "tap"
  7.  
  8. UNITS = "MM"
  9.  
  10. +------------------------------------------------
  11. + Line terminating characters
  12. +------------------------------------------------
  13.  
  14. LINE_ENDING = "[13][10]"
  15.  
  16. +------------------------------------------------
  17. + Block numbering
  18. +------------------------------------------------
  19.  
  20. LINE_NUMBER_START = 0
  21. LINE_NUMBER_INCREMENT = 10
  22. LINE_NUMBER_MAXIMUM = 999999
  23.  
  24. +================================================
  25. +
  26. + Formating for variables
  27. +
  28. +================================================
  29.  
  30. VAR LINE_NUMBER = [N|A|N|1.0]
  31. VAR SPINDLE_SPEED = [S|A|S|1.0]
  32. VAR CUT_RATE = [FC|A|F|1.1]
  33. VAR PLUNGE_RATE = [FP|A|F|1.1]
  34. VAR X_POSITION = [X|A|X|1.4]
  35. VAR Y_POSITION = [Y|A|Y|1.4]
  36. VAR Z_POSITION = [Z|A|Z|1.4]
  37. VAR ARC_CENTRE_I_INC_POSITION = [I|A|I|1.4]
  38. VAR ARC_CENTRE_J_INC_POSITION = [J|A|J|1.4]
  39. VAR X_HOME_POSITION = [XH|A|X|1.4]
  40. VAR Y_HOME_POSITION = [YH|A|Y|1.4]
  41. VAR Z_HOME_POSITION = [ZH|A|Z|1.4]
  42.  
  43. +================================================
  44. +
  45. + Block definitions for toolpath output
  46. +
  47. +================================================
  48.  
  49. +---------------------------------------------------
  50. + Commands output at the start of the file
  51. +---------------------------------------------------
  52.  
  53. begin HEADER
  54. "*** Start of Header ***"
  55. "M65"
  56. "G90"
  57. "[91][TP_FILENAME][93]"
  58. "M62"
  59. "*** End of Header ***"
  60.  
  61. +---------------------------------------------------
  62. + Commands output for rapid moves
  63. +---------------------------------------------------
  64.  
  65. begin RAPID_MOVE
  66. "*** Rapid Move Start ***"
  67. "G0 [X] [Y]"
  68. "*** Rapid Move End ***"
  69.  
  70.  
  71. +---------------------------------------------------
  72. + Commands output for the first feed rate move
  73. +---------------------------------------------------
  74.  
  75. begin FIRST_FEED_MOVE
  76.  
  77. "G1[X][Y][F]"
  78.  
  79.  
  80. +---------------------------------------------------
  81. + Commands output for the first clockwise arc move
  82. +---------------------------------------------------
  83.  
  84. begin FIRST_CW_ARC_MOVE
  85.  
  86. "G2[X][Y][I][J][F]"
  87.  
  88. +---------------------------------------------------
  89. + Commands output for clockwise arc move
  90. +---------------------------------------------------
  91.  
  92. begin CW_ARC_MOVE
  93.  
  94. "G2[X][Y][I][J]"
  95.  
  96. +---------------------------------------------------
  97. + Commands output for the first counterclockwise arc move
  98. +---------------------------------------------------
  99.  
  100. begin FIRST_CCW_ARC_MOVE
  101.  
  102. "G3[X][Y][I][J][F]"
  103.  
  104. +---------------------------------------------------
  105. + Commands output for counterclockwise arc move
  106. +---------------------------------------------------
  107.  
  108. begin CCW_ARC_MOVE
  109.  
  110. "G3[X][Y][I][J]"
  111.  
  112.  
  113. +---------------------------------------------------
  114. + Commands output for Plunges Moves
  115. +---------------------------------------------------
  116. begin PLUNGE_MOVE
  117. "*** Plunge Start ***"
  118. + M31 Floating head macro
  119. "M31"
  120. +Set offser from floating head.
  121. +"G92 Z -1.5"
  122. "G0 Z 4"
  123. "M3"
  124. "G4 P 0.1"
  125. + Final cut height
  126. "G0 Z 2.0"
  127. "*** Plunge End ***"
  128.  
  129. +---------------------------------------------------
  130. + Commands output for feed rate moves
  131. +---------------------------------------------------
  132. begin FEED_MOVE
  133. "*** Feed rate move start ***"
  134. "G1[X][Y][F]"
  135. "*** Feed rate move end ***"
  136.  
  137.  
  138. +---------------------------------------------------
  139. + Commands output for Retract Moves
  140. +---------------------------------------------------
  141. begin RETRACT_MOVE
  142. "*** Retract start ***"
  143. "M5"
  144. "G0 Z10"
  145. "*** Retract end ***"
  146.  
  147.  
  148. +---------------------------------------------------
  149. + Commands output at the end of the file
  150. +---------------------------------------------------
  151. begin FOOTER
  152. "G0 Z 30"
  153. "G0 [XH][YH]"
  154. "M30"
  155. %
Tags: Vectric
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement