Joystick (adding more features)

  • theo-rist
  • theo-rist's Avatar Topic Author
  • Visitor
  • Visitor
17 Jun 2014 01:59 #48012 by theo-rist
Joystick (adding more features) was created by theo-rist
Ein Hallo an die Gemeinde ;)

Brauch Hilfe im Bezug auf die Joystick Steuerung (Part 2, more features)

wiki.linuxcnc.org/cgi-bin/wiki.pl?Adding...imple_Remote_Pendant

Den Ersten einfachen Teil habe ich zum laufen bekommen!
Im zweiten Part taucht was auf wie folgt

halui.mdi-command-05


Es gibt beim starten Fehler! Hier mal Auszüge aus meiner .ini und meiner main.hal

In der .ini


[HAL]
...
...
POSTGUI_HALFILE = custom_postgui.hal
HALUI = halui



Und in der Main.hal

# for remote joypad
loadusr -W hal_input -KRAL Thrustmaster



was ist das? halui.mdi-command-XX und was muss da jetzt wo noch hin?


PS: Steuerung soll hinterher auch wider für 3 Achsen sein. So wie im ersten Teil.

Ich freue mich auf eure Anregungen :cheer:

Please Log in or Create an account to join the conversation.

More
18 Jun 2014 14:54 #48051 by Rick G
mdi command 05 is to play a beep on the computer speaker to let the operator know that the machine is now in incremental jog mode.

#1 use button 4 to switch to incremental jog. #7 use button 4 for stop program run
net button-4 and2.12.in1 and2.18.in0 <= input.0.btn-top
net jog-man-to-inc and2.18.in1 <= not.0.out
net jog-inc halui.mdi-command-05 flipflop.0.set <= and2.18.out



# # # # #
#Uncomment and use the following MDI_COMMANDS in the .ini file in the HALUI section"
#these four set each axis to zero similar to touch off, but using G10 you can change to numbers to reflect the size of #your edge finder these must be in the proper order
#MDI_COMMAND = G10 L20 P1 X-.125 M101
#MDI_COMMAND = G10 L20 P1 Y-.125 M102
#MDI_COMMAND = G10 L20 P1 Z0.000 M103
#MDI_COMMAND = G10 L20 P1 W0.000 M104

#this sets the file to be run for home
#MDI_COMMAND = o<home> call
# #<home> uses M105 for song M111 to erase message

#1 long beep for incremental, song for proportional
### MDI command 05
#MDI_COMMAND = M106

### MDI command 06
#MDI_COMMAND = M107
# # # # #


M106 is a user defined M code...


M106
# beep for incremental

 #! /bin/sh 

beep -f 100 -l 200-n

 exit 0

Rick G

Please Log in or Create an account to join the conversation.

Moderators: HansU
Time to create page: 1.515 seconds
Powered by Kunena Forum