Combine Glade Togglebutton with Physical Input
- DerKlotz
- Away
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 4
17 Oct 2025 09:34 - 17 Oct 2025 09:35 #336583
by DerKlotz
Combine Glade Togglebutton with Physical Input was created by DerKlotz
Hello,
i just try to complete the function in the attached file. My postgui.hal:
#[Startknopf]
loadrt or2
addf or2.0 servo-thread
net Start.ext.an <= gladevcp.Start => or2.0.in0
net Start.ext.an1 <= hm2_7i76e.0.7i76.0.0.input-04 => or2.0.in1
net Start.or <= or2.0.out => hm2_7i76e.0.7i76.0.0.output-05 => gladevcp.led_Startstopp => halui.machine.on
#net Start.or => gladevcp.Start-not => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off
#net Start.ext.aus => gladevcp.Start-not => hm2_7i76e.0.7i76.0.0.output-06 => #halui.machine.off
I can´t get output-6 and halui.machine.off to work.
Please help
i just try to complete the function in the attached file. My postgui.hal:
#[Startknopf]
loadrt or2
addf or2.0 servo-thread
net Start.ext.an <= gladevcp.Start => or2.0.in0
net Start.ext.an1 <= hm2_7i76e.0.7i76.0.0.input-04 => or2.0.in1
net Start.or <= or2.0.out => hm2_7i76e.0.7i76.0.0.output-05 => gladevcp.led_Startstopp => halui.machine.on
#net Start.or => gladevcp.Start-not => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off
#net Start.ext.aus => gladevcp.Start-not => hm2_7i76e.0.7i76.0.0.output-06 => #halui.machine.off
I can´t get output-6 and halui.machine.off to work.
Please help
Last edit: 17 Oct 2025 09:35 by DerKlotz.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4559
- Thank you received: 2030
17 Oct 2025 10:03 #336584
by Aciera
Replied by Aciera on topic Combine Glade Togglebutton with Physical Input
you might have to use the 'not' component:
loadrt not
addf not.0 servo-thread
net your_signal not.0.in
net your_signal_inverted not.0.out
loadrt not
addf not.0 servo-thread
net your_signal not.0.in
net your_signal_inverted not.0.out
Please Log in or Create an account to join the conversation.
- DerKlotz
- Away
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 4
17 Oct 2025 13:43 #336595
by DerKlotz
Replied by DerKlotz on topic Combine Glade Togglebutton with Physical Input
Tried something, but to much chinese
. I did some comments after #
#[Startknopf]
loadrt or2
addf or2.0 servo-thread
loadrt not
addf not.0 servo-thread
net Start.not.in => not.0.in #<= ???? must be hm2_7i76e.0.7i76.0.0.input-04
#net Start.not.out => not.0.out
net Start.ext.an <= gladevcp.Start => or2.0.in0
net Start.ext.an1 <= hm2_7i76e.0.7i76.0.0.input-04 => or2.0.in1
net Start.or <= or2.0.out => hm2_7i76e.0.7i76.0.0.output-05 => gladevcp.led_Startstopp => halui.machine.on
#net Start.or <= not.0.in => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off
#net Start.ext.aus <= not.0.out => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off ## almost work, but gladevcp.led_Startstopp doesn´t work
#[Startknopf]
loadrt or2
addf or2.0 servo-thread
loadrt not
addf not.0 servo-thread
net Start.not.in => not.0.in #<= ???? must be hm2_7i76e.0.7i76.0.0.input-04
#net Start.not.out => not.0.out
net Start.ext.an <= gladevcp.Start => or2.0.in0
net Start.ext.an1 <= hm2_7i76e.0.7i76.0.0.input-04 => or2.0.in1
net Start.or <= or2.0.out => hm2_7i76e.0.7i76.0.0.output-05 => gladevcp.led_Startstopp => halui.machine.on
#net Start.or <= not.0.in => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off
#net Start.ext.aus <= not.0.out => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off ## almost work, but gladevcp.led_Startstopp doesn´t work
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4559
- Thank you received: 2030
17 Oct 2025 14:31 #336597
by Aciera
Replied by Aciera on topic Combine Glade Togglebutton with Physical Input
remove the led pin from where you have it and connect it to the the halui.machine.is-on pin instead:
net some_signal_name <= halui.machine.is-on => gladevcp.led_StartstoppPlease Log in or Create an account to join the conversation.
- DerKlotz
- Away
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 4
17 Oct 2025 16:00 #336606
by DerKlotz
Replied by DerKlotz on topic Combine Glade Togglebutton with Physical Input
halui.machine.is-on is already linked to machine-is-on
I´ll continue tomorrow
I´ll continue tomorrow
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4559
- Thank you received: 2030
18 Oct 2025 06:44 #336647
by Aciera
Well, by now you know how to use the signal-name a pin has been assigned to.
Replied by Aciera on topic Combine Glade Togglebutton with Physical Input
halui.machine.is-on is already linked to machine-is-on
Well, by now you know how to use the signal-name a pin has been assigned to.
Please Log in or Create an account to join the conversation.
- DerKlotz
- Away
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 4
18 Oct 2025 09:51 #336655
by DerKlotz
Replied by DerKlotz on topic Combine Glade Togglebutton with Physical Input
So i disabled
#net machine-is-on halui.machine.is-on
in my machine.hal
and did this in my custom_postgui.hal
net MachineLED <= halui.machine.is-on => gladevcp.led_Startstopp
#net machine-is-on halui.machine.is-on
in my machine.hal
and did this in my custom_postgui.hal
net MachineLED <= halui.machine.is-on => gladevcp.led_Startstopp
Please Log in or Create an account to join the conversation.
- DerKlotz
- Away
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 4
19 Oct 2025 15:49 #336711
by DerKlotz
Replied by DerKlotz on topic Combine Glade Togglebutton with Physical Input
Hello,
this is my almost working postgui. This works is Input-04 is a switch. But i want to use a push button. What can i do?
#[Startknopf]
loadrt or2
addf or2.0 servo-thread
loadrt not #mit diesem Befehl wird ein not.in/out in die Pins geladen
addf not.0 servo-thread
net Start.not.out => not.0.out # hier wird not.0.out startbar gemacht
net Start.ext.an <= gladevcp.Start => or2.0.in0
net Start.ext.an1 <= hm2_7i76e.0.7i76.0.0.input-04 => or2.0.in1
net Start.or <= or2.0.out => hm2_7i76e.0.7i76.0.0.output-05 => halui.machine.on => not.0.in # Eingang not.0.in wird über den or2.0.out gesetzt
net Start.not.out => not.0.out => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off
net MachineLED <= halui.machine.is-on => gladevcp.led_Startstopp
this is my almost working postgui. This works is Input-04 is a switch. But i want to use a push button. What can i do?
#[Startknopf]
loadrt or2
addf or2.0 servo-thread
loadrt not #mit diesem Befehl wird ein not.in/out in die Pins geladen
addf not.0 servo-thread
net Start.not.out => not.0.out # hier wird not.0.out startbar gemacht
net Start.ext.an <= gladevcp.Start => or2.0.in0
net Start.ext.an1 <= hm2_7i76e.0.7i76.0.0.input-04 => or2.0.in1
net Start.or <= or2.0.out => hm2_7i76e.0.7i76.0.0.output-05 => halui.machine.on => not.0.in # Eingang not.0.in wird über den or2.0.out gesetzt
net Start.not.out => not.0.out => hm2_7i76e.0.7i76.0.0.output-06 => halui.machine.off
net MachineLED <= halui.machine.is-on => gladevcp.led_Startstopp
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.089 seconds