Handrad XHC richtig einbinden in LinuxCNC

More
29 Oct 2023 15:22 #284033 by tracer
Hallo zusammen,

ich brauche mal wieder eure Hilfe. Ich hatte ganz am Anfang mein XHC Handrad über das Tutorial von Talla83 eingerichtet und das hat auch funktioniert.
Nun hatte ich mir aber noch zusätzlich eine PWM Laserdiode an die Fräse gebaut und ebenfalls mit eingebunden, das Problem ist, dass ich das sich mit dem Handrad kein Jogging ermöglich. Ich kann mit dem Handrad aber Programm starten und bekomme teilweise die Koordinaten angezeigt im Display vom Handrad.

Ich vermute, dass in der LinuxCNCV2.hal hier der Fehler liegt, net laser_pwm_enable halui.program.is-running => hm2_7i76e.0.pwmgen.00.enable, da halui.program.is-running ebenfalls bei der Konfigurationsdatei Handrad vorkommt und ich diese austexten musste.
xhc-whb04b-6.hal  #net pdnt.program-is-running whb.halui.program.is-running halui.program.is-running #*hier geändert*

Die Frage ist wie kann man die halui.prgramm.is-running so ändern dass das Handrad und der Laser damit klar kommen? das leutet mir nicht ein.

Danke Vorab

Christoph
 

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

More
29 Oct 2023 16:49 #284048 by MaHa
Ich würde das Signal
laser_pwm_enable
weiterverwenden, und in hal fürs Handrad Ändern von:
net pdnt.program-is-running whb.halui.program.is-running halui.program.is-running

zu
net laser_pwm_enable whb.halui.program.is-running
 

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

More
29 Oct 2023 19:12 - 29 Oct 2023 19:14 #284065 by tracer
Hallo,

danke für die Antwort,

aber dann habe ich doch das gleiche Problem, dass das "whb.halui.program.is-running" bereits vergeben ist.

Einmal im Handrad  #net pdnt.program-is-running whb.halui.program.is-running halui.program.is-running
und in der PWM Laser Enable  net laser_pwm_enable whb.halui.program.is-running

Beste Grüße

Christoph
Last edit: 29 Oct 2023 19:14 by tracer.

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

More
29 Oct 2023 20:01 #284069 by MaHa
Da Pins nur eine Verknüpfung erlauben, aber Signale mehrfach verwendet werden können, geht die Lösung wohl in diese Richtung, würde ich zumindest mal testen.


In maschine hal, um das Signal zu belegen:

net laser_pwm_enable halui.program.is-running

nachher kann das Signal laser_pwm_enable (was ja jetzt halui.program.is-running entspricht) beliebig oft für diverse Zwecke weiterverwendet werden.

net laser_pwm_enable => hm2_7i76e.0.pwmgen.00.enable

**************************************************************

und in hal fürs Handbediengerät:

net laser_pwm_enable whb.halui.program.is-running
The following user(s) said Thank You: Tchefter, tracer

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

More
11 Nov 2023 10:21 #285093 by tracer
Vielen Dank. Werde ich mal probieren. Grad hab ich noch Corona, daher kann ich es nicht testen. Danke für die Hilfe

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

Time to create page: 0.112 seconds
Powered by Kunena Forum