Advertisement
Guest User

Untitled

a guest
Mar 6th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. # Generated by PNCconf at Sun Dec 15 03:34:52 2013
  2. # If you make changes to this file, they will be
  3. # overwritten when you run PNCconf again
  4.  
  5. loadrt trivkins
  6. loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
  7. loadrt probe_parport
  8. loadrt hostmot2
  9. loadrt hm2_pci config=" num_encoders=1 num_pwmgens=0 num_3pwmgens=0 num_stepgens=5 sserial_port_0=00xxxxxx "
  10. setp hm2_5i25.0.watchdog.timeout_ns 10000000
  11. loadrt near
  12. loadrt mux16 names=jogincr
  13.  
  14. addf hm2_5i25.0.read servo-thread
  15. addf motion-command-handler servo-thread
  16. addf motion-controller servo-thread
  17. addf jogincr servo-thread
  18. addf near.0 servo-thread
  19. addf hm2_5i25.0.write servo-thread
  20. addf hm2_5i25.0.pet_watchdog servo-thread
  21.  
  22. # external output signals
  23.  
  24. # --- COOLANT-FLOOD ---
  25. setp hm2_5i25.0.gpio.027.is_output true
  26. net coolant-flood hm2_5i25.0.gpio.027.out
  27.  
  28. # --- SPINDLE-BRAKE ---
  29. setp hm2_5i25.0.gpio.029.is_output true
  30. net spindle-brake hm2_5i25.0.gpio.029.out
  31.  
  32. # --- SPINDLE-ENABLE ---
  33. setp hm2_5i25.0.gpio.033.is_output true
  34. net spindle-enable hm2_5i25.0.gpio.033.out
  35.  
  36.  
  37. # external input signals
  38.  
  39. # --- BOTH-HOME-X ---
  40. net both-home-x <= hm2_5i25.0.gpio.024.in
  41.  
  42. # --- BOTH-HOME-Z ---
  43. net both-home-z <= hm2_5i25.0.gpio.025.in
  44.  
  45. # --- HOME-A ---
  46. net home-a <= hm2_5i25.0.gpio.026.in
  47.  
  48. # --- ESTOP-EXT ---
  49. net estop-ext <= hm2_5i25.0.gpio.028.in
  50.  
  51. # --- CYCLE-START ---
  52. net cycle-start <= hm2_5i25.0.gpio.030.in
  53.  
  54. # --- ABORT ---
  55. net abort <= hm2_5i25.0.gpio.031.in
  56.  
  57. # --- PROBE-IN ---
  58. net probe-in <= hm2_5i25.0.gpio.032.in
  59.  
  60.  
  61. #*******************
  62. # AXIS X
  63. #*******************
  64.  
  65. # Step Gen signals/setup
  66.  
  67. setp hm2_5i25.0.stepgen.00.dirsetup [AXIS_0]DIRSETUP
  68. setp hm2_5i25.0.stepgen.00.dirhold [AXIS_0]DIRHOLD
  69. setp hm2_5i25.0.stepgen.00.steplen [AXIS_0]STEPLEN
  70. setp hm2_5i25.0.stepgen.00.stepspace [AXIS_0]STEPSPACE
  71. setp hm2_5i25.0.stepgen.00.position-scale [AXIS_0]STEP_SCALE
  72. setp hm2_5i25.0.stepgen.00.step_type 0
  73. setp hm2_5i25.0.stepgen.00.control-type 0
  74. setp hm2_5i25.0.stepgen.00.maxaccel 25.0
  75. setp hm2_5i25.0.stepgen.00.maxvel 2.1
  76.  
  77. net x-pos-fb axis.0.motor-pos-fb <= hm2_5i25.0.stepgen.00.position-fb
  78. net x-pos-cmd axis.0.motor-pos-cmd => hm2_5i25.0.stepgen.00.position-cmd
  79. net x-enable axis.0.amp-enable-out => hm2_5i25.0.stepgen.00.enable
  80.  
  81. # ---setup home / limit switch signals---
  82.  
  83. net both-home-x => axis.0.home-sw-in
  84. net both-home-x => axis.0.neg-lim-sw-in
  85. net both-home-x => axis.0.pos-lim-sw-in
  86.  
  87. #*******************
  88. # AXIS Z
  89. #*******************
  90.  
  91. # Step Gen signals/setup
  92.  
  93. setp hm2_5i25.0.stepgen.01.dirsetup [AXIS_2]DIRSETUP
  94. setp hm2_5i25.0.stepgen.01.dirhold [AXIS_2]DIRHOLD
  95. setp hm2_5i25.0.stepgen.01.steplen [AXIS_2]STEPLEN
  96. setp hm2_5i25.0.stepgen.01.stepspace [AXIS_2]STEPSPACE
  97. setp hm2_5i25.0.stepgen.01.position-scale [AXIS_2]STEP_SCALE
  98. setp hm2_5i25.0.stepgen.01.step_type 0
  99. setp hm2_5i25.0.stepgen.01.control-type 0
  100. setp hm2_5i25.0.stepgen.01.maxaccel 25.0
  101. setp hm2_5i25.0.stepgen.01.maxvel 2.1
  102.  
  103. net z-pos-fb axis.2.motor-pos-fb <= hm2_5i25.0.stepgen.01.position-fb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement