Advanced Search

Search Results (Searched for: )

  • endian
  • endian's Avatar
01 Apr 2025 18:14
Variable PID deadband was created by endian

Variable PID deadband

Category: Advanced Configuration

Hello Gentlmen, 

Have anybody knowledgement if pid.xxx.deaband should be variable depends at actual command speed over some component stuf ... with some linear character? I am thinking about it some time...

regards E....
  • ihavenofish
  • ihavenofish
01 Apr 2025 16:55
Replied by ihavenofish on topic Brother carousel encoders

Brother carousel encoders

Category: CNC Machines

It's 24v. ill have to dig for the pinout.
  • DauntlessA
  • DauntlessA
01 Apr 2025 16:40
Replied by DauntlessA on topic linuxcnc scurve motion planner

linuxcnc scurve motion planner

Category: General LinuxCNC Questions

Fabian,
Yes, I agree that overfitting doesn't exactly describe what is happening.

I was meaning to post some additional info I found on this. It's one of Raph Levien's blog post on fitting cubic Bézier curves, (specifically in the section on the solutions for quartic polynominals):
raphlinus.github.io/curves/2021/03/11/bezier-fitting.html

My understanding is that in his case, the degree of the curve (in this example quartic) and the fact that there are two parameters (x-moment and signed area) leads to four minimal solutions that the solver could converge to (not infinite solutions, luckily!). I believe that in Raph's case, three of these will be local minima and only one will be the global minimum, so we cannot be certain of converging to the global minimum if we start at a random position in the parameter space, as you said.

Raph says that one of these solutions (when optimising for x-moment and signed area) may contain a loop. This is a valid solution to these parameters because the area inside the loop has the opposite sign to the outside, so the signed area is still minimised.

Raph says that you can generally reject this solution as the arm length is longer than the others. But my understanding is that you can only do this by calculating multiple solutions and rejecting the one with the extreme arm length. You can only do this if you obtain at least two solutions, and even then both may have issues.

What might be happening is that you're regularly converging to a non-global minimum, but normally it's so similar to the global minimum that it isn't evident in the result. It's only when you converge to the solution with the extreme arm length that you notice an issue.

Grotius,
I think your method of fixing this by applying a tiny offset worked because it meant that the the loop was no longer complete so its signed area was a lot larger. Although likewise, adding this offset could technically break a curve which would have worked without it? But that's most likely an edge case.

Also, slightly off-topic, but there might also be instances where this loop with the extreme arm length is the solution the user intended. For example, the intended path did have this loop, but under-sampling in the CAM software means that points are missing which should explicitly indicate the presence of the loop. But since this information is missing, it's probably better to treat this as a bug, and reaffirm that the trajectory planner may choose a solution which doesn't match the path you intended. The way to get around this is to increase your sampling frequency in your CAM software.

Back on topic, the way I see it is that the most rigorous way to solve this problem is to start from enough locations in the parameter space that you obtain all (or some) of the local minima, meaning you can be certain of having found the global minimum (or be sure enough of being close to it). But this is computationally expensive and harder to predict how long it will take to return its output.

So it's probably better to find shortcuts which make you more certain that if you converge to a single value, it's good enough even if not the global minimum. I think the idea you mentioned of initially fitting lower-order curves should help with this.
It also seems that using the gradient descent method along with the appropriate number of parameters will increase this probability of you finding the global minimum.
But I understand that some of these solutions are antagonistic to making the solver work fast, even if it is in a separate thread.
  • Grotius
  • Grotius's Avatar
01 Apr 2025 15:34
Replied by Grotius on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Hi Rod,

The packages up to 200mb can be uploaded to codeberg. No problem.
The scurve is 63mb, it will fit.

The thing is, i always use rip-installations. So my whole mindset is up to a git clone.
Before making a .deb for you all. I have to make a list where what to install.
As i understand your installation path is like /usr/local/ or /usr/
And also the lcnc source need to be recompiled. If files are spread around,
it will be hard to recompile the source.

But i have no oversight now. Maybe first unpack a linuxcnc .iso and look wherer the
files are stored.

It's also not easy to modify the lcnc original make file, because it will not accept .cpp files for compilation.
Otherwise i could just copy all in, and edit the original makefile, and done!

Rodw, what's your idea about this? I am still positive, no problem.

 
  • Grotius
  • Grotius's Avatar
01 Apr 2025 15:21
Replied by Grotius on topic linuxcnc scurve motion planner

linuxcnc scurve motion planner

Category: General LinuxCNC Questions

Hi Fabian.

In the mean time i experimented with clothoid used for motion. This includes 2 attached clothoids for example.
Now the problem is not the ceres solver, the iterations, or the initial guess value. All these are ok.
It takes about ~12 iterations to fit the clothoid.

There are certain gcode files that have very short segment attached to longer segments under 90 degree angle.
Then the trim algo trims both segments given the P value. But the very short segment is trimmed less then the longer segment.
The clothoid result is valid, however it path can be into the workpiece.

Soon i will show a picture how this looks like. I think the solution lies in even trimming to both segments in some cases, or in all cases.
The solution is therefore quite simple.



 
  • langdons
  • langdons
01 Apr 2025 14:16

Long initialization of Ethercat on servo drive SV660N

Category: EtherCAT

Is it connected via a direct cable, or does it go through a router/switch/splitter of some sort?

What is the ethernet speed?

Post `ethtool <interface ID>`
`<interface ID>` can be found with `ip a`
  • langdons
  • langdons
01 Apr 2025 14:12
Replied by langdons on topic More economic European shipping

More economic European shipping

Category: User Exchange

ems.post?

"Snail mail" DHL.

DHL Worldwide Express is awesome!

Bankok to Toronto in as little as 50 hours and their web portal is pretty good.

(FedEx has a 99% useless website)
  • Dedeer
  • Dedeer
01 Apr 2025 13:39

Possible retrofit of a Körner Magic550 CNC Machine

Category: CNC Machines

More photos ,this time the Heidenhain servos and the Creativtec.drives. 
  • Philip Lydin
  • Philip Lydin
01 Apr 2025 13:23
Replied by Philip Lydin on topic Absolute encoder homing

Absolute encoder homing

Category: General LinuxCNC Questions

File Attachment:

File Name: ini.txt
File Size:3 KB

File Attachment:

File Name: hal.txt
File Size:8 KB
  • FabianB
  • FabianB's Avatar
01 Apr 2025 13:10
Replied by FabianB on topic linuxcnc scurve motion planner

linuxcnc scurve motion planner

Category: General LinuxCNC Questions

Hi Grothus,

always impressive how fast you make progress here.
Did you have a closer look at the problem you called "overfitting"? It looks not like classical overfitting (this usually descibes if a fit follows the data much to closely and therefore follows statiscal fluctuations instead of the desired data trend).
In your case it just found a local minimum during fitting instead of the global minimum. Doing a 360 or creating this sort of step in the corner is a viable solution that is quite smooth etc. it is just not the solution we want.
One possibillity to avoid this would be to somehow create a better initial guess before the fitting starts. This could also reduce the iterations/time needed for fitting. Another possibillity might be to use a different solver.

Best regards,
Fabian
  • B1gJ1mmy
  • B1gJ1mmy
01 Apr 2025 12:53

Yet another LinuxCNC noob with a PCI card as Port1 issue.

Category: General LinuxCNC Questions

yeah the way it is setup at the moment The PC is on a hinge under the table of the CNC and swings down for service. This means I can use the space under the table to store things. The box with power supplies and breakouts also swings down.

However the pc and the power supply box are very close together on the IO side of the PC and as the CNC machine is half finished I cant lock the power supply box out of the way(I will be able to do this when its done). It impacts my ability to work on the PC . I can detach the PC but it is a massive pain and I theory I shouldn't need to. I have already done a motherboard swap with the PC in it's service position without issue.

Obviously It did impact my ability to troubleshoot. if I just swapped the cables all would have been solved. I swapped everything else I didn't expect that a cable that I had tested for continuity was an issue.
  • B1gJ1mmy
  • B1gJ1mmy
01 Apr 2025 12:32

Yet another LinuxCNC noob with a PCI card as Port1 issue.

Category: General LinuxCNC Questions

yes the cable goes one to one for every pin. I re-tested it tonight confirmed all pins go straight through. Is this normal? As far as I know it should be? Serial cables should flip Rx to Tx as far as I'm aware.
  • Routerworks
  • Routerworks
01 Apr 2025 12:23
Replied by Routerworks on topic Need help setting up XYYZA for stepper motors

Need help setting up XYYZA for stepper motors

Category: General LinuxCNC Questions

Ok, I'll try it.
Are you saying I can use 1 stepgen and connect it to 2 drivers in the HAL file?  This is different that physically wiring the one output to two drivers.  This sounds better if it will work as I can't be sure 2 stepgen signals driving the same axis are in phase with eachother.
Thanks, I'll let you know what happens.
  • unknown
  • unknown
01 Apr 2025 11:57
Replied by unknown on topic The dumification of humanity through internet

The dumification of humanity through internet

Category: Off Topic and Test Posts

I'm going to put my hand up for dumbness.

Designed a PCB using 0603 caps & resistors........stupid me didn't change the pad size to suit hand soldering. Luckily it was only like $6 or $7 dollar mistake.

Thought about building a PnP machine......last thing I need is another side project.
  • emcPT
  • emcPT's Avatar
01 Apr 2025 11:53 - 01 Apr 2025 11:53
More economic European shipping was created by emcPT

More economic European shipping

Category: User Exchange

Good morning.
We established a cooperation with UPS for truck/road transport what hopefully will reach more destinations with a lower cost.
Unfortunately is only valid for shipments inside the Euro zone.
For outside the eurozone we currently we only offer DHL express - that works very good, but not inexpensive.

We currently have almost all Mesa boards - linuxcnc related - in stock
Displaying 361 - 375 out of 26762 results.
Time to create page: 0.602 seconds
Powered by Kunena Forum