Flexible GUI

  • JT
  • JT's Avatar Topic Author
  • Online
  • Administrator
  • Administrator
More
25 Jan 2025 11:57 #319813 by JT
Replied by JT on topic Flexible GUI
Take a look at this thread for the coordination of an external E-Stop with LinuxCNC
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop

I have not tested an external E-Stop so the colors may not stay in sync.

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

  • JT
  • JT's Avatar Topic Author
  • Online
  • Administrator
  • Administrator
More
25 Jan 2025 12:01 #319814 by JT
Replied by JT on topic Flexible GUI
Your screen shot looks correct. I added multi state labels on the 20th, how are you updating?






JT
Attachments:

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

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
25 Jan 2025 18:06 #319835 by blazini36
Replied by blazini36 on topic Flexible GUI

Take a look at this thread for the coordination of an external E-Stop with LinuxCNC
forum.linuxcnc.org/47-hal-examples/25861-external-e-stop
 

Nah estop-loop doesn't work right in practice without extra logic components either. The way it's shown in the other thread it does block the UI Estop, but the reset won't trigger until you toggle the UI button afterwards. I just didn't notice I still had iocontrol.0.emc-enable-in connected to iocontrol.0.emc-enable-in. I just needed to break that with a NC circuit. Maybe one day somebody will rework the mess that exists between halui and iocontrol estop pins. It would probably be as simple as adding 2 pins to halui to break the iocontrol loop when is-activated=true. If that loop is unused it would behave as it does now, like a toggle off a momentary switch.....That's besides the point, I figured it out.

I have not tested an external E-Stop so the colors may not stay in sync.

If they followed the same logic as the actual E-stop and Power states like the button labels do they'd be fine. You can test it easily by setting the halui.estop activate, reset and halui.machine.on pins
The following user(s) said Thank You: JT

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

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
25 Jan 2025 18:51 #319838 by blazini36
Replied by blazini36 on topic Flexible GUI

Your screen shot looks correct. I added multi state labels on the 20th, how are you updating?
JT
 

I'm downloading the deb release from the git page. It's still at 1.1.1 but is says it's been updated since then.

Looks like apt didn't update it right this time since it's still version 1.1.1, I used gdebi and now it works. I did get a wierd error about a different label already having that hal pin name but that wasn't the case. I'm not sure if that stems from the multi-state label having the same widget name as it's hal pin name or the hal pin name having underscores. I had other regular labels with a single hal pin with underscore in the name and it was fine. I just changed the underscores in the hal pin name to dashes and the error went away.

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

  • JT
  • JT's Avatar Topic Author
  • Online
  • Administrator
  • Administrator
More
26 Jan 2025 11:53 #319881 by JT
Replied by JT on topic Flexible GUI

Your screen shot looks correct. I added multi state labels on the 20th, how are you updating?
JT
 
I'm downloading the deb release from the git page. It's still at 1.1.1 but is says it's been updated since then.

Looks like apt didn't update it right this time since it's still version 1.1.1, I used gdebi and now it works. I did get a wierd error about a different label already having that hal pin name but that wasn't the case. I'm not sure if that stems from the multi-state label having the same widget name as it's hal pin name or the hal pin name having underscores. I had other regular labels with a single hal pin with underscore in the name and it was fine. I just changed the underscores in the hal pin name to dashes and the error went away.
 

I don't change the version for every addition, if I did it would be 1.1.125 LOL.

Sometimes I forget to hit the apt update button so downloading the deb and using gdebi to install will always be the latest code.

JT

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

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
26 Jan 2025 12:56 #319882 by blazini36
Replied by blazini36 on topic Flexible GUI
If it's of any use this is the HAL logic I use to operate the Estop and power buttons. "flash" is a custom blinking component I use for indicating states on my control panel. This seems to work perfectly with flex as of now. I didn't wire in the separate NC contacts for my Estop which is why the not is there, I may actually do that in the next rev.
net estop-NO-switch   => halui.estop.activate
net estop-NO-switch   => oneshot.estop.in     #Oneshot triggers reset from hardware Estop release
net estop-NO-switch   => not.estop.in
net estop-NC-switch   <= not.estop.out
net ui-estop-out      <= iocontrol.0.user-enable-out
net ui-estop-out      => and2.estop-sync.in0
net estop-NC-switch   => and2.estop-sync.in1
net estop-sync        => and2.estop-sync.out
net estop-sync        => iocontrol.0.emc-enable-in
net estop-out         => motion.enable
net estop-reset       <= oneshot.estop.out
net estop-reset       => halui.estop.reset
net estop-in          <= halui.estop.is-activated
net estop-in          => flash.estop.enable
net estop-led         <= flash.estop.out
setp flash.estop.hold-prec       false
setp flash.estop.hold-prec-inv   false
setp flash.estop.hold            false
setp flash.estop.flash-rate-ms   500
setp oneshot.estop.width         0.5
setp oneshot.estop.retriggerable false
setp oneshot.estop.rising        false
setp oneshot.estop.falling       true

##Power-On Connection
net machine-pwr-btn  => toggle.power.in
net machine-pwr      <= toggle.power.out
net machine-pwr      => halui.machine.on
net machine-pwr      => not.power.in
net machine-pwr-not  <= not.power.out
net machine-pwr-not  => halui.machine.off
net machine-pwr-stat <= halui.machine.is-on
net estop-sync        => flash.pwr.enable
net machine-pwr-stat => flash.pwr.hold
net machine-pwr-led  => flash.pwr.out
setp flash.pwr.hold-prec         true
setp flash.pwr.hold-prec-inv     true
setp flash.pwr.flash-rate-ms     500

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

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
26 Jan 2025 14:43 #319889 by blazini36
Replied by blazini36 on topic Flexible GUI
Still have some tweaking to do but I think this is about how it'll be...

 
Attachments:

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

Time to create page: 0.121 seconds
Powered by Kunena Forum