Advertisement
Guest User

Untitled

a guest
Oct 8th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.52 KB | None | 0 0
  1. # EMC controller parameters for a simulated puma 560 robot
  2.  
  3. # General note: Comments can either be preceded with a # or ; - either is
  4. # acceptable, although # is in keeping with most linux config files.
  5.  
  6. # Settings with a + at the front of the comment are likely needed to get
  7. # changed by the user.
  8. # Settings with a - at the front are highly unneeded to be changed
  9.  
  10. ###############################################################################
  11. # Hostmot section
  12. ###############################################################################
  13.  
  14. [HOSTMOT2]
  15. DRIVER=hm2_pci
  16. BOARD=5i22
  17. CONFIG="firmware=hm2/5i22/SVST8_8S.BIT num_encoders=8 num_pwmgens=8 num_stepgens=0"
  18.  
  19.  
  20.  
  21.  
  22. ###############################################################################
  23. # General section
  24. ###############################################################################
  25.  
  26. # General section -------------------------------------------------------------
  27. [EMC]
  28.  
  29. #- Version of this INI file
  30. VERSION = $Revision$
  31.  
  32. #+ Name of machine, for use with display, etc.
  33. MACHINE = Robby_1_Puma560
  34.  
  35. #+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
  36. DEBUG = 0
  37. # DEBUG = 0x00000007
  38. #DEBUG = 0x7FFFFFFF
  39.  
  40. ###############################################################################
  41. # Sections for display options
  42. ###############################################################################
  43. [DISPLAY]
  44.  
  45. #+ Name of display program, e.g., xemc
  46. DISPLAY = axis
  47. # DISPLAY = usrmot
  48. # DISPLAY = mini
  49. # DISPLAY = tkemc
  50.  
  51. #- Cycle time, in seconds, that display will sleep between polls
  52. CYCLE_TIME = 0.200
  53.  
  54. #- Path to help file
  55. HELP_FILE = tklinucnc.txt
  56.  
  57. #- Initial display setting for position, RELATIVE or MACHINE
  58. POSITION_OFFSET = MACHINE
  59.  
  60. #- Initial display setting for position, COMMANDED or ACTUAL
  61. POSITION_FEEDBACK = ACTUAL
  62.  
  63. #+ Highest value that will be allowed for feed override, 1.0 = 100%
  64. MAX_FEED_OVERRIDE = 2.0
  65.  
  66. #+ Prefix to be used
  67. PROGRAM_PREFIX = /home/andreas/linuxcnc/nc_files
  68.  
  69. #- Introductory graphic
  70. INTRO_GRAPHIC = linuxcnc.gif
  71. INTRO_TIME = 5
  72. PYVCP = puma.xml
  73.  
  74. # Editor to be used with Axis
  75. EDITOR = gedit
  76.  
  77. ###############################################################################
  78. # Task controller section
  79. ###############################################################################
  80. [TASK]
  81.  
  82. # Name of task controller program, e.g., milltask
  83. TASK = milltask
  84.  
  85. #- Cycle time, in seconds, that task controller will sleep between polls
  86. CYCLE_TIME = 0.010
  87.  
  88. ###############################################################################
  89. # Part program interpreter section
  90. ###############################################################################
  91. [RS274NGC]
  92.  
  93. #- File containing interpreter variables
  94. PARAMETER_FILE = puma.var
  95.  
  96. ###############################################################################
  97. # Motion control section
  98. ###############################################################################
  99. [EMCMOT]
  100.  
  101. EMCMOT = motmod
  102.  
  103. #- Timeout for comm to emcmot, in seconds
  104. COMM_TIMEOUT = 1.0
  105.  
  106. #- Interval between tries to emcmot, in seconds
  107. COMM_WAIT = 0.010
  108.  
  109. #- Servo task period, in nanoseconds
  110. SERVO_PERIOD = 200000
  111. #- Trajectory Planner task period, in nanoseconds - will be rounded to an
  112. # integer multiple of SERVO_PERIOD
  113. TRAJ_PERIOD = 10000000
  114.  
  115. ###############################################################################
  116. # Hardware Abstraction Layer section
  117. ###############################################################################
  118. [HAL]
  119.  
  120. # The run script first uses halcmd to execute any HALFILE
  121. # files, and then to execute any individual HALCMD commands.
  122. #
  123.  
  124. # list of hal config files to run through halcmd
  125. # files are executed in the order in which they appear
  126. HALFILE = puma560_sim_6.hal
  127. POSTGUI_HALFILE = puma560_postgui.hal
  128.  
  129. #- list of halcmd commands to execute
  130. # commands are executed in the order in which they appear
  131. #HALCMD = save neta
  132.  
  133. #load halui to enable
  134. HALUI = halui
  135.  
  136. ###############################################################################
  137. # Trajectory planner section
  138. ###############################################################################
  139. [TRAJ]
  140. #+ machine specific settings
  141. AXES = 6
  142. COORDINATES = X Y Z A B C
  143. HOME = 0 0 0 0 90 0
  144. LINEAR_UNITS = mm
  145. ANGULAR_UNITS = deg
  146. CYCLE_TIME = 0.010
  147. DEFAULT_VELOCITY = 1.0
  148. MAX_VELOCITY = 10.0
  149. DEFAULT_ACCELERATION = 10.0
  150. MAX_ACCELERATION = 20.0
  151. NO_FORCE_HOMING = 1
  152. #fixme
  153.  
  154. ###############################################################################
  155. # Axes sections
  156. ###############################################################################
  157. #fixme ... all axis max acceleration
  158. #fixme ... all axis max velocity
  159. #fixme ... all axis software endstops +/-
  160. #fixme ... all axis hardware endstops +/-
  161.  
  162. #+ First axis
  163. [AXIS_0]
  164. TYPE = ANGULAR
  165. HOME = 0.000
  166. MAX_VELOCITY = 30.0
  167. MAX_ACCELERATION = 200.0
  168. BACKLASH = 0.000
  169. INPUT_SCALE = 4000
  170. OUTPUT_SCALE = 1.000
  171. MIN_LIMIT = -180.0
  172. MAX_LIMIT = 180.0
  173. FERROR = 2.000
  174. MIN_FERROR = 0.200
  175. HOME_OFFSET = 0.0
  176. HOME_SEARCH_VEL = 0.0
  177. HOME_LATCH_VEL = 0.0
  178. HOME_USE_INDEX = NO
  179. HOME_IGNORE_LIMITS = NO
  180. HOME_SEQUENCE = 0
  181.  
  182. #+ Second axis
  183. [AXIS_1]
  184. TYPE = ANGULAR
  185. HOME = 0.000
  186. MAX_VELOCITY = 30.0
  187. MAX_ACCELERATION = 200.0
  188. BACKLASH = 0.000
  189. INPUT_SCALE = 4000
  190. OUTPUT_SCALE = 1.000
  191. MIN_LIMIT = -360.0
  192. MAX_LIMIT = 360.0
  193. FERROR = 2.000
  194. MIN_FERROR = 0.200
  195. HOME_OFFSET = 0.0
  196. HOME_SEARCH_VEL = 0.0
  197. HOME_LATCH_VEL = 0.0
  198. HOME_USE_INDEX = NO
  199. HOME_IGNORE_LIMITS = NO
  200. HOME_SEQUENCE = 0
  201.  
  202. #+ Third axis
  203. [AXIS_2]
  204. TYPE = ANGULAR
  205. HOME = 0.000
  206. MAX_VELOCITY = 30.0
  207. MAX_ACCELERATION = 200.0
  208. BACKLASH = 0.000
  209. INPUT_SCALE = 4000
  210. OUTPUT_SCALE = 1.000
  211. MIN_LIMIT = -215.0
  212. MAX_LIMIT = 35.0
  213. FERROR = 2.000
  214. MIN_FERROR = 0.200
  215. HOME_OFFSET = 0.0
  216. HOME_SEARCH_VEL = 0.0
  217. HOME_LATCH_VEL = 0.0
  218. HOME_USE_INDEX = NO
  219. HOME_IGNORE_LIMITS = NO
  220. HOME_SEQUENCE = 0
  221.  
  222. #+ Fourth axis
  223. [AXIS_3]
  224. TYPE = ANGULAR
  225. HOME = 0.000
  226. MAX_VELOCITY = 30.0
  227. MAX_ACCELERATION = 200.0
  228. BACKLASH = 0.000
  229. INPUT_SCALE = 4000
  230. OUTPUT_SCALE = 1.000
  231. MIN_LIMIT = -360.0
  232. MAX_LIMIT = 360.0
  233. FERROR = 2.000
  234. MIN_FERROR = 0.200
  235. HOME_OFFSET = 0.0
  236. HOME_SEARCH_VEL = 0.0
  237. HOME_LATCH_VEL = 0.0
  238. HOME_USE_INDEX = NO
  239. HOME_IGNORE_LIMITS = NO
  240. HOME_SEQUENCE = 0
  241.  
  242. #+ Fifth axis
  243. [AXIS_4]
  244. TYPE = ANGULAR
  245. HOME = 90.000
  246. MAX_VELOCITY = 30.0
  247. MAX_ACCELERATION = 200.0
  248. BACKLASH = 0.000
  249. INPUT_SCALE = 4000
  250. OUTPUT_SCALE = 1.000
  251. MIN_LIMIT = -360.0
  252. MAX_LIMIT = 360.0
  253. FERROR = 2.000
  254. MIN_FERROR = 0.200
  255. HOME_OFFSET = 0.0
  256. HOME_SEARCH_VEL = 0.0
  257. HOME_LATCH_VEL = 0.0
  258. HOME_USE_INDEX = NO
  259. HOME_IGNORE_LIMITS = NO
  260. HOME_SEQUENCE = 0
  261.  
  262. #+ Sixth axis
  263. [AXIS_5]
  264. TYPE = ANGULAR
  265. HOME = 0.000
  266. MAX_VELOCITY = 30.0
  267. MAX_ACCELERATION = 200.0
  268. BACKLASH = 0.000
  269. INPUT_SCALE = 4000
  270. OUTPUT_SCALE = 1.000
  271. MIN_LIMIT = -360.0
  272. MAX_LIMIT = 360.0
  273. FERROR = 2.000
  274. MIN_FERROR = 0.200
  275. HOME_OFFSET = 0.0
  276. HOME_SEARCH_VEL = 0.0
  277. HOME_LATCH_VEL = 0.0
  278. HOME_USE_INDEX = NO
  279. HOME_IGNORE_LIMITS = NO
  280. HOME_SEQUENCE = 0
  281.  
  282.  
  283. ###############################################################################
  284. # section for main IO controller parameters
  285. ###############################################################################
  286. [EMCIO]
  287.  
  288. #- Name of IO controller program, e.g., io
  289. EMCIO = io
  290.  
  291. #- cycle time, in seconds
  292. CYCLE_TIME = 0.100
  293.  
  294. #- tool table file
  295. TOOL_TABLE = puma.tbl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement