Combine Glade Togglebutton with Physical Input

More
17 Oct 2025 09:34 - 17 Oct 2025 09:35 #336583 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
Attachments:
Last edit: 17 Oct 2025 09:35 by DerKlotz.

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

More
17 Oct 2025 10:03 #336584 by Aciera
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

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

More
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

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

More
17 Oct 2025 14:31 #336597 by Aciera
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.

More
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

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

More
18 Oct 2025 06:44 #336647 by Aciera

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
Powered by Kunena Forum