Considering a Full Rewire on a Working Schaublin 125 CNC

More
16 Apr 2026 14:24 #345598 by RotarySMP
You are making great progress. Took me a year to get that far :)

I can't say why it is not working as it is, but I have no linear scales, so my homing is just the home Hal switch and then fine tuned off the motor encoder index, and that is rock solid. Could you ignore the linear scale, and home the same as mine (which I think is original Schaublin)?

Please upload some pictures of your linear encoder installations.
Cheers,
Mark

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

More
16 Apr 2026 14:33 - 16 Apr 2026 14:34 #345599 by Dudelbert
I don’t think the linear scales are at fault. I tested them over the 20 mm range of my longest indicator in 1 mm steps, and that is flawless for both axes. I also had the axis move over nearly its full range for 5 minutes at rapid speeds and then come back to the indicator, again, no measurable deviation.

To test the motor encoder directly, I would have to solder them in, and I cannot imagine that this will be better, as I already use the index from there. But if I don’t have any other options, I may as well try it.

I can make some pictures tomorrow, do you mean the mechanical installation on the machine or the wiring, or both?
Last edit: 16 Apr 2026 14:34 by Dudelbert.
The following user(s) said Thank You: RotarySMP

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

More
16 Apr 2026 14:38 #345601 by RotarySMP
I don't think you need to wire the motor encoder A and B signals in to LinuxCNC to try it. It is a standard LinuxCNC option to home to switch (Hal switch) and then to the next encoder count, which you already have wired in.

I am interested to see how they did the physical installation of the linear encoders. I considered adding them to mine, but didn't.

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

More
16 Apr 2026 14:45 - 16 Apr 2026 14:47 #345602 by Dudelbert
The previous owner installed a magnetic encoder on the X axis. I did not disassemble it, so all there is to see is a thin cable coming out.

I installed a glass scale on Z. I will make photos tomorrow, there is perfect space for it behind the X-axis motor mount. The installation was really easy.

Oh, and to “home to switch (hall switch) and then to the next encoder count” that is what I did initially. That way I got about 0.4 mm variability on X.
Last edit: 16 Apr 2026 14:47 by Dudelbert.

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

More
16 Apr 2026 15:00 #345605 by RotarySMP
Since there are two Hall sensor triggers on X, do you get the same errors homing off each?
The following user(s) said Thank You: Dudelbert

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

More
16 Apr 2026 15:03 #345607 by Dudelbert
Oh, I had forgotten about that. I will try if that works. Thanks for the idea.

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

More
17 Apr 2026 18:17 #345648 by Dudelbert
So,

I have a great update. I got the machine working. Using the X-minus hall switch did not do the trick. Testing everything that I already thought was not the problem gave me the solution. The magnetic linear encoder in the X axis was the problem.

I did most of the testing of it at low speeds and short distances, as my indicators obviously cannot measure the length of the full axis. I can remember doing a test running the whole axis at rapid speed for multiple minutes, but I may have done this only on Z, it was two weeks ago. Or it got worse somehow, I don’t know.

In the end, using the motor encoder resolved all the problems.

I also disassembled the X axis to see how the encoder is installed. There is a very small read head in the plate behind the thrust bearing for the ballscrew and a putted scale in the underside of the X-axis slide.

I also made some pictures of the Z-axis encoder.

And then, after I spent all day getting this done, I was able to actually make op 1 on the test parts I wanted to make as test parts.
The following user(s) said Thank You: tommylight

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

More
17 Apr 2026 20:27 #345656 by andypugh
If I was trying to retrofit the Schaublin I think I would take an approach like this:

1) Use one PID to operate the variator, Use this as the main speed control.
2) Use a second PID to control the VFD, but have this set up to default to 50 (or 60) Hz when disabled. The pid component appears to set the output to zero when disabled, so you might have to use sum2 to add on 50Hz / 3000rpm / whatever to the output.

Then the idea would be to use the variator for speeds inside it's operable range, but then enable the VFD PID to extend that range when the variator is on the end-stops.

Incidentally, the PID gains are full HAL pins. The "lincurve" compoinent was written to allow for dynamic gains to be fed into the PID, if you did need to tune differently for different gears.

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

More
17 Apr 2026 20:32 #345657 by andypugh
The trick to freeze the VFD PID when not on the limits might be to set maxerror to a very small number (actually = 0 means "no limit") using a mux component.

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

Moderators: piasdom
Time to create page: 0.136 seconds
Powered by Kunena Forum