Advertisement
Guest User

Untitled

a guest
Jul 15th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. # This configuration uses classicladder for machine logic
  2. # (load the realtime portion)
  3. # these classicladder parameters need to be optimized after ladder completion
  4. loadrt classicladder_rt numRungs=24 numBits=30 numWords=4 numTimers=5 numMonostables=10 numPhysInputs=50 numPhysOutputs=30 numArithmExpr=30 numSections=10
  5. # We kick ladder into a thread at the slower servo rate rather than base rate
  6. addf classicladder.0.refresh servo-thread 1
  7.  
  8. # invoke the user part of CL to silently load the program
  9. # later we will need to add the clp file mentioned below
  10. # to the ini file so that we do not need to hardcode it here.
  11. loadusr -w classicladder --nogui demo_step_cl.clp
  12. # load the GUI aswell
  13. # loadusr classicladder
  14.  
  15.  
  16.  
  17. # ################################################
  18. # THREADS
  19. # ################################################
  20.  
  21. addf hm2_[HOSTMOT2](BOARD).0.read servo-thread
  22. addf hm2_[HOSTMOT2](BOARD).1.read servo-thread
  23.  
  24. addf motion-command-handler servo-thread
  25. addf motion-controller servo-thread
  26.  
  27. addf pid.0.do-pid-calcs servo-thread
  28. addf pid.1.do-pid-calcs servo-thread
  29. addf pid.2.do-pid-calcs servo-thread
  30. addf pid.3.do-pid-calcs servo-thread
  31.  
  32. addf hm2_[HOSTMOT2](BOARD).0.write servo-thread
  33. addf hm2_[HOSTMOT2](BOARD).1.write servo-thread
  34. addf hm2_[HOSTMOT2](BOARD).0.pet_watchdog servo-thread
  35. addf hm2_[HOSTMOT2](BOARD).1.pet_watchdog servo-thread
  36. addf abs.0 servo-thread
  37. addf gearshift16.0 servo-thread
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement