Advertisement
Guest User

Untitled

a guest
Jun 11th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1.  
  2. [HOSTMOT2]
  3. DRIVER=hm2_eth board_ip="10.10.10.10"
  4. BOARD=7i76e
  5. CONFIG="num_encoders=1 num_stepgens=5 sserial_port_0=20xxxxxx"
  6.  
  7.  
  8.  
  9.  
  10. [EMC]
  11.  
  12. # Name of machine, for use with display, etc.
  13. MACHINE = Mah-G0704
  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 = tkemc
  27. DISPLAY = axis
  28.  
  29. # Cycle time, in seconds, that display will sleep between polls
  30. CYCLE_TIME = 0.100
  31.  
  32. # Path to help file
  33. HELP_FILE = tkemc.txt
  34.  
  35. # Initial display setting for position, RELATIVE or MACHINE
  36. POSITION_OFFSET = RELATIVE
  37.  
  38. # Initial display setting for position, COMMANDED or ACTUAL
  39. POSITION_FEEDBACK = ACTUAL
  40.  
  41. # Highest value that will be allowed for feed override, 1.0 = 100%
  42. MAX_FEED_OVERRIDE = 30
  43.  
  44. # Prefix to be used
  45. PROGRAM_PREFIX = ../../nc_files/
  46.  
  47. # Introductory graphic
  48. INTRO_GRAPHIC = emc2.gif
  49. INTRO_TIME = 5
  50.  
  51.  
  52. [FILTER]
  53. PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
  54. PROGRAM_EXTENSION = .py Python Script
  55. png = image-to-gcode
  56. gif = image-to-gcode
  57. jpg = image-to-gcode
  58. py = python
  59.  
  60.  
  61. [TASK]
  62.  
  63. # Name of task controller program, e.g., milltask
  64. TASK = milltask
  65.  
  66. # Cycle time, in seconds, that task controller will sleep between polls
  67. CYCLE_TIME = 0.010
  68.  
  69.  
  70.  
  71.  
  72. [RS274NGC]
  73.  
  74. # File containing interpreter variables
  75. PARAMETER_FILE = hm2-stepper.var
  76.  
  77.  
  78.  
  79.  
  80. [EMCMOT]
  81.  
  82. EMCMOT = motmod
  83.  
  84. # Timeout for comm to emcmot, in seconds
  85. COMM_TIMEOUT = 1.0
  86.  
  87. # Interval between tries to emcmot, in seconds
  88. COMM_WAIT = 0.010
  89.  
  90. # Servo task period, in nanoseconds
  91. #SERVO_PERIOD = 1000000
  92.  
  93. SERVO_PERIOD = 600000
  94.  
  95.  
  96.  
  97. [HAL]
  98.  
  99. # The run script first uses halcmd to execute any HALFILE
  100. # files, and then to execute any individual HALCMD commands.
  101.  
  102. # list of hal config files to run through halcmd
  103. # files are executed in the order in which they appear
  104.  
  105. HALFILE = hm2-pidstepper.hal
  106.  
  107. # list of halcmd commands to execute
  108. # commands are executed in the order in which they appear
  109. #HALCMD = save neta
  110.  
  111.  
  112.  
  113.  
  114. [TRAJ]
  115.  
  116. AXES = 3
  117. COORDINATES = X Y Z
  118. #HOME = 0 0 0
  119. LINEAR_UNITS = mm
  120. ANGULAR_UNITS = degree
  121. CYCLE_TIME = 0.001
  122.  
  123.  
  124.  
  125.  
  126. [AXIS_0]
  127.  
  128. #
  129. # Step timing is 1 us steplen + 1 us stepspace
  130. # That gives 2 us step period = 500 KHz max step freq
  131. #
  132. #
  133. # Scale is 2000 steps/rev * 5 revs/inch = 10000 steps/inch
  134. #
  135. # This gives a maxvel of 25/1 = 50 ips
  136. #
  137.  
  138.  
  139. TYPE = LINEAR
  140. MAX_VELOCITY = 25
  141. MAX_ACCELERATION = 200
  142. # Set Stepgen max 20% higher than the axis
  143. STEPGEN_MAX_VEL = 25
  144. STEPGEN_MAX_ACC = 200
  145.  
  146. BACKLASH = 0.000
  147.  
  148.  
  149. #5 mm per revolution
  150. #2000 steps/rev
  151.  
  152. SCALE = 80
  153.  
  154. MIN_LIMIT = -200.0
  155. MAX_LIMIT = 200.0
  156.  
  157. FERROR = .002
  158. MIN_FERROR = .001
  159.  
  160. #HOME = 0.000
  161. #HOME_OFFSET = 0.10
  162. #HOME_SEARCH_VEL = 0.10
  163. #HOME_LATCH_VEL = -0.01
  164. #HOME_USE_INDEX = YES
  165. #HOME_IGNORE_LIMITS = YES
  166.  
  167. # these are in nanoseconds
  168. STEPLEN = 5000
  169. STEPSPACE = 4000
  170. DIRHOLD = 4000
  171. DIRSETUP = 1000
  172.  
  173.  
  174. # PID tuning params
  175. DEADBAND = 0
  176. P = 1000
  177. I = 0
  178. D = 0
  179. FF0 = 0
  180. FF1 = 1
  181. FF2 = 0.00023
  182. BIAS = 0
  183. MAX_OUTPUT = 0
  184. MAX_ERROR = 0.0005
  185.  
  186. [AXIS_1]
  187.  
  188. TYPE = LINEAR
  189. MAX_VELOCITY = 25
  190. MAX_ACCELERATION = 200
  191. # Set Stepgen max 20% higher than the axis
  192. STEPGEN_MAX_VEL = 25
  193. STEPGEN_MAX_ACC = 200
  194.  
  195. BACKLASH = 0.000
  196.  
  197. SCALE = 400
  198.  
  199. MIN_LIMIT = -100.0
  200. MAX_LIMIT = 100.0
  201.  
  202. FERROR = .002
  203. MIN_FERROR = .001
  204.  
  205. #HOME = 0.000
  206. #HOME_OFFSET = 0.10
  207. #HOME_SEARCH_VEL = 0.10
  208. #HOME_LATCH_VEL = -0.01
  209. #HOME_USE_INDEX = YES
  210. #HOME_IGNORE_LIMITS = YES
  211.  
  212. # these are in nanoseconds
  213. STEPLEN = 5000
  214. STEPSPACE = 4000
  215. DIRHOLD = 4000
  216. DIRSETUP = 1000
  217.  
  218. # PID tuning params
  219. DEADBAND = 0
  220. P = 1000
  221. I = 0
  222. D = 0
  223. FF0 = 0
  224. FF1 = 1
  225. FF2 = 0.00023
  226. BIAS = 0
  227. MAX_OUTPUT = 0
  228. MAX_ERROR = 0.0005
  229.  
  230.  
  231.  
  232. [AXIS_2]
  233.  
  234. TYPE = LINEAR
  235. MAX_VELOCITY = 2.5
  236. MAX_ACCELERATION = 5
  237. # Set Stepgen max 20% higher than the axis
  238. STEPGEN_MAX_VEL = 5
  239. STEPGEN_MAX_ACC = 6
  240.  
  241. BACKLASH = 0.000
  242.  
  243. SCALE = -400
  244.  
  245. MIN_LIMIT = -100.0
  246. MAX_LIMIT = 100.0
  247.  
  248. FERROR = .002
  249. MIN_FERROR = .001
  250.  
  251. #HOME = 0.000
  252. #HOME_OFFSET = 0.10
  253. #HOME_SEARCH_VEL = 0.10
  254. #HOME_LATCH_VEL = -0.01
  255. #HOME_USE_INDEX = YES
  256. #HOME_IGNORE_LIMITS = YES
  257.  
  258. # these are in nanoseconds
  259. STEPLEN = 5000
  260. STEPSPACE = 4000
  261. DIRHOLD = 4000
  262. DIRSETUP = 1000
  263.  
  264. # PID tuning params
  265. DEADBAND = 0
  266. P = 1000
  267. I = 0
  268. D = 0
  269. FF0 = 0
  270. FF1 = 1
  271. FF2 = 0.00023
  272. BIAS = 0
  273. MAX_OUTPUT = 0
  274. MAX_ERROR = 0.0005
  275.  
  276. [SPINDLE_9]
  277.  
  278. # PID tuning params
  279. DEADBAND = 0
  280. P = 50
  281. I = 200
  282. D = .2
  283. FF0 = 0
  284. FF1 = 0
  285. FF2 = 0
  286. BIAS = 0
  287. MAX_OUTPUT = 0
  288. MAX_ERROR = 50
  289. SCALE = 6000
  290. MINLIM = 0
  291. MAXLIM = 6000
  292.  
  293. [EMCIO]
  294.  
  295. # Name of IO controller program, e.g., io
  296. EMCIO = io
  297.  
  298. # cycle time, in seconds
  299. CYCLE_TIME = 0.100
  300.  
  301. # tool table file
  302. TOOL_TABLE = tool.tbl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement