Advertisement
Guest User

Untitled

a guest
Dec 11th, 2010
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. # Generated by stepconf at Mon Mar 15 00:51:13 2010
  2. # If you make changes to this file, they will be
  3. # overwritten when you run stepconf again
  4. loadrt trivkins
  5. loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]SERVO_PERIOD key=[EMCMOT]SHMEM_KEY num_joints=[TRAJ]AXES
  6. loadrt probe_parport
  7. loadrt hal_parport cfg=0x378
  8. setp parport.0.reset-time 5000
  9. loadrt stepgen step_type=0,0,0
  10. loadrt charge_pump
  11. net estop-out charge-pump.enable iocontrol.0.user-enable-out
  12. net charge-pump <= charge-pump.out
  13. loadrt pwmgen output_type=0
  14. loadrt and2 count=1
  15.  
  16. addf parport.0.read base-thread
  17. addf stepgen.make-pulses base-thread
  18. addf charge-pump base-thread
  19. addf pwmgen.make-pulses base-thread
  20. addf parport.0.write base-thread
  21. addf parport.0.reset base-thread
  22.  
  23. addf stepgen.capture-position servo-thread
  24. addf motion-command-handler servo-thread
  25. addf motion-controller servo-thread
  26. addf stepgen.update-freq servo-thread
  27. addf pwmgen.update servo-thread
  28. addf and2.0 servo-thread
  29.  
  30. net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value
  31. net spindle-enable <= motion.spindle-on => pwmgen.0.enable
  32. net spindle-pwm <= pwmgen.0.pwm
  33. setp pwmgen.0.pwm-freq 0.0
  34. setp pwmgen.0.scale 2500.0
  35. setp pwmgen.0.offset 0.22
  36.  
  37. net probe-in => motion.probe-input
  38.  
  39. net charge-pump => parport.0.pin-01-out
  40. net xdir => parport.0.pin-02-out
  41. net xstep => parport.0.pin-03-out
  42. setp parport.0.pin-03-out-reset 1
  43. setp parport.0.pin-04-out-invert 1
  44. net ydir => parport.0.pin-04-out
  45. net ystep => parport.0.pin-05-out
  46. setp parport.0.pin-05-out-reset 1
  47. net zdir => parport.0.pin-06-out
  48. net zstep => parport.0.pin-07-out
  49. setp parport.0.pin-07-out-reset 1
  50. net spindle-pwm => parport.0.pin-08-out
  51. setp parport.0.pin-14-out-invert 1
  52. net charge-pump => parport.0.pin-14-out
  53. net charge-pump => parport.0.pin-16-out
  54. setp parport.0.pin-17-out-invert 1
  55. net xenable => parport.0.pin-17-out
  56.  
  57. net probe-in <= parport.0.pin-13-in
  58. net both-home-x <= parport.0.pin-10-in
  59. net both-home-y <= parport.0.pin-11-in
  60. net min-home-z <= parport.0.pin-12-in
  61.  
  62. # X as
  63. setp stepgen.0.position-scale [AXIS_0]SCALE
  64. setp stepgen.0.steplen 1
  65. setp stepgen.0.stepspace 0
  66. setp stepgen.0.dirhold 35000
  67. setp stepgen.0.dirsetup 35000
  68. setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
  69. net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
  70. net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
  71. net xstep <= stepgen.0.step
  72. net xdir <= stepgen.0.dir
  73. net xenable axis.0.amp-enable-out => stepgen.0.enable
  74. net both-home-x => axis.0.home-sw-in
  75. net both-home-x => axis.0.neg-lim-sw-in
  76. net both-home-x => axis.0.pos-lim-sw-in
  77.  
  78. # Y as
  79. setp stepgen.1.position-scale [AXIS_1]SCALE
  80. setp stepgen.1.steplen 1
  81. setp stepgen.1.stepspace 0
  82. setp stepgen.1.dirhold 35000
  83. setp stepgen.1.dirsetup 35000
  84. setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL
  85. net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
  86. net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
  87. net ystep <= stepgen.1.step
  88. net ydir <= stepgen.1.dir
  89. net yenable axis.1.amp-enable-out => stepgen.1.enable
  90. net both-home-y => axis.1.home-sw-in
  91. net both-home-y => axis.1.neg-lim-sw-in
  92. net both-home-y => axis.1.pos-lim-sw-in
  93.  
  94. # Z as
  95. setp stepgen.2.position-scale [AXIS_2]SCALE
  96. setp stepgen.2.steplen 1
  97. setp stepgen.2.stepspace 0
  98. setp stepgen.2.dirhold 35000
  99. setp stepgen.2.dirsetup 35000
  100. setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
  101. net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
  102. net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
  103. net zstep <= stepgen.2.step
  104. net zdir <= stepgen.2.dir
  105. net zenable axis.2.amp-enable-out => stepgen.2.enable
  106. net min-home-z => axis.2.home-sw-in
  107. net min-home-z => axis.2.neg-lim-sw-in => axis.2.pos-lim-sw-in
  108.  
  109. #noodstop
  110. net estop-out <= iocontrol.0.user-enable-out
  111. net estop-ext <= parport.0.pin-15-in-not
  112. net estop-out => and2.0.in0
  113. net estop-ext => and2.0.in1
  114. net noodstop and2.0.out => iocontrol.0.emc-enable-in
  115.  
  116. #tool
  117. loadusr -W hal_manualtoolchange
  118. net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
  119. net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
  120. net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
  121. net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement