Advertisement
Guest User

prueba1.hal

a guest
May 2nd, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # components
  2. loadusr -W lcec_conf /home/nacho/linuxcat/linuxcnchal/configs/prueba4/ethercat_config_n.xml
  3. loadrt lcec
  4. loadrt trivkins
  5. loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
  6.  
  7. loadrt conv_float_s32
  8. loadrt conv_s32_float
  9.  
  10.  
  11.  
  12.  
  13.  
  14. net posactual.0 lcec.0.0.pos => conv-s32-float.0.in
  15. net posactualfl.0 conv-s32-float.0.out => axis.0.motor-pos-fb
  16.  
  17. setp lcec.0.0.drivecontrol-1 1
  18. setp lcec.0.0.drivecontrol-2 1
  19.  
  20. setp lcec.0.0.drivecontrol-0 1
  21.  
  22.  
  23. net Xachse_AF axis.0.amp-enable-out => lcec.0.0.drivecontrol-3
  24. net Xachse_cmd axis.0.motor-pos-cmd => conv-float-s32.0.in
  25. net Xachse_cmds32 conv-float-s32.0.out => lcec.0.0.poscommand
  26.  
  27. # parameter values
  28. # realtime thread/function links
  29. addf lcec.read-all servo-thread
  30. addf motion-command-handler servo-thread
  31. addf motion-controller servo-thread
  32.  
  33. addf conv-s32-float.0 servo-thread
  34. addf conv-float-s32.0 servo-thread
  35.  
  36.  
  37.  
  38. addf lcec.write-all servo-thread
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement