- Posts: 1872
- Thank you received: 358
XHC-WHB04B-6 Macro 10 zum Achse Nullen
- pl7i92
- Offline
- Platinum Member
-
Less
More
6 years 11 months ago #149618
by pl7i92
Replied by pl7i92 on topic XHC-WHB04B-6 Macro 10 zum Achse Nullen
kanst du mal den kompletten ordner CONFIGS/Maschinenname hier in eine zip packen
dann schauen wir mal drüber
das macro 10 soll ja die gewählte achse null setzen
grundsatz
der button druck und der positionsschalter lösen eine MDI befehl aus
der befehl steht in der ini
die verknüpfung kommt in der xhc hal ich nutze multiklicks auf den tasten
1mal auslösen 2mal rücksetzen
für dich reichjt click_macro10 aus
du hast bestimmt drinnstehen das macro_10 home-all heisen soll
da muss ein # davor
und dann die verknüpfung zu den achsen
WENN Achse A angewählt und macro10 dann
mit einem and2 logik baustein
and2.x.in0 mit Achscode laden
and2.x.in1 mit macro10 laden
dann schauen wir mal drüber
das macro 10 soll ja die gewählte achse null setzen
grundsatz
der button druck und der positionsschalter lösen eine MDI befehl aus
der befehl steht in der ini
Code:
[HALUI]
# HalUI-MDI-Befehle hier einfügen (max. 64) erste =MDI 0
MDI_COMMAND=G10 L20 P1 X0
MDI_COMMAND=G10 L20 P1 Y0
MDI_COMMAND=G10 L20 P1 Z0
die verknüpfung kommt in der xhc hal ich nutze multiklicks auf den tasten
1mal auslösen 2mal rücksetzen
für dich reichjt click_macro10 aus
du hast bestimmt drinnstehen das macro_10 home-all heisen soll
da muss ein # davor
und dann die verknüpfung zu den achsen
WENN Achse A angewählt und macro10 dann
mit einem and2 logik baustein
and2.x.in0 mit Achscode laden
and2.x.in1 mit macro10 laden
Code:
# Jog wheel and axis selection button
net jog-x axis.0.jog-enable <= xhc-hb04.jog.enable-x => and2.0.in0 and2.3.in0 and2.6.in0
net jog-y axis.1.jog-enable <= xhc-hb04.jog.enable-y => and2.1.in0 and2.4.in0 and2.7.in0
net jog-z axis.2.jog-enable <= xhc-hb04.jog.enable-z => and2.2.in0 and2.5.in0 and2.8.in0
net jog-a axis.3.jog-enable <= xhc-hb04.jog.enable-a and2.9.in0 and2.10.in0 and2.11.in0
Code:
loadrt multiclick names=click_estop,click_macro1,click_zero,click_spindel,click_stop,click_mode,click_macro2,click_macro3,click_probe_z
addf click_estop servo-thread
addf click_mode servo-thread
addf click_macro10 servo-thread
addf click_probe_z servo-thread
# X=0, Y=0, Z=0 XYZ=0
addf click_zero servo-thread
net xh-button-zero xhc-hb04.macro10 => click_zero.in
net zerobutton-single-click click_zero.single-click => and2.6.in1 and2.7.in1 and2.8.in1 and2.11.in1
net zerobutton-double-click click_zero.double-click => halui.mdi-command-06
net x0 halui.mdi-command-00 and2.6.out
net y0 halui.mdi-command-01 and2.7.out
net z0 halui.mdi-command-02 and2.8.out
#net a0 halui.mdi-command-02 and2.11.out
The following user(s) said Thank You: Tchefter, sigi_Z, DeepBlue
Please Log in or Create an account to join the conversation.
- DeepBlue
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 2
6 years 11 months ago #149653
by DeepBlue
Replied by DeepBlue on topic XHC-WHB04B-6 Macro 10 zum Achse Nullen
Hallo,
vielen Dank für die Hilfe und Infos !!
Ich habe es jetzt so gelöst:
Maschine.ini
XHC.hal
So Funktioniert es wie gewünscht - Perfekt
vielen Dank für die Hilfe und Infos !!
Ich habe es jetzt so gelöst:
Maschine.ini
Code:
[HALUI]
# HalUI-MDI-Befehle hier einfügen (max. 64)
MDI_COMMAND=(debug,00)
MDI_COMMAND=(debug,macro1)
MDI_COMMAND=(debug,macro2)
MDI_COMMAND=(debug,macro3)
MDI_COMMAND=(debug,macro4)
MDI_COMMAND=G1 G53 X0 Y0 Z0 F4000
MDI_COMMAND=(debug,macro6)
MDI_COMMAND=G1 X0 Y0 Z0 F4000
MDI_COMMAND=(debug,macro8)
MDI_COMMAND=(debug,macro9)
MDI_COMMAND=(debug,macro10)
MDI_COMMAND=(debug,macro11)
MDI_COMMAND=(debug,macro12)
MDI_COMMAND=(debug,macro13)
MDI_COMMAND=(debug,macro14)
MDI_COMMAND=(debug,macro15)
MDI_COMMAND=(debug,macro16)
MDI_COMMAND=G1 G53 Z0 F4000
MDI_COMMAND=(debug,macro17)
MDI_COMMAND=(debug,macro18)
MDI_COMMAND=(debug,macro19)
## 21 Abnullen X
MDI_COMMAND=G10 L20 P0 X0
## 22 Abnullen Y
MDI_COMMAND=G10 L20 P0 Y0
## 23 Abnullen Z
MDI_COMMAND=G10 L20 P0 Z0
XHC.hal
Code:
########################################################################
# Achsen Abnullen mit Ausgewaehlter Achse und einem Button
########################################################################
loadrt and2 count=3
addf and2.0 servo-thread
addf and2.1 servo-thread
addf and2.2 servo-thread
#### X-Achse ####
net pdnt.joint.X.select and2.0.in0
net pdnt.macro.10 and2.0.in1
net x-null halui.mdi-command-21 and2.0.out
#### Y-Achse ####
net pdnt.joint.Y.select and2.1.in0
net pdnt.macro.10 and2.1.in1
net y-null halui.mdi-command-22 and2.1.out
#### Z-Achse ####
net pdnt.joint.Z.select and2.2.in0
net pdnt.macro.10 and2.2.in1
net z-null halui.mdi-command-23 and2.2.out
# ######################################################################
So Funktioniert es wie gewünscht - Perfekt
The following user(s) said Thank You: Tchefter
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
-
Less
More
- Posts: 1872
- Thank you received: 358
6 years 11 months ago #149720
by pl7i92
Replied by pl7i92 on topic XHC-WHB04B-6 Macro 10 zum Achse Nullen
genau so
nur der debug muss jetzt den echten nulpunkt setzen
nur der debug muss jetzt den echten nulpunkt setzen
Please Log in or Create an account to join the conversation.
- DeepBlue
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 2
6 years 11 months ago #149729
by DeepBlue
Replied by DeepBlue on topic XHC-WHB04B-6 Macro 10 zum Achse Nullen
MDI_COMMAND=(debug,macro10) wird jetzt von einer anderen Taste Bedient 
Habe ich in der xhc.hal auskommentiert.
Ich verlinke jetzt noch die "C" Schalterstellung zum alle Achsen zu nullen, und
dann sollte es passen.
Vorerst zumindest...bis mir wieder was anderes einfällt...
Habe ich in der xhc.hal auskommentiert.
Ich verlinke jetzt noch die "C" Schalterstellung zum alle Achsen zu nullen, und
dann sollte es passen.
Vorerst zumindest...bis mir wieder was anderes einfällt...
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
-
Less
More
- Posts: 1872
- Thank you received: 358
6 years 11 months ago #149826
by pl7i92
Replied by pl7i92 on topic XHC-WHB04B-6 Macro 10 zum Achse Nullen
eigentlich ist das -> MDI_COMMAND=(debug,macro10 X Null)
nur der platzhalter für
MDI_COMMAND=G10 L20 P1 X0
tolle zusammenstellung die du dir da gebastelt hast
Pass bitte auf die leerstellen und kommentare auf die hal sollte kompakt bleiben
nur der platzhalter für
MDI_COMMAND=G10 L20 P1 X0
tolle zusammenstellung die du dir da gebastelt hast
Pass bitte auf die leerstellen und kommentare auf die hal sollte kompakt bleiben
Please Log in or Create an account to join the conversation.
- Anton
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 5
2 years 3 months ago - 2 years 3 months ago #305075
by Anton
Replied by Anton on topic XHC-WHB04B-6 Macro 10 zum Achse Nullen
Hello,
I am a beginner and still have some problems with the signal linking in the HAL.
As shown above, I have managed to zero the axes using button 10 and the rotary knob for axis selection. How can I now set all axes to 0 after selecting axis C with the rotary knob and pressing button 10?
#### Axes Zero with selected axis and button10 ###
loadrt and2 names=and2_X,and2_Y,and2_Z,and2_C
addf and2_X servo-thread
addf and2_Y servo-thread
addf and2_Z servo-thread
addf and2_C servo-thread
net button10 <= whb.button.macro-10
#### X-Axis ####
net pdnt.axis.X.select => and2_X.in0
net button10 => and2_X.in1
net x_zero <= halui.mdi-command-21 <= and2_X.out
#### Y-Axis ####
net pdnt.axis.Y.select => and2_Y.in0
net button10 => and2_Y.in1
net y_zero <= halui.mdi-command-22 <= and2_Y.out
#### Z-Axis ####
net pdnt.axis.Z.select => and2_Z.in0
net button10 => and2_Z.in1
net z_zero <= halui.mdi-command-23 <= and2_Z.out
### Zero all axes if axis C is selected ###
net pdnt.axis.C.select => and2_C.in0
net button10 => and2_C.in1
net zero_all ????
I am a beginner and still have some problems with the signal linking in the HAL.
As shown above, I have managed to zero the axes using button 10 and the rotary knob for axis selection. How can I now set all axes to 0 after selecting axis C with the rotary knob and pressing button 10?
#### Axes Zero with selected axis and button10 ###
loadrt and2 names=and2_X,and2_Y,and2_Z,and2_C
addf and2_X servo-thread
addf and2_Y servo-thread
addf and2_Z servo-thread
addf and2_C servo-thread
net button10 <= whb.button.macro-10
#### X-Axis ####
net pdnt.axis.X.select => and2_X.in0
net button10 => and2_X.in1
net x_zero <= halui.mdi-command-21 <= and2_X.out
#### Y-Axis ####
net pdnt.axis.Y.select => and2_Y.in0
net button10 => and2_Y.in1
net y_zero <= halui.mdi-command-22 <= and2_Y.out
#### Z-Axis ####
net pdnt.axis.Z.select => and2_Z.in0
net button10 => and2_Z.in1
net z_zero <= halui.mdi-command-23 <= and2_Z.out
### Zero all axes if axis C is selected ###
net pdnt.axis.C.select => and2_C.in0
net button10 => and2_C.in1
net zero_all ????
Last edit: 2 years 3 months ago by Anton.
Please Log in or Create an account to join the conversation.
Moderators: Muecke
Time to create page: 0.503 seconds