Advertisement
Guest User

Untitled

a guest
Aug 17th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.66 KB | None | 0 0
  1. # EMC controller parameters for a simulated machine.
  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. # General section -------------------------------------------------------------
  7. [EMC]
  8.  
  9. # Version of this INI file
  10. VERSION = $Revision$
  11.  
  12. # Name of machine, for use with display, etc.
  13. MACHINE = EMC-HAL-SIM-LATHE
  14.  
  15. # Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
  16. # DEBUG = 0x7FFFFFFF
  17. DEBUG = 0
  18.  
  19. # Sections for display options ------------------------------------------------
  20. [DISPLAY]
  21.  
  22. # Name of display program, e.g., xemc
  23. DISPLAY = axis
  24. PYVCP = lathe.xml
  25. LATHE = 1
  26. EDITOR = gedit
  27.  
  28. # Cycle time, in seconds, that display will sleep between polls
  29. CYCLE_TIME = 0.100
  30.  
  31. # Path to help file
  32. HELP_FILE = doc/help.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.2
  42. MAX_SPINDLE_OVERRIDE = 1.0
  43. # Prefix to be used
  44. PROGRAM_PREFIX = ../../nc_files/
  45.  
  46. # Introductory graphic
  47. INTRO_GRAPHIC = emc2.gif
  48. INTRO_TIME = 5
  49.  
  50. USER_COMMAND_FILE = ~/.axisrc
  51. [FILTER]
  52. PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
  53. PROGRAM_EXTENSION = .py Python Script
  54.  
  55. png = image-to-gcode
  56. gif = image-to-gcode
  57. jpg = image-to-gcode
  58. py = python
  59.  
  60. # Task controller section -----------------------------------------------------
  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.001
  68.  
  69. # Part program interpreter section --------------------------------------------
  70. [RS274NGC]
  71. # remap T<pocket> to a named oword subroutine.
  72. # The tool number will be passed as parameter #1
  73. # The pocket number will be passed as parameter #2
  74. T_COMMAND=o<tdemo>call
  75.  
  76. # remap M6 to a named oword subroutine.
  77. # the tool number currently loaded (in spindle) is passed as parameter #1
  78. M6_COMMAND=o<m6demo>call
  79. # to use the M69 iocontrol based toolchange:
  80. #M6_COMMAND=o<m6remap>call
  81.  
  82. # handler gsub called on IoAborts - to cleanup HAL pins etc
  83. ON_ABORT_COMMAND=o<on_abort>call
  84.  
  85. LOG_LEVEL =2
  86. # File containing interpreter variables
  87. PARAMETER_FILE = sim-lathe.var
  88.  
  89. # Motion control section ------------------------------------------------------
  90. [EMCMOT]
  91.  
  92. EMCMOT = motmod
  93.  
  94. # Timeout for comm to emcmot, in seconds
  95. COMM_TIMEOUT = 1.0
  96.  
  97. # Interval between tries to emcmot, in seconds
  98. COMM_WAIT = 0.010
  99.  
  100. # Base task period, in nano-seconds - this is the fastest thread in the machine
  101. BASE_PERIOD = 50000
  102. # Servo task period, in nano-seconds - will be rounded to an integer multiple
  103. # of BASE_PERIOD
  104. SERVO_PERIOD = 1000000
  105.  
  106. # Hardware Abstraction Layer section --------------------------------------------------
  107. [HAL]
  108.  
  109. # The run script first uses halcmd to execute any HALFILE
  110. # files, and then to execute any individual HALCMD commands.
  111. #
  112.  
  113. # list of hal config files to run through halcmd
  114. # files are executed in the order in which they appear
  115. HALFILE = core_sim.hal
  116. #HALFILE = axis_manualtoolchange.hal
  117. HALFILE = simulated_home.hal
  118. HALFILE = lathe.hal
  119.  
  120. # list of halcmd commands to execute
  121. # commands are executed in the order in which they appear
  122. #HALCMD = save neta
  123.  
  124. # Single file that is executed after the GUI has started. Only supported by
  125. # AXIS at this time (only AXIS creates a HAL component of its own)
  126. POSTGUI_HALFILE = lathe_postgui.hal
  127. HALUI = halui
  128. # Trajectory planner section --------------------------------------------------
  129. [TRAJ]
  130. AXES = 3
  131. COORDINATES = X Z
  132. LINEAR_UNITS = inch
  133. ANGULAR_UNITS = degree
  134. CYCLE_TIME = 0.010
  135. DEFAULT_VELOCITY = 1.0
  136. MAX_VELOCITY = 3.333334
  137. DEFAULT_ACCELERATION = 20.0
  138. MAX_ACCELERATION = 20.0
  139.  
  140. # Axes sections ---------------------------------------------------------------
  141.  
  142. # First axis
  143. [AXIS_0]
  144.  
  145. TYPE = LINEAR
  146. HOME = 0.000
  147. MAX_VELOCITY = 300.333334
  148. MAX_ACCELERATION = 20.0
  149. BACKLASH = 0.000
  150. INPUT_SCALE = 4000
  151. OUTPUT_SCALE = 1.000
  152. MIN_LIMIT = -1000.0
  153. MAX_LIMIT = 1000.0
  154. FERROR = 0.050
  155. MIN_FERROR = 0.010
  156. HOME_OFFSET = 1.0
  157. HOME_SEARCH_VEL = 5.0
  158. HOME_LATCH_VEL = 1.0
  159. HOME_USE_INDEX = NO
  160. HOME_IGNORE_LIMITS = NO
  161. HOME_SEQUENCE = 0
  162. HOME_IS_SHARED = 1
  163.  
  164. [AXIS_2]
  165.  
  166. TYPE = LINEAR
  167. HOME = 0.0
  168. MAX_VELOCITY = 300.333334
  169. MAX_ACCELERATION = 20.0
  170. BACKLASH = 0.000
  171. INPUT_SCALE = 4000
  172. OUTPUT_SCALE = 1.000
  173. MIN_LIMIT = -2000.0
  174. MAX_LIMIT = 4000.0
  175. FERROR = 0.050
  176. MIN_FERROR = 0.010
  177. HOME_OFFSET = 1.0
  178. HOME_SEARCH_VEL = 5.0
  179. HOME_LATCH_VEL = 1.0
  180. HOME_USE_INDEX = NO
  181. HOME_IGNORE_LIMITS = NO
  182. HOME_SEQUENCE = 1
  183. HOME_IS_SHARED = 1
  184.  
  185. # section for main IO controller parameters -----------------------------------
  186. [EMCIO]
  187.  
  188. # Name of IO controller program, e.g., io
  189. EMCIO = iov2
  190.  
  191. # cycle time, in seconds
  192. CYCLE_TIME = 0.100
  193.  
  194. # tool table file
  195. TOOL_TABLE = lathe.tbl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement