Flexible GUI
- JT
- Topic Author
- Online
- Administrator
Less
More
- Posts: 886
- Thank you received: 456
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.
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
- Topic Author
- Online
- Administrator
Less
More
- Posts: 886
- Thank you received: 456
25 Jan 2025 12:01 #319814
by JT
Replied by JT on topic Flexible GUI
Attachments:
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 952
- Thank you received: 157
25 Jan 2025 18:06 #319835
by blazini36
Replied by blazini36 on topic Flexible GUI
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.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
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 pinsI have not tested an external E-Stop so the colors may not stay in sync.
The following user(s) said Thank You: JT
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 952
- Thank you received: 157
25 Jan 2025 18:51 #319838
by blazini36
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.
Replied by blazini36 on topic Flexible GUI
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.Your screen shot looks correct. I added multi state labels on the 20th, how are you updating?
JT
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
- Topic Author
- Online
- Administrator
Less
More
- Posts: 886
- Thank you received: 456
26 Jan 2025 11:53 #319881
by JT
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
Replied by JT on topic Flexible GUI
I don't change the version for every addition, if I did it would be 1.1.125 LOL.
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.
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
Less
More
- Posts: 952
- Thank you received: 157
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
Less
More
- Posts: 952
- Thank you received: 157
26 Jan 2025 14:43 #319889
by blazini36
Replied by blazini36 on topic Flexible GUI
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.121 seconds