Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. # Benutzerdefinierte HAL-Anweisungen können nachfolgend angegeben werden
  2. # Diese Datei wird überschrieben, wenn stepconf erneut ausgeführt wird.
  3. #loadusr -W arduino /dev/ttyUSB0 0
  4. loadusr -W arduino /dev/ttyACM0 0
  5.  
  6. loadrt or2 count=1
  7. loadrt and2 count=2
  8. loadrt toggle count=2
  9. loadrt toggle2nist count=1
  10.  
  11.  
  12. addf and2.0 servo-thread
  13. addf and2.1 servo-thread
  14. addf or2.0 servo-thread
  15. addf toggle.0 servo-thread
  16. addf toggle2nist.0 servo-thread
  17.  
  18. addf toggle.1 servo-thread
  19.  
  20. loadrt encoder num_chan=4
  21. addf encoder.update-counters base-thread
  22. addf encoder.capture-position servo-thread
  23. setp encoder.1.position-scale 5000
  24. setp encoder.0.x4-mode 1
  25. setp encoder.1.x4-mode 1
  26.  
  27. net feedenca encoder.0.phase-A <= arduino.digital-in-09
  28. net feedencb encoder.0.phase-B <= arduino.digital-in-08
  29. net spindlenca encoder.1.phase-A <= arduino.digital-in-10
  30. net spindlencb encoder.1.phase-B <= arduino.digital-in-11
  31.  
  32. #MODULE
  33.  
  34. # External Program Pause/Resume Button
  35. net pause-resume-btn and2.0.in0 and2.1.in0 <= parport.0.pin-10-in
  36. net pause-on toggle2nist.0.is-on and2.0.in1 <= halui.program.is-paused
  37. net run-on and2.1.in1 <= halui.program.is-running
  38. net pause-sig or2.0.in0 <= and2.0.out
  39. net resume-sig or2.0.in1 <= and2.1.out
  40. net toggle-ok toggle.0.in <= or2.0.out
  41. net togglesig toggle2nist.0.in <= toggle.0.out
  42. net toggleon halui.program.pause <= toggle2nist.0.on
  43. net toggleoff halui.program.resume <= toggle2nist.0.off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement