Advertisement
Guest User

Untitled

a guest
Mar 9th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 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 = LinuxCNC-HAL-SIM-AXIS
  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.  
  23. # Name of display program, e.g., xemc
  24. DISPLAY = axis
  25. LATHE = 1
  26. # Cycle time, in seconds, that display will sleep between polls
  27. CYCLE_TIME = 0.100
  28.  
  29. # Path to help file
  30. HELP_FILE = doc/help.txt
  31.  
  32. # Initial display setting for position, RELATIVE or MACHINE
  33. POSITION_OFFSET = RELATIVE
  34.  
  35. # Initial display setting for position, COMMANDED or ACTUAL
  36. POSITION_FEEDBACK = ACTUAL
  37.  
  38. # Highest value that will be allowed for feed override, 1.0 = 100%
  39. MAX_FEED_OVERRIDE = 1.2
  40. MAX_SPINDLE_OVERRIDE = 1.0
  41. # Prefix to be used
  42. PROGRAM_PREFIX = ../../nc_files/
  43.  
  44. # Introductory graphic
  45. INTRO_GRAPHIC = linuxcnc.gif
  46. INTRO_TIME = 5
  47.  
  48. EDITOR = gedit
  49.  
  50. INCREMENTS = 1 mm, .01 in, .1mm, 1 mil, .1 mil, 1/8000 in
  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.  
  72. # File containing interpreter variables
  73. PARAMETER_FILE = sim_mm.var
  74.  
  75. # Motion control section ------------------------------------------------------
  76. [EMCMOT]
  77.  
  78. EMCMOT = motmod
  79.  
  80. # Timeout for comm to emcmot, in seconds
  81. COMM_TIMEOUT = 1.0
  82.  
  83. # Interval between tries to emcmot, in seconds
  84. COMM_WAIT = 0.010
  85.  
  86. # BASE_PERIOD is unused in this configuration but specified in core_sim.hal
  87. BASE_PERIOD = 0
  88. # Servo task period, in nano-seconds
  89. SERVO_PERIOD = 1000000
  90.  
  91. # Hardware Abstraction Layer section --------------------------------------------------
  92. [HAL]
  93.  
  94. # The run script first uses halcmd to execute any HALFILE
  95. # files, and then to execute any individual HALCMD commands.
  96. #
  97.  
  98. # list of hal config files to run through halcmd
  99. # files are executed in the order in which they appear
  100. HALFILE = core_sim.hal
  101. HALFILE = sim_spindle_encoder.hal
  102. HALFILE = axis_manualtoolchange.hal
  103. HALFILE = simulated_home.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. # Single file that is executed after the GUI has started. Only supported by
  110. # AXIS at this time (only AXIS creates a HAL component of its own)
  111. #POSTGUI_HALFILE = test_postgui.hal
  112.  
  113. HALUI = halui
  114.  
  115. # Trajectory planner section --------------------------------------------------
  116. [TRAJ]
  117.  
  118. AXES = 3
  119. COORDINATES = X Z
  120. HOME = 0 0 0
  121. LINEAR_UNITS = mm
  122. ANGULAR_UNITS = degree
  123. CYCLE_TIME = 0.010
  124. DEFAULT_VELOCITY = 30.48
  125. MAX_VELOCITY = 53.34
  126. DEFAULT_ACCELERATION = 508
  127. MAX_ACCELERATION = 508
  128. POSITION_FILE = position_mm.txt
  129. ARC_BLEND_ENABLE = 1
  130. ARC_BLEND_FALLBACK_ENABLE = 1
  131. ARC_BLEND_OPTIMIZATION_DEPTH = 50
  132. #Use this setting for no smoothing (for debugging and stress-testing)
  133. ARC_BLEND_SMOOTHING_THRESHOLD = .75
  134. #Use this setting for "normal" smoothing, i.e. if we blend over more than 40% of a segment
  135. #ARC_BLEND_SMOOTHING_THRESHOLD = 0.40
  136.  
  137. # Axes sections ---------------------------------------------------------------
  138.  
  139. # First axis
  140. [AXIS_0]
  141.  
  142. TYPE = LINEAR
  143. HOME = 0.000
  144. MAX_VELOCITY = 30.48
  145. MAX_ACCELERATION = 508
  146. BACKLASH = 0.000
  147. INPUT_SCALE = 157.48
  148. OUTPUT_SCALE = 1.000
  149. MIN_LIMIT = -2540
  150. MAX_LIMIT = 2540
  151. FERROR = 1.27
  152. MIN_FERROR = .254
  153. HOME_OFFSET = 0.0
  154. HOME_SEARCH_VEL = 127
  155. HOME_LATCH_VEL = 25.4
  156. HOME_USE_INDEX = NO
  157. HOME_IGNORE_LIMITS = NO
  158. HOME_SEQUENCE = 1
  159. HOME_IS_SHARED = 1
  160.  
  161. # Second axis
  162. [AXIS_1]
  163.  
  164. TYPE = LINEAR
  165. HOME = 0.000
  166. MAX_VELOCITY = 30.48
  167. MAX_ACCELERATION = 508
  168. BACKLASH = 0.000
  169. INPUT_SCALE = 157.48
  170. OUTPUT_SCALE = 1.000
  171. MIN_LIMIT = -2540
  172. MAX_LIMIT = 2540
  173. FERROR = 1.27
  174. MIN_FERROR = .254
  175. HOME_OFFSET = 0.0
  176. HOME_SEARCH_VEL = 127
  177. HOME_LATCH_VEL = 25.4
  178. HOME_USE_INDEX = NO
  179. HOME_IGNORE_LIMITS = NO
  180. HOME_SEQUENCE = 1
  181.  
  182. # Third axis
  183. [AXIS_2]
  184.  
  185. TYPE = LINEAR
  186. HOME = 0.0
  187. MAX_VELOCITY = 30.48
  188. MAX_ACCELERATION = 508
  189. BACKLASH = 0.000
  190. INPUT_SCALE = 157.48
  191. OUTPUT_SCALE = 1.000
  192. MIN_LIMIT = -500.8
  193. MAX_LIMIT = 1010.6
  194. FERROR = 1.27
  195. MIN_FERROR = .254
  196. HOME_OFFSET = 25.4
  197. HOME_SEARCH_VEL = 127
  198. HOME_LATCH_VEL = 25.4
  199. HOME_USE_INDEX = NO
  200. HOME_IGNORE_LIMITS = NO
  201. HOME_SEQUENCE = 0
  202. HOME_IS_SHARED = 1
  203.  
  204. # section for main IO controller parameters -----------------------------------
  205. [EMCIO]
  206.  
  207. # Name of IO controller program, e.g., io
  208. EMCIO = io
  209.  
  210. # cycle time, in seconds
  211. CYCLE_TIME = 0.100
  212.  
  213. # tool table file
  214. TOOL_TABLE = sim_mm.tbl
  215. TOOL_CHANGE_POSITION = 0 0 50.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement