(Solved) FlexGUI - Multiple spindles?

More
17 Apr 2026 05:26 #345627 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:
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 file

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

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

More
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.

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

More
17 Apr 2026 23:01 #345662 by spumco
Replied by spumco 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.
 

Thanks Andy.  I'm trying it out for the first time now.

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.

More
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!
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
21 Apr 2026 02:13 #345794 by tommylight
Replied by tommylight on topic (Solved) FlexGUI - Multiple spindles?

Mods - please mark as 'solved'

Done, thank you.
The following user(s) said Thank You: spumco

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

More
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
The following user(s) said Thank You: tommylight, spumco

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

More
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.

More
22 Apr 2026 20:21 #345854 by JT
Replied by JT 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)
 

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...

JT
The following user(s) said Thank You: rodw

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

More
23 Apr 2026 06:30 - 23 Apr 2026 06:31 #345866 by Aciera
Replied by Aciera on topic (Solved) FlexGUI - Multiple spindles?

even though the Docs say 9

could you point out where in the docs you found that? 

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
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
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.467 seconds
Powered by Kunena Forum