Advertisement
Guest User

Untitled

a guest
May 30th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 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 = inch
  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 = 5
  141. MAX_ACCELERATION = 25
  142. # Set Stepgen max 20% higher than the axis
  143. STEPGEN_MAX_VEL = 24
  144. STEPGEN_MAX_ACC = 240
  145.  
  146. BACKLASH = 0.000
  147.  
  148. # scale is 2000 steps/rev * 5 revs/inch
  149. SCALE = 10000
  150.  
  151. MIN_LIMIT = -30.0
  152. MAX_LIMIT = 30.0
  153.  
  154. FERROR = .002
  155. MIN_FERROR = .001
  156.  
  157. #HOME = 0.000
  158. #HOME_OFFSET = 0.10
  159. #HOME_SEARCH_VEL = 0.10
  160. #HOME_LATCH_VEL = -0.01
  161. #HOME_USE_INDEX = YES
  162. #HOME_IGNORE_LIMITS = YES
  163.  
  164. # these are in nanoseconds
  165. DIRSETUP = 2000
  166. DIRHOLD = 2000
  167. STEPLEN = 1000
  168. STEPSPACE = 1000
  169.  
  170. # PID tuning params
  171. DEADBAND = 0
  172. P = 1000
  173. I = 0
  174. D = 0
  175. FF0 = 0
  176. FF1 = 1
  177. FF2 = 0.00023
  178. BIAS = 0
  179. MAX_OUTPUT = 0
  180. MAX_ERROR = 0.0005
  181.  
  182. [AXIS_1]
  183.  
  184. TYPE = LINEAR
  185. MAX_VELOCITY = 5
  186. MAX_ACCELERATION = 25
  187. # Set Stepgen max 20% higher than the axis
  188. STEPGEN_MAX_VEL = 24
  189. STEPGEN_MAX_ACC = 240
  190.  
  191. BACKLASH = 0.000
  192.  
  193. SCALE = 10000
  194.  
  195. MIN_LIMIT = -30.0
  196. MAX_LIMIT = 30.0
  197.  
  198. FERROR = .002
  199. MIN_FERROR = .001
  200.  
  201. #HOME = 0.000
  202. #HOME_OFFSET = 0.10
  203. #HOME_SEARCH_VEL = 0.10
  204. #HOME_LATCH_VEL = -0.01
  205. #HOME_USE_INDEX = YES
  206. #HOME_IGNORE_LIMITS = YES
  207.  
  208. # these are in nanoseconds
  209. DIRSETUP = 2000
  210. DIRHOLD = 2000
  211. STEPLEN = 1000
  212. STEPSPACE = 1000
  213.  
  214. # PID tuning params
  215. DEADBAND = 0
  216. P = 1000
  217. I = 0
  218. D = 0
  219. FF0 = 0
  220. FF1 = 1
  221. FF2 = 0.00023
  222. BIAS = 0
  223. MAX_OUTPUT = 0
  224. MAX_ERROR = 0.0005
  225.  
  226.  
  227.  
  228. [AXIS_2]
  229.  
  230. TYPE = LINEAR
  231. MAX_VELOCITY = 5
  232. MAX_ACCELERATION = 25
  233. # Set Stepgen max 20% higher than the axis
  234. STEPGEN_MAX_VEL = 24
  235. STEPGEN_MAX_ACC = 240
  236.  
  237. BACKLASH = 0.000
  238.  
  239. SCALE = -10000
  240.  
  241. MIN_LIMIT = -30.0
  242. MAX_LIMIT = 30.0
  243.  
  244. FERROR = .002
  245. MIN_FERROR = .001
  246.  
  247. #HOME = 0.000
  248. #HOME_OFFSET = 0.10
  249. #HOME_SEARCH_VEL = 0.10
  250. #HOME_LATCH_VEL = -0.01
  251. #HOME_USE_INDEX = YES
  252. #HOME_IGNORE_LIMITS = YES
  253.  
  254. # these are in nanoseconds
  255. DIRSETUP = 2000
  256. DIRHOLD = 2000
  257. STEPLEN = 1000
  258. STEPSPACE = 1000
  259.  
  260. # PID tuning params
  261. DEADBAND = 0
  262. P = 1000
  263. I = 0
  264. D = 0
  265. FF0 = 0
  266. FF1 = 1
  267. FF2 = 0.00023
  268. BIAS = 0
  269. MAX_OUTPUT = 0
  270. MAX_ERROR = 0.0005
  271.  
  272. [SPINDLE_9]
  273.  
  274. # PID tuning params
  275. DEADBAND = 0
  276. P = 50
  277. I = 200
  278. D = .2
  279. FF0 = 0
  280. FF1 = 0
  281. FF2 = 0
  282. BIAS = 0
  283. MAX_OUTPUT = 0
  284. MAX_ERROR = 50
  285. SCALE = 6000
  286. MINLIM = 0
  287. MAXLIM = 6000
  288.  
  289. [EMCIO]
  290.  
  291. # Name of IO controller program, e.g., io
  292. EMCIO = io
  293.  
  294. # cycle time, in seconds
  295. CYCLE_TIME = 0.100
  296.  
  297. # tool table file
  298. TOOL_TABLE = tool.tbl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement