Advertisement
Guest User

pastebin

a guest
Mar 6th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. # Include your customized HAL commands here
  2. # The commands in this file are run after the AXIS GUI (including PyVCP panel) starts
  3.  
  4. loadrt or20 count=2
  5. loadrt mux40 count=1
  6.  
  7. addf or20.0 servo-thread
  8. addf or20.1 servo-thread
  9. addf mux40.0 servo-thread
  10.  
  11. # set the jog speed for the joypad again use numbers that make sense for your machine
  12. setp mux40.0.in0 0 # this one must be 0 to prevent motion unless a button is pressed
  13. setp mux40.0.in1 25
  14. setp mux40.0.in2 100
  15. setp mux40.0.in3 200
  16.  
  17. # the following does the magic of setting the jog speeds
  18. net remote-speed-slow or20.0.in0 input.0.btn-pinkie
  19. net remote-speed-medium or20.1.in0 input.0.btn-top2
  20. net remote-speed-fast or20.0.in1 or20.1.in1 input.0.btn-base2
  21.  
  22. net joy-speed-1 mux40.0.sel0 <= or20.0.out
  23. net joy-speed-2 mux40.0.sel1 <= or20.1.out
  24. net joy-speed-final halui.jog-speed <= mux40.0.out
  25.  
  26. net joy-x-jog halui.jog.0.analog <= input.0.abs-x-position
  27. net joy-y-jog halui.jog.1.analog <= input.0.abs-y-position
  28. net joy-z-jog halui.jog.2.analog <= input.0.abs-rz-position
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement