Gmoccapy - Pfeiltasten auf der Tastatur vertauschen

More
02 Jan 2020 18:08 #153800 by h_lauer
Hallo zusammen,
da ich ein absoluter Beginner im Bereich LinuxCNC / Linux bin kann es sein, dass diese Frage absolut dumm ist.
Ich habe in den letzten Tagen im Internet nach einer Lösung gesucht wie ich die Pfeiltasten der Tastatur für die X- und Y- Achse vertauschen kann.
Eine Lösung über .axisrc habe ich gefunden. Leider läuft diese (bei mir) nicht unter Gmoccapy.
Die Tools aus den verschiedenen Internetbeschreibungen (z.B. Keychoice) sind leider alle veraltet und laufen nicht mehr
Gibt es eine einfache Lösung für mein Problem? Habe ich evtl. nur nicht den passenden Suchbegriff für meine Problemstellung?
Leider ist die Fräse bautechnisch so angeordnet, dass ich die Tastatur halt um 90° gedreht auf dem Tisch daneben stehen habe.
Viele Grüße
Holger

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

More
09 Jan 2020 16:21 #154455 by aleksamc
The simplest way is to get into the way with your settings? more over if you are new in linuxcnc.
Also simple way is to change coordinates at you machine.

Other more complicated way is as you said change .axissrc
Topic

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

More
21 Jan 2020 18:35 - 21 Jan 2020 18:38 #155345 by bbsr_5a
Hallo
Ich nutze das bei meiner Maschine via die .axisrc
einfach die tasten wechseln oder die vorzeichen
du kanst auch jede kombination nutzen ZB die ganzen Achsen tauschen
You can do this in a ~/.axisrc file as well (for each user); using [DISPLAY]USER_COMMAND_FILE applys to any use of the modified inifile

# Jog axis 0 (0=X, 1=Y, 2=Z, 3=A, 4=B, ...)
root_window.bind("<Right>", lambda e: jog_on(0, get_jog_speed(0)))
root_window.bind("<Left>", lambda e: jog_on(0, -get_jog_speed(0)))
root_window.bind("<KeyRelease-Left>", lambda e: jog_off(0))
root_window.bind("<KeyRelease-Right>", lambda e: jog_off(0))

# Jog axis 1
root_window.bind("<Down>", lambda e: jog_on(1, -get_jog_speed(1)))
root_window.bind("<Up>", lambda e: jog_on(1, get_jog_speed(1)))
root_window.bind("<KeyRelease-Down>", lambda e: jog_off(1))
root_window.bind("<KeyRelease-Up>", lambda e: jog_off(1))


# Jog axis 2 <Prior>=PgUp <Next>=PgDn
root_window.bind("<Prior>", lambda e: jog_on(2, get_jog_speed(2)))
root_window.bind("<Next>", lambda e: jog_on(2, -get_jog_speed(2)))
root_window.bind("<KeyRelease-Next>", lambda e: jog_off(2))
root_window.bind("<KeyRelease-Prior>", lambda e: jog_off(2))
Last edit: 21 Jan 2020 18:38 by bbsr_5a.

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

Time to create page: 0.119 seconds
Powered by Kunena Forum