Schaublin 125-CNC retrofit.

More
5 months 1 week ago #346508 by RotarySMP
Hi Rod. Since the back gear is only switched when stationary, there is no need for such feedback. logging the command is enough. Sanity check once the spindle turns and you can see the overall ratio.
The following user(s) said Thank You: rodw

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

More
5 months 1 week ago - 5 months 1 week ago #346511 by metalab
Replied by metalab on topic Schaublin 125-CNC retrofit.
This might be the point where I can give my software-expertise to this project :)

I wrote some software which simulates the spindle control behavior based on the files uploaded here 17.5.2026. I have very little understanding of actual linuxcnc, so take everything with a grain of salt. The simulator is quite crude and it's translated in python, as I do not have access to a physical LinuxCNC machine for now. I'll need some confirmation that it somehow resembles the actual behavior of the Schaublin now before I dig in further. It does look like that the pid works "ok'ish" on low gear, only a minor overshoot, but it's way off on high gear. There's some possibility that the simulator could be useful when developing a state of the art control. I would also say that no extra hardware is needed, many things can be deducted from the spindle speed, cvt end switches and the motor hz.

The thingy is now there, I did not spend too much time on it, it's also mainly vibe-coded. The translation of the .comp logic is in spindle_supervisor_model.py lines 161:582

github.com/heff3/schaublin-cvt-simulator

Easiest way to get it working is to use "uv", it's a modern python virtual environment manager (does not break your machine). AI will help with this one, but on mac the most convenient way is with "brew install uv". Brew is the most common package manager for osx.

After cloning the repository, one should be able to:
uv run python spindle_realtime_simulator.py

q - quits the application (or the usual ctrl+c)
space - starts the motor
k / j - tunes the target spindle rpm


The simulator behaves better once it has run awhile with a few toggles on/off, dunno if the real lathe behaves the same?

ALERT: The real lathe might have insufficient max rpm limit now. For example if one targets 2000rpm, the pid might overshoot it quite a lot.
Last edit: 5 months 1 week ago by metalab. Reason: Adding the code repository as I promised
The following user(s) said Thank You: NWE

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

More
5 months 1 week ago - 5 months 1 week ago #346576 by smc.collins
my best guess, shaublin just wrote a very difficult to control pid algorithm with slow speed seeking, and they had a team of engineers, and you'll notice , they got rid of the variator, sometimes the best part is no part. for my suggestion with the closed loop stepper, KEEP the existing worm gear angle driver, make a coupler and adapter slap a stepper in place of the existing AC motor. keep the acme screw and angle drive, looks doable without disassembling the machine from photos. Also my path is, 4 wires from you 2 from the psu and 2 step dirĀ  card. it doesn't need to be decimal perfect.
Last edit: 5 months 1 week ago by smc.collins.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum