Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1.  
  2. [HOSTMOT2]
  3. DRIVER=hm2_pci
  4. BOARD=5i23
  5. CONFIG="firmware=hm2/5i23/5i23_svtp6_2.bit num_encoders=3 num_pwmgens=2 num_stepgens=0"
  6.  
  7.  
  8.  
  9.  
  10. [EMC]
  11.  
  12. # Name of machine, for use with display, etc.
  13. MACHINE = HM2-Servo
  14.  
  15. # Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
  16. #DEBUG = 0x00000003
  17. #DEBUG = 0x00000007
  18. DEBUG = 0
  19.  
  20.  
  21.  
  22.  
  23. [DISPLAY]
  24.  
  25. # Name of display program, e.g., tkemc
  26. DISPLAY = axis
  27.  
  28. # Cycle time, in seconds, that display will sleep between polls
  29. CYCLE_TIME = 0.0500
  30.  
  31. # Path to help file
  32. HELP_FILE = tklinucnc.txt
  33.  
  34. # Initial display setting for position, RELATIVE or MACHINE
  35. POSITION_OFFSET = RELATIVE
  36.  
  37. # Initial display setting for position, COMMANDED or ACTUAL
  38. POSITION_FEEDBACK = ACTUAL
  39.  
  40. # Highest value that will be allowed for feed override, 1.0 = 100%
  41. MAX_FEED_OVERRIDE = 1.5
  42.  
  43. # Prefix to be used
  44. PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files
  45.  
  46. # Introductory graphic
  47. INTRO_GRAPHIC = linuxcnc.gif
  48. INTRO_TIME = 5
  49.  
  50.  
  51. [FILTER]
  52. PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
  53. PROGRAM_EXTENSION = .py Python Script
  54. png = image-to-gcode
  55. gif = image-to-gcode
  56. jpg = image-to-gcode
  57. py = python
  58.  
  59.  
  60. [TASK]
  61.  
  62. # Name of task controller program, e.g., milltask
  63. TASK = milltask
  64.  
  65. # Cycle time, in seconds, that task controller will sleep between polls
  66. CYCLE_TIME = 0.010
  67.  
  68.  
  69.  
  70.  
  71. [RS274NGC]
  72.  
  73. # File containing interpreter variables
  74. PARAMETER_FILE = hm2-servo.var
  75.  
  76.  
  77.  
  78.  
  79. [EMCMOT]
  80.  
  81. EMCMOT = motmod
  82.  
  83. # Timeout for comm to emcmot, in seconds
  84. COMM_TIMEOUT = 1.0
  85.  
  86. # Interval between tries to emcmot, in seconds
  87. COMM_WAIT = 0.010
  88.  
  89. # Servo task period, in nanoseconds
  90. SERVO_PERIOD = 1000000
  91.  
  92.  
  93.  
  94.  
  95. [HAL]
  96.  
  97. # The run script first uses halcmd to execute any HALFILE
  98. # files, and then to execute any individual HALCMD commands.
  99.  
  100. # list of hal config files to run through halcmd
  101. # files are executed in the order in which they appear
  102.  
  103. HALFILE = hm2-servo.hal
  104.  
  105. # list of halcmd commands to execute
  106. # commands are executed in the order in which they appear
  107. #HALCMD = save neta
  108.  
  109.  
  110.  
  111.  
  112. [TRAJ]
  113.  
  114. AXES = 3
  115. # COORDINATES = X Y Z R P W
  116. COORDINATES = X Y Z
  117. HOME = 0 0 0 0
  118. LINEAR_UNITS = inch
  119. ANGULAR_UNITS = degree
  120. CYCLE_TIME = 0.010
  121. DEFAULT_VELOCITY = 3.0
  122. MAX_VELOCITY = 4.0
  123. DEFAULT_ACCELERATION = 6.0
  124. MAX_ACCELERATION = 7.0
  125. NO_FORCE_HOMING = 1
  126.  
  127.  
  128.  
  129. [AXIS_0]
  130.  
  131. TYPE = LINEAR
  132. MAX_VELOCITY = 1.0
  133. MAX_ACCELERATION = 4.0
  134. BACKLASH = 0.0013
  135. FERROR = 1000.010
  136. MIN_FERROR = 0.002
  137.  
  138. INPUT_SCALE = 27575
  139.  
  140.  
  141. OUTPUT_SCALE = -1.000
  142. OUTPUT_OFFSET = 0.0
  143. MAX_OUTPUT = 1.0
  144.  
  145. MIN_LIMIT = -3.0
  146. MAX_LIMIT = 10.0
  147. HOME = 0.000
  148. HOME_OFFSET = -2.9
  149. HOME_SEARCH_VEL = -0.50
  150. HOME_LATCH_VEL = 0.10
  151. # the X axis servo's encoder does not have an index channel, so we have to home without index
  152. HOME_USE_INDEX = NO
  153. HOME_IGNORE_LIMITS = YES
  154.  
  155. # PID tuning params
  156. DEADBAND = 0.000015
  157. P = 100.0
  158. I = 0.000
  159. D = 0.000
  160. FF0 = 0.000
  161. FF1 = 1.000
  162. FF2 = 0.0
  163. BIAS = 0.000
  164.  
  165.  
  166.  
  167.  
  168. [AXIS_1]
  169.  
  170. TYPE = LINEAR
  171. MAX_VELOCITY = 1.0
  172. MAX_ACCELERATION = 4.0
  173. BACKLASH = 0.000
  174. FERROR = 0.010
  175. MIN_FERROR = 0.002
  176.  
  177. INPUT_SCALE = -81920
  178.  
  179. OUTPUT_SCALE = 1.000
  180. OUTPUT_OFFSET = 0.0
  181. MAX_OUTPUT = 1.0
  182.  
  183. MIN_LIMIT = -3.0
  184. MAX_LIMIT = 10.0
  185. HOME = 0.000
  186. HOME_OFFSET = -2.9
  187. HOME_SEARCH_VEL = -0.50
  188. HOME_LATCH_VEL = 0.10
  189. # the Y axis servo's encoder has an index channel, so we use it to improve the home accuracy
  190. HOME_USE_INDEX = YES
  191. HOME_IGNORE_LIMITS = YES
  192.  
  193. # PID tuning params
  194. DEADBAND = 0.000015
  195. P = 100.0
  196. I = 0.000
  197. D = 0.000
  198. FF0 = 0.000
  199. FF1 = 1.000
  200. FF2 = 0.0
  201. BIAS = 0.000
  202.  
  203.  
  204.  
  205.  
  206. [AXIS_2]
  207.  
  208. TYPE = LINEAR
  209. MAX_VELOCITY = 1.0
  210. MAX_ACCELERATION = 4.0
  211. BACKLASH = 0.000
  212. FERROR = 0.010
  213. MIN_FERROR = 0.002
  214.  
  215. INPUT_SCALE = 81920
  216.  
  217. OUTPUT_SCALE = -1.000
  218. OUTPUT_OFFSET = 0.0
  219. MAX_OUTPUT = 1.0
  220.  
  221. MIN_LIMIT = -3.0
  222. MAX_LIMIT = 3.0
  223. HOME = 0.0
  224. HOME_OFFSET = -2.9
  225. HOME_SEARCH_VEL = -0.50
  226. HOME_LATCH_VEL = 0.10
  227. # the Z axis servo's encoder does not have an index channel, so we have to home without index
  228. HOME_USE_INDEX = NO
  229. HOME_IGNORE_LIMITS = YES
  230.  
  231. # PID tuning params
  232. DEADBAND = 0.000015
  233. P = 100.0
  234. I = 0.000
  235. D = 0.000
  236. FF0 = 0.000
  237. FF1 = 1.000
  238. FF2 = 0.0
  239. BIAS = 0.000
  240.  
  241.  
  242.  
  243.  
  244. [EMCIO]
  245.  
  246. # Name of IO controller program, e.g., io
  247. EMCIO = io
  248.  
  249. # cycle time, in seconds
  250. CYCLE_TIME = 0.100
  251.  
  252. # tool table file
  253. TOOL_TABLE = tool.tbl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement