Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 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 = 1.0
  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.  
  24. #TKPKG = Ngcgui 1.0
  25. #TKPKG = Ngcguittt 1.0
  26. # Ngcgui must be before Ngcguittt
  27. #NGCGUI_FONT = Helvetica -12 normal
  28. #NGCGUI_PREAMBLE = /home/josh/linuxcnc-dev/configs/sim/nc_files/in_std.ngc
  29. # here type names of your programs
  30. #[RS274NGC]
  31. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/helix.ngc
  32. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/helix_rtheta.ngc
  33. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/iquad.ngc
  34. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/arc1.ngc
  35. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/arc2.ngc
  36. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/hole_circle.ngc
  37. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/qpocket.ngc
  38. #NGCGUI_SUBFILE = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/slot.ngc
  39. # symbol "" opens empty tab
  40. #NGCGUI_SUBFILE = ""
  41. #NGCGUI_OPTIONS = noremove
  42. #NGCGUI_OPTIONS = opt1 opt2 ...
  43. # avalible options:
  44. # nonew -- prevent from creating new tab
  45. # noremove -- prevent from removing tabs
  46. # noauto -- no autofilling
  47. # noiframe -- images displaying in new window
  48. #GCMC_INCLUDE_PATH = /home/myname/gcmc_includes
  49. # turning on engraving generator
  50. #TTT = truetype-tracer
  51. #TTT_PREAMBLE = mm_std.ngc
  52. #PROGRAM_PREFIX = /home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib
  53. #==================================================
  54. #[RS274NGC]
  55. #PARAMETER_FILE = linuxcnc.var
  56. #======================NGCGUI======================
  57. # path to ngcgui files
  58. #SUBROUTINE_PATH = /home/josh/linuxcnc-dev/sim/nc_files/ngcgui_lib:/home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/utilitysubs
  59. #USER_M_PATH = home/josh/linuxcnc-dev/configs/sim/nc_files/ngcgui_lib/mfiles
  60. #==================================================
  61.  
  62.  
  63.  
  64.  
  65.  
  66. # Name of display program, e.g., axis
  67. DISPLAY = axis
  68.  
  69. # Cycle time, in seconds, that display will sleep between polls
  70. CYCLE_TIME = 0.100
  71.  
  72. # Path to help file
  73. HELP_FILE = doc/help.txt
  74.  
  75. # Initial display setting for position, RELATIVE or MACHINE
  76. POSITION_OFFSET = RELATIVE
  77.  
  78. # Initial display setting for position, COMMANDED or ACTUAL
  79. POSITION_FEEDBACK = ACTUAL
  80.  
  81. # Highest value that will be allowed for feed override, 1.0 = 100%
  82. MAX_FEED_OVERRIDE = 1.2
  83. MAX_SPINDLE_OVERRIDE = 1.0
  84.  
  85. MAX_LINEAR_VELOCITY = 5
  86. DEFAULT_LINEAR_VELOCITY = .25
  87. DEFAULT_SPINDLE_SPEED = 200
  88. # Prefix to be used
  89. PROGRAM_PREFIX = ../../nc_files/
  90.  
  91. # Introductory graphic
  92. INTRO_GRAPHIC = linuxcnc.gif
  93. INTRO_TIME = 5
  94.  
  95. EDITOR = gedit
  96. TOOL_EDITOR = tooledit
  97.  
  98. INCREMENTS = 1 in, 0.1 in, 10 mil, 1 mil, 1mm, .1mm, 1/8000 in
  99.  
  100. [FILTER]
  101. PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
  102. PROGRAM_EXTENSION = .py Python Script
  103.  
  104. png = image-to-gcode
  105. gif = image-to-gcode
  106. jpg = image-to-gcode
  107. py = python
  108.  
  109. # Task controller section -----------------------------------------------------
  110. [TASK]
  111.  
  112. # Name of task controller program, e.g., milltask
  113. TASK = milltask
  114.  
  115. # Cycle time, in seconds, that task controller will sleep between polls
  116. CYCLE_TIME = 0.001
  117.  
  118. # Part program interpreter section --------------------------------------------
  119. [RS274NGC]
  120.  
  121. # File containing interpreter variables
  122. PARAMETER_FILE = sim.var
  123.  
  124. # Motion control section ------------------------------------------------------
  125. [EMCMOT]
  126.  
  127. EMCMOT = motmod
  128.  
  129. # Timeout for comm to emcmot, in seconds
  130. COMM_TIMEOUT = 1.0
  131.  
  132. # BASE_PERIOD is unused in this configuration but specified in core_sim.hal
  133. BASE_PERIOD = 0
  134. # Servo task period, in nano-seconds
  135. SERVO_PERIOD = 1000000
  136.  
  137. # section for main IO controller parameters -----------------------------------
  138. [EMCIO]
  139.  
  140. # Name of IO controller program, e.g., io
  141. EMCIO = io
  142.  
  143. # cycle time, in seconds
  144. CYCLE_TIME = 0.100
  145.  
  146. # tool table file
  147. TOOL_TABLE = sim.tbl
  148. TOOL_CHANGE_POSITION = 0 0 0
  149. TOOL_CHANGE_QUILL_UP = 1
  150.  
  151. # Hardware Abstraction Layer section --------------------------------------------------
  152. [HAL]
  153.  
  154. # The run script first uses halcmd to execute any HALFILE
  155. # files, and then to execute any individual HALCMD commands.
  156. #
  157.  
  158. # list of hal config files to run through halcmd
  159. # files are executed in the order in which they appear
  160. HALFILE = core_sim.hal
  161. HALFILE = sim_spindle_encoder.hal
  162. HALFILE = axis_manualtoolchange.hal
  163. HALFILE = simulated_home.hal
  164. HALFILE = check_xyz_constraints.hal
  165.  
  166. # list of halcmd commands to execute
  167. # commands are executed in the order in which they appear
  168. #HALCMD = save neta
  169.  
  170. # Single file that is executed after the GUI has started. Only supported by
  171. # AXIS at this time (only AXIS creates a HAL component of its own)
  172. #POSTGUI_HALFILE = test_postgui.hal
  173.  
  174. HALUI = halui
  175.  
  176. # Trajectory planner section --------------------------------------------------
  177. [TRAJ]
  178. COORDINATES = X Y Z
  179. LINEAR_UNITS = inch
  180. ANGULAR_UNITS = degree
  181. MAX_LINEAR_VELOCITY = 4
  182. DEFAULT_LINEAR_ACCEL = 100
  183. MAX_LINEAR_ACCEL = 100
  184. POSITION_FILE = position.txt
  185.  
  186. [KINS]
  187. KINEMATICS = trivkins
  188. JOINTS = 3
  189.  
  190. # Axes sections ---------------
  191. [AXIS_X]
  192. MAX_VELOCITY = 4
  193. MAX_ACCELERATION = 100.0
  194. MIN_LIMIT = 0.0
  195. MAX_LIMIT = 38.0
  196.  
  197. [AXIS_Y]
  198. MAX_VELOCITY = 4
  199. MAX_ACCELERATION = 100.0
  200. MIN_LIMIT = 0.0
  201. MAX_LIMIT = 43.0
  202.  
  203. [AXIS_Z]
  204. MAX_VELOCITY = 4
  205. MAX_ACCELERATION = 100.0
  206. MIN_LIMIT = -8.0
  207. MAX_LIMIT = 0.12
  208.  
  209. # Joints sections -------------
  210. [JOINT_0]
  211. TYPE = LINEAR
  212. HOME = 0.000
  213. MAX_VELOCITY = 5
  214. MAX_ACCELERATION = 50.0
  215. BACKLASH = 0.000
  216. INPUT_SCALE = 4000
  217. OUTPUT_SCALE = 1.000
  218. FERROR = 0.050
  219. MIN_FERROR = 0.010
  220. MIN_LIMIT = 0.0
  221. MAX_LIMIT = 38.0
  222. HOME_OFFSET = 0.0
  223. HOME_SEARCH_VEL = 20.0
  224. HOME_LATCH_VEL = 20.0
  225. HOME_USE_INDEX = NO
  226. HOME_IGNORE_LIMITS = NO
  227. HOME_SEQUENCE = 1
  228. HOME_IS_SHARED = 1
  229.  
  230. [JOINT_1]
  231. TYPE = LINEAR
  232. HOME = 0.000
  233. MAX_VELOCITY = 5
  234. MAX_ACCELERATION = 50.0
  235. BACKLASH = 0.000
  236. INPUT_SCALE = 4000
  237. OUTPUT_SCALE = 1.000
  238. FERROR = 0.050
  239. MIN_FERROR = 0.010
  240. MIN_LIMIT = 0.0
  241. MAX_LIMIT = 43.0
  242. HOME_OFFSET = 0.0
  243. HOME_SEARCH_VEL = 20.0
  244. HOME_LATCH_VEL = 20.0
  245. HOME_USE_INDEX = NO
  246. HOME_IGNORE_LIMITS = NO
  247. HOME_SEQUENCE = 1
  248.  
  249. [JOINT_2]
  250. TYPE = LINEAR
  251. HOME = 0.0
  252. MAX_VELOCITY = 5
  253. MAX_ACCELERATION = 50.0
  254. BACKLASH = 0.000
  255. INPUT_SCALE = 4000
  256. OUTPUT_SCALE = 1.000
  257. MIN_LIMIT = -8.0
  258.  
  259. # Normally the Z max should be 0.000!
  260. # The only reason it's greater than 0 here is so that the splash screen
  261. # gcode will run.
  262. MAX_LIMIT = 0.12
  263.  
  264. FERROR = 0.050
  265. MIN_FERROR = 0.010
  266. HOME_OFFSET = 1.0
  267. HOME_SEARCH_VEL = 20.0
  268. HOME_LATCH_VEL = 20.0
  269. HOME_USE_INDEX = NO
  270. HOME_IGNORE_LIMITS = NO
  271. HOME_SEQUENCE = 0
  272. HOME_IS_SHARED = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement