Advanced Search

Search Results (Searched for: )

  • RotarySMP
  • RotarySMP's Avatar
06 Apr 2026 17:27

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

I am working on a similar solution, but want to do it as a comp, since I got my comp for the turret working this weekend.

Gear ratio can be inferred from spindle speed / commanded voltage, corrected to frequency, corrected to RPM. (You are a step ahead of me there, with your vfd frequency out put).

I expect we will need a constantly changing set of PID settings, as the inertia varies over the entire speed range.

I always wondered whether the back gear can change gear with the spindle running, but it would be pretty pointless, given the huge 6.5:1 spindle speed change, so I will only trigger it stationary.
Cheers,
Mark


 
  • andypugh
  • andypugh's Avatar
06 Apr 2026 17:19
Replied by andypugh on topic W axis machine config

W axis machine config

Category: General LinuxCNC Questions

And you see the pin iocontrol.0.emc-enable-in toggling high?

Maybe something odd with the amp-fault pin for the W-axis?
joint.N.amp-fault-in
  • RotarySMP
  • RotarySMP's Avatar
06 Apr 2026 17:15
Replied by RotarySMP on topic Can't find M1 - optional stop switch

Can't find M1 - optional stop switch

Category: Gmoccapy

Yeah, I would also happily sacrifice full screen for M1.
  • andypugh
  • andypugh's Avatar
06 Apr 2026 17:15
Replied by andypugh on topic xhc-hb04 does not communicate

xhc-hb04 does not communicate

Category: General LinuxCNC Questions

There have been recent updates to the driver. Which LinuxCNC version are you using?
  • spumco
  • spumco
06 Apr 2026 17:08
Replied by spumco on topic Pico Systems Servo Controller

Pico Systems Servo Controller

Category: User Exchange

@Andypugh

If you want me to subsidize the shipping cost as a contribution to the project, just let me know.  Once you get an address to @jschulze and a shipping cost is determined, I can paypal either you or @jschulze directly.

 
  • PCW
  • PCW's Avatar
06 Apr 2026 17:03

Spindle encoder configuration (with G76 threading command and Mesa 7i96s)

Category: HAL

If you have the index connected to the 7I96S index input, then a standard
pncconf or MesaCT created hal file will have the correct connections.
  • spumco
  • spumco
06 Apr 2026 17:02
Replied by spumco on topic Lathe C axis homing

Lathe C axis homing

Category: General LinuxCNC Questions


From what I gather, logic.s0free should be an AND device, so with personality=0x105? Maybe there are other essential things there? I assume SPIN0-xx  signals are distributed in another file?

 


Yes, logic.s0free is 0x105

There are probably other essential ingredients missing from that hal file.  Best bet is for me to post my whole config...  You've got two options:
  • I can give you a slightly out-of-date version right this second.  It has all the spindle/c-axis stuff in it, OR
  • Wait until tonight and I'll give you the latest version
    • Includes a switchkins component for my separate parting slide, plus some changes that don't affect C-axis stuff
Keep in mind that either config is quite complicated, and there are still a number of functions/features I haven't finished:
- Collet closer position sensor logic/interlocks for both main and sub-spindles
- GUI view rotation for sub/main spindle work
- Other stuff yet to be discovered

Your pick.
  • Vegko
  • Vegko
06 Apr 2026 16:55
Replied by Vegko on topic Can't find M1 - optional stop switch

Can't find M1 - optional stop switch

Category: Gmoccapy

The M1 button is the one i am actually missing in Gmoccapy.
The space constraint is a hard one, everybody has other needs.
For me personally i would rather skip the full screen toggle, but a total of 11 buttons would fit as well.
 
  • andypugh
  • andypugh's Avatar
06 Apr 2026 16:54
Replied by andypugh on topic Cubic Interpolator

Cubic Interpolator

Category: General LinuxCNC Questions

This recent commit has me suspecting that it is in some way related to non-trivial kinematics.
github.com/LinuxCNC/linuxcnc/pull/3890
  • RotarySMP
  • RotarySMP's Avatar
06 Apr 2026 16:00
Replied by RotarySMP on topic Can't find M1 - optional stop switch

Can't find M1 - optional stop switch

Category: Gmoccapy

I use M1 option stops all the time, to give me time to check things on a new program before continuing to the next thing. This is still implemented on my mills old Gmoccapy installation.

Did turning on/off stops on M1 really get deleted from Gmoccapy? That would be disappointing.
  • Dudelbert
  • Dudelbert
06 Apr 2026 15:29 - 06 Apr 2026 15:33

Considering a Full Rewire on a Working Schaublin 125 CNC

Category: Turning

Today I worked on the variator.

I think I have a nice way to automate it.

The variator is set by an AC motor and has end stops at its extremes, but no way to know the current gear ratio. I have the hardware set up so the two contactors for “Go Faster” and “Go Slower” cannot be on at the same time, and they cannot be active while the corresponding end stop is triggered.

I use one of the analog outputs of the VFD to get the VFD frequency into the 7i84.

My basic idea is to use the variator to try holding the frequency of the spindle motor close to 50 Hz. The spindle PID would not be aware of this, I mean it would see the result, but the variator control and spindle PID are separate systems.

I have trouble getting the spindle PID stable even without introducing this extra error. If anyone has a rule of thumb on how to tune a spindle, I would be all ears. But I wanted to try the variator stuff anyway.

And I think it is working. I built a simple bang-bang controller, setting faster if the frequency is under a threshold and slower if it is over another. Both are reset when they cross over 50 Hz. This seems to work fine.

With how unstable the PID is at the moment, this does not really find its sweet spot, but I think the concept is sound.

I attached my current HAL and INI. This is mostly gathered from various examples. If you find any mistakes or inaccuracies that may bite me later, I would be happy about critique. The variator stuff is at the end of the custom.hal.

Thanks for reading, and happy Easter to you all.
  • ewlsey
  • ewlsey
06 Apr 2026 15:17
Cubic Interpolator was created by ewlsey

Cubic Interpolator

Category: General LinuxCNC Questions

Can someone help me understand how the cubic interpolator works? There doesn't seem to be any documentation explaining what it does. The only things I can find are for the old exact stop trajectory planner. 

As far as I can tell control.c queries the trajectory planner, runs that data through the kinematics, then creates joint->coarse_pos data and adds it to cubic.c, which is the interpolator. It seems to repeat that until the interpolator is full. 

Then it runs cubicInterpolate() which I guess takes joint->coarse_pos and interpolates it into joint->pos_cmd. 

What are the course positions and where do they come from? Are they the beginning and end of a g code move or smaller segments created by the trajectory planner?

What is the interpolator doing? It seems to be trying to create a cubic spline, but what are the way points and were do they come from? How many points does it need? 

On that note, is there something I'm missing that runs faster than the 1ms servo loop that needs position and velocity data from an interpolator?

Hopefully someone knows. The control.c program is full of comments to the effect of "this is how I think it works". 
  • jetbadger
  • jetbadger
06 Apr 2026 14:50
Replied by jetbadger on topic Lathe C axis homing

Lathe C axis homing

Category: General LinuxCNC Questions

I was not able afterall to get the C axis to behave with the previous setup. It would home and reach setpoints very well, but after going into spindle mode and back into Caxis mode it hunts for home position in almost a comical way no matter how much I played around with the PID values for the orient thingy and I couldn't wrap my head around the multiple gains for it.

I will try your config, @spumco. Ended up pretty much copy/pasting your's and atleast on the bench it starts up so I'll see if I can figure it out on the actual machine. 

From what I gather, logic.s0free should be an AND device, so with personality=0x105? Maybe there are other essential things there? I assume SPIN0-xx  signals are distributed in another file?
 
  • ewlsey
  • ewlsey
06 Apr 2026 14:49
Replied by ewlsey on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Unless I'm not understanding some fundamental concept, isn't that how it already works?

You can't cheat the actual physics. Any corner 90 degrees or less will require a nearly full stop to achieve the P tolerance. The more acute the angle, the smaller the blend radius you can have to satisfy the P tolerance, and the closer to a full stop the machine has to come.

Put another way, centripetal acceleration, jerk, snap, crackle, etc depend only on velocity and radius. If you want to follow a constant radius at a constant velocity, the acceleration, jerk, etc will be constant. Only their direction changes, not their magnitude.

The only way to reduce jerk in a corner is to reduce the velocity or increase the radius.

An option, which has been discussed earlier, is an "egg" shaped corner radius where the jerk increases to a maximum at the middle. That might be preferable since at the midpoint the jerk force is shared by both axes. You could accomplish roughly the same thing by decelerating before the radius, accelerating toward the midpoint and decelerating again before the exit.

Another option would be to permit higher centripetal jerk than straight line jerk. This would be similar to input shaping used in 3D printers.

I don't see how much can be gained here. Fancy blending algorithms will be too slow to benefit the fast machines they are intended to benefit.
  • clayton2ndtry
  • clayton2ndtry
06 Apr 2026 14:22

LinuxCNC not working with new 64-bit desktop and parallel port

Category: General LinuxCNC Questions

Searching for guidance gave me only a sensation that the parallel port might have the wrong address. Supergrok saved the day. It helped me find that the built-in parallel poets are at 0x3F8. This rang a bell from when I wrote a terminate-and-stay-resident PC-DOS (stop laughing) program that intercepted data going to the parallel port and converted Epson control codes to Postscript. It was wonderfully elegant in how it allowed programs with no Postscript support to use Apple LaserWriters

Changing one of the LinuxCNC setup files to talk to the parallel printer at 0xC010 and problem is solved.
Displaying 91 - 105 out of 17371 results.
Time to create page: 0.450 seconds
Powered by Kunena Forum