Advertisement
LAIR82

4th Axis settings

Nov 24th, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. ***** HAL SECTION
  2.  
  3. #========================================================================================
  4.  
  5. # A AXIS
  6.  
  7. setp pid.a.Pgain [AXIS_3]P
  8. setp pid.a.Igain [AXIS_3]I
  9. setp pid.a.Dgain [AXIS_3]D
  10. setp pid.a.bias [AXIS_3]BIAS
  11. setp pid.a.FF0 [AXIS_3]FF0
  12. setp pid.a.FF1 [AXIS_3]FF1
  13. setp pid.a.FF2 [AXIS_3]FF2
  14. setp pid.a.deadband [AXIS_3]DEADBAND
  15. setp pid.a.maxoutput [AXIS_3]MAX_OUTPUT
  16.  
  17. net a-index-enable <=> pid.a.index-enable
  18. net a-enable => pid.a.enable
  19. net a-output => pid.a.output
  20. net a-pos-cmd => pid.a.command
  21. net a-pos-fb => pid.a.feedback
  22.  
  23. # PWM Generator signals/setup
  24.  
  25. setp hm2_7i80.0.pwmgen.03.output-type 2
  26. setp hm2_7i80.0.pwmgen.03.scale [AXIS_3]OUTPUT_SCALE
  27.  
  28. net a-output => hm2_7i80.0.pwmgen.03.value
  29. net a-enable => hm2_7i80.0.pwmgen.03.enable axis.3.amp-enable-out
  30. net a-pos-cmd <= axis.3.motor-pos-cmd
  31.  
  32. # Encoder feedback signals/setup
  33.  
  34. setp hm2_7i80.0.encoder.01.scale [AXIS_3]ENCODER_SCALE
  35.  
  36. net rotary-revs <= hm2_7i80.0.encoder.01.position
  37. net rotary-vel-fb <= hm2_7i80.0.encoder.01.velocity
  38. net a-index-enable <=> hm2_7i80.0.encoder.01.index-enable
  39. net rotary-revs => axis.3.motor-pos-fb
  40.  
  41.  
  42.  
  43. ******* FROM INI
  44.  
  45.  
  46. #********************
  47. # Axis A
  48. #********************
  49. [AXIS_3]
  50. TYPE = ANGULAR
  51. WRAPPED_ROTARY = 1
  52. #LOCKING_INDEXER = 1
  53. FERROR = 10000
  54. #MIN_FERROR = 10
  55. BACKLASH = 0
  56. MAX_VELOCITY = 5
  57. MAX_ACCELERATION = 3
  58. P = 0
  59. I = 0
  60. D = 0
  61. FF0 = 0
  62. FF1 = 1
  63. FF2 = 0
  64. BIAS = 0
  65. DEADBAND = 0
  66. ENCODER_SCALE = -5000
  67. OUTPUT_SCALE = 1
  68. MAX_OUTPUT = 3
  69. MIN_LIMIT = -360.000
  70. MAX_LIMIT = 360.000
  71.  
  72. #HOME = 0.000
  73. HOME_OFFSET = -5
  74. HOME_SEARCH_VEL = .5
  75. HOME_LATCH_VEL = .2
  76. #HOME_FINAL_VEL = .1
  77. HOME_USE_INDEX = no
  78. HOME_IGNORE_LIMITS = yes
  79. HOME_IS_SHARED = no
  80. HOME_SEQUENCE = 2
  81. VOLATILE_HOME = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement