Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Include your customized HAL commands here
- # The commands in this file are run after the AXIS GUI (including PyVCP panel) starts
- loadrt or20 count=2
- loadrt mux40 count=1
- addf or20.0 servo-thread
- addf or20.1 servo-thread
- addf mux40.0 servo-thread
- # set the jog speed for the joypad again use numbers that make sense for your machine
- setp mux40.0.in0 0 # this one must be 0 to prevent motion unless a button is pressed
- setp mux40.0.in1 25
- setp mux40.0.in2 100
- setp mux40.0.in3 200
- # the following does the magic of setting the jog speeds
- net remote-speed-slow or20.0.in0 input.0.btn-pinkie
- net remote-speed-medium or20.1.in0 input.0.btn-top2
- net remote-speed-fast or20.0.in1 or20.1.in1 input.0.btn-base2
- net joy-speed-1 mux40.0.sel0 <= or20.0.out
- net joy-speed-2 mux40.0.sel1 <= or20.1.out
- net joy-speed-final halui.jog-speed <= mux40.0.out
- net joy-x-jog halui.jog.0.analog <= input.0.abs-x-position
- net joy-y-jog halui.jog.1.analog <= input.0.abs-y-position
- net joy-z-jog halui.jog.2.analog <= input.0.abs-rz-position
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement