(Solved) FlexGUI - Multiple spindles?
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2050
- Thank you received: 845
17 Apr 2026 05:26 #345627
by spumco
(Solved) FlexGUI - Multiple spindles? was created by spumco
Starting to set up spindle status displays in Flex and ran in to a snag.
The documentation isn't explicit about how to reference multiple spindles, but I'm guessing the "0" in dynamic property like spindle_speed_0_lb is for [SPINDLE_0].
Problem 1 - spindle_actual_speed_lb doesn't reference a particular spindle. Oversight in documentation, or was this not set up for multiple spindle encoders? Document also has this note:
So I'm not sure if I should use the spindle_actual_speed_lb, or just set up a HAL float label.
Problem 2 - document indicates Flex looks for [SPINDLE_0]:
What about other spindles? I've got three spindles on my lathe (main, sub, live-tool), and (theoretically) all three could be running at the same time.
I can probably muddle through using HAL labels and so forth, but was wondering if there's a built-in set of spindle connections I'm just not seeing.
Thx
The documentation isn't explicit about how to reference multiple spindles, but I'm guessing the "0" in dynamic property like spindle_speed_0_lb is for [SPINDLE_0].
Problem 1 - spindle_actual_speed_lb doesn't reference a particular spindle. Oversight in documentation, or was this not set up for multiple spindle encoders? Document also has this note:
NoteTo get actual spindle speed you need to connect the spindle encoder to an encoder component and use the encoder.N.velocity-rpm float out connected to a HAL float label.So I'm not sure if I should use the spindle_actual_speed_lb, or just set up a HAL float label.
Problem 2 - document indicates Flex looks for [SPINDLE_0]:
On start-up, Flex will check for the following items in the [SPINDLE_0] section of the .ini fileWhat about other spindles? I've got three spindles on my lathe (main, sub, live-tool), and (theoretically) all three could be running at the same time.
I can probably muddle through using HAL labels and so forth, but was wondering if there's a built-in set of spindle connections I'm just not seeing.
Thx
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19852
- Thank you received: 4633
17 Apr 2026 19:27 #345652
by andypugh
Replied by andypugh on topic (Solved) FlexGUI - Multiple spindles?
Spindles are typically controlled through the NML interface by the GUIs, so if the GUI doesn't support multiple spindles you might have to use MDI to turn on and off the auxilliary spindles.
THat said, flexgui is mane to be flexible, so maybe there is suopport?
I haven't used it yet.
THat said, flexgui is mane to be flexible, so maybe there is suopport?
I haven't used it yet.
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2050
- Thank you received: 845
17 Apr 2026 23:01 #345662
by spumco
All machine functions are already handled with hardware controls; I just want displays for all three spindles. The only on-screen control which could cause machine movement of any type will be an MDI 'run' button.
I'm guessing FlexGUI is new enough that @JT hasn't had anyone bugging him about outlier configurations much.
Replied by spumco on topic (Solved) FlexGUI - Multiple spindles?
Thanks Andy. I'm trying it out for the first time now.Spindles are typically controlled through the NML interface by the GUIs, so if the GUI doesn't support multiple spindles you might have to use MDI to turn on and off the auxilliary spindles.
THat said, flexgui is mane to be flexible, so maybe there is suopport?
I haven't used it yet.
All machine functions are already handled with hardware controls; I just want displays for all three spindles. The only on-screen control which could cause machine movement of any type will be an MDI 'run' button.
I'm guessing FlexGUI is new enough that @JT hasn't had anyone bugging him about outlier configurations much.
Please Log in or Create an account to join the conversation.
- spumco
- Offline
- Platinum Member
-
Less
More
- Posts: 2050
- Thank you received: 845
21 Apr 2026 01:47 #345793
by spumco
Replied by spumco on topic (Solved) FlexGUI - Multiple spindles?
Mods - please mark as 'solved'
Looks like JT updated FlexGUI for multiple spindles on GH a few hours ago.
Can't wait to update and have a go at it!
Looks like JT updated FlexGUI for multiple spindles on GH a few hours ago.
Can't wait to update and have a go at it!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21503
- Thank you received: 7330
21 Apr 2026 02:13 #345794
by tommylight
Replied by tommylight on topic (Solved) FlexGUI - Multiple spindles?
Done, thank you.Mods - please mark as 'solved'
The following user(s) said Thank You: spumco
Please Log in or Create an account to join the conversation.
- JT
-
- Away
- Administrator
-
Less
More
- Posts: 1088
- Thank you received: 576
22 Apr 2026 12:12 #345837
by JT
Replied by JT on topic (Solved) FlexGUI - Multiple spindles?
Just completed the multiple spindle update to Flex GUI. It now fully supports all 8 spindles and yes I said 8 even though the Docs say 9 if you try and configure 9 you get an error.
JT
JT
The following user(s) said Thank You: tommylight, spumco
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11862
- Thank you received: 4022
22 Apr 2026 20:18 #345852
by rodw
Replied by rodw on topic (Solved) FlexGUI - Multiple spindles?
You did include spindle 0 in your tests? That's the ninth, (should be numbered from 0 to 8)
Please Log in or Create an account to join the conversation.
- JT
-
- Away
- Administrator
-
Less
More
- Posts: 1088
- Thank you received: 576
22 Apr 2026 20:21 #345854
by JT
JT
Replied by JT on topic (Solved) FlexGUI - Multiple spindles?
Of course I used spindle 0 it's the default spindle and yes they should be numbered 0-8 but if you configure 9 spindles LinuxCNC will not load and has an error. Spindle 0 is the first not the 9th...You did include spindle 0 in your tests? That's the ninth, (should be numbered from 0 to 8)
JT
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4690
- Thank you received: 2097
23 Apr 2026 06:30 - 23 Apr 2026 06:31 #345866
by Aciera
Seems to be correct here:
linuxcnc.org/docs/html/examples/spindle.html
Replied by Aciera on topic (Solved) FlexGUI - Multiple spindles?
could you point out where in the docs you found that?even though the Docs say 9
Seems to be correct here:
linuxcnc.org/docs/html/examples/spindle.html
Attachments:
Last edit: 23 Apr 2026 06:31 by Aciera.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21503
- Thank you received: 7330
23 Apr 2026 06:49 #345867
by tommylight
Replied by tommylight on topic (Solved) FlexGUI - Multiple spindles?
I was wondering the same thing, i recall being 8 back when multiple spindles were implemented.
Please Log in or Create an account to join the conversation.
Moderators: JT
Time to create page: 0.121 seconds