Combine Glade Togglebutton with Physical Input
- DerKlotz
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 2
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: 4532
- Thank you received: 2015
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
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 2
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: 4532
- Thank you received: 2015
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_Startstopp
Please Log in or Create an account to join the conversation.
- DerKlotz
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 2
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: 4532
- Thank you received: 2015
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.
Moderators: HansU
Time to create page: 0.118 seconds