Advanced Search

Search Results (Searched for: )

  • my1987toyota
  • my1987toyota's Avatar
18 Feb 2025 10:39
Replied by my1987toyota on topic The dumification of humanity through internet

The dumification of humanity through internet

Category: Off Topic and Test Posts

 And in other dumification news we have this . I am sure a Nigerian prince is ready to export all over the world
for a small transaction fee that will be reimbursed once you receive the vehicle.
enjoy
 
  • Thayloreing
  • Thayloreing
18 Feb 2025 10:33
Replied by Thayloreing on topic Remora - ethernet NVEM / EC300 / EC500 cnc board

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Should I just download the bim from pyodc and put it in stlink v2 and after that I will be able to record remora on nven? Could you detail me step by step?
  • Aciera
  • Aciera's Avatar
18 Feb 2025 10:23
Replied by Aciera on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

I guess we could simply calculate the length of our 3D residual vector and pass that back as the error value to be minimized.
  • vre
  • vre
18 Feb 2025 10:14
Replied by vre on topic Can the OPI5 be Configured to Run LCNC?

Can the OPI5 be Configured to Run LCNC?

Category: Computers and Hardware

Very nice this will be perfect for base thread.
The pin header that has the board can drive 4 close-loop steppers ?


(i have a rockpro64 any hope for this for an image with preempt-rt kernel?)
  • Aciera
  • Aciera's Avatar
18 Feb 2025 10:10 - 18 Feb 2025 10:12
Replied by Aciera on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

yes, eq 14 :
 

because we set s1=s2=s3=s4 we need to integrate from 0 to 4*s1.

It's still unclear to me how dogleg optimizes a system of 3 equations as it would not get back a single residual value but rather a vector with 3 residual elements.
 
  • Grotius
  • Grotius's Avatar
18 Feb 2025 09:48
Replied by Grotius on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

@Arciera,

Thanks for your responce.

Indeed, the error is likely the endpos. I was thinking the same yesterday night.

error = distance "requested endpos" - "guess endpos"

When playing with different Y11, 21 gues values using the same length s1:
Changing the guess values Y11, Y21 will influence the rigid of the clothoid compound.

Picture values from left to right :      
Y11=1 Y21=1
Y11=0.5 Y21=0.5
Y11=0.1 Y21=0.1
 

Now i will try to setup the dogleg method. Using our new criteria.

The Jacobian usage seems to be more effiecient in finding the solution. But without is also no problem and
will result in more iterations to find the fit solution.

Your point at eq44 if solved here as a example : eq14
This eq14 is not a optimized function yet.  And for calculating the clothoid endpoint, i want to make a
few one liners today.

Plan :
1. Create a function to calculate the spline endpoint efficient, using y11, y21, s1.  Eq14 current code is not effiecient for this.
2. Create a Dogleg fit function to optimize y11, y21, s1 values that the spline compound fit's the given endpoint. (Magic function).

For info, to be aware off:
In linuxcnc we use G2,G3 as helix. This abstact isn't taking account of helixes. Only flat arc's for input,
We will create a solution that uses a end vector of any type of curve.

For info:
Deepseek is better in reading pdf files than Chatgpt.
Also the code example from Deepseek are better.
So i often just upload the clothoid_3d.pdf to deekseek and start asking questions.
This really helps the process. Deepseek just throw's out a full dogleg c implementation. It's amazing.

Let's hope the Magic Function will find the solution for endpos.
  • unknown
  • unknown
18 Feb 2025 09:15

(LPT) Debian 12 Latency spikes/unexpected real time delay. Looking for solution.

Category: General LinuxCNC Questions

Using any Mesa hardware means you don't need a base thread, you only need a servo thread. The latency/jitter figures are far more relaxed with Mesa hardware.
Just some examples of what kind of hardware is ok with Mesa.

If you are happy with the 2 Port system and don't want to rewire everything, a 7i92T with the right firmware is just a matter of unplugging the cables from the breakout board from the LPT ports and plugging the cables into the 7i92T. 7i92T is some what cheaper and can be later upgraded with a 7i76 card.

J3355B-ITX (replaced by the H2 Plus due to space constraints)
Dual-Core Processor J3355 (up to 2.5 GHz)

Odroid H2 Plus (my current choice)
Intel Quad-core processor J4115 (14nm) with 4MiB Cache, up to 2.5Ghz(Single Thread) or 2.3Ghz(Multi Thread)

Lenovo M72E (found this one on the side of the road on a council cleanup)
With i5 3470
Quad core

All work fine with Mesa Etherent cards.

RPi5 works fine with Mesa Ethernet cards and SPI cards. 7c80, 7c81

The above Lenovo and J3355B work fine with Mesa cards that work with EPP interface. 7i90

Honestly I haven't heard of any issues with Debian Bookworm and Mesa cards, where the issue can raise it's head is with some realtek cards, but this is far easier to fix that any latency issues.

Samba is quite easy to setup, these is a plugin that MX Linux has that allows right clicking on a folder and sharing it via samba. No messing around with editing files. The only thing that is required is create a samba user that you then use to connect the share with on the windows Box.

To show the difference that not having a base script.You'll see quite a difference in the figures.
latency-histrogram --nobase
latency-histogram
  • Aciera
  • Aciera's Avatar
18 Feb 2025 08:52
Replied by Aciera on topic problem reading ini file xhc-hb04-cfg

problem reading ini file xhc-hb04-cfg

Category: HAL

could you post the exact error message?
  • 3404gerber
  • 3404gerber
18 Feb 2025 08:30

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Thanks for sharing. I did investigate reading the device tree when working on the RP1 driver but took the easy path so as to focus on the DesignWare SPI side of things. Looks like I'll need to rework the board detection. At least the Mesa code will be a great starting point.
 

You actually did an amazing job on the DesignWare SPI and I can't thank you enough for it!
  • Aciera
  • Aciera's Avatar
18 Feb 2025 08:28
Replied by Aciera on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

Looking at the readme in the dogleg library:
github.com/dkogan/libdogleg?tab=readme-ov-file

It seems that we might want to start with 'dogleg_optimize_dense' or 'dogleg_optimize_dense2' as these calls don't expect a Jacobian.

 

'p' would be a vector with 3 elements [gamma_1,1, gamma_2,1, s_1] containing our initial guesses when calling and the optimized results in the end.

'Nstate' = 3

'f' would be the system of 3 equations in the last post. This is where I'm stuck at the moment.
 
  • denhen89
  • denhen89's Avatar
18 Feb 2025 07:53

(LPT) Debian 12 Latency spikes/unexpected real time delay. Looking for solution.

Category: General LinuxCNC Questions

(Debian 12,   2 Parallel port cards / 2 BOBs,   isolcpus=5,     bios settings are correct - as they worked perfectly on wheezy)
Hello,
i have already wrote a thread a couple of month ago about my problems since debian 12.

I upgraded from 2.8 (wheezy) to 2.9x on Debian 12, just because i could not anymore connect to OneDrive, not even through website and upgrading browser did not help. (i am using 2 BOBs and 2 LPT cards for this CNC XYYZ Router machine)
Current Base thread: cant get it below 28.000 intervall and jitter is below 8000

I thought that i managed to get it to work properly, but with slower Axis speeds due to higher latency. A couple days ago i had to cut suspension mounting plates for my car project and found out that the Y-axis (2 motors on Y) is loosing steps. Yesterday i have tried hundreds of different BIOS settings for about 7h (mainly cpu/ram settings), but i always loaded the same G code, not trying other codes (so maybe the code is making problems?), but after stopping the code midway or when the program ends, i see that the Y Axis has lost steps when going to Y0, X0.

Now i am looking for a solution that does not require a lot of time, because to be honest, i have enough of fixing linux problems.
1 Solution (best for me): Fix the Latency problems and continue to use the same pc.
- my last hope might be the IRQ Script, but i remember i have tryed to make it work but couldnt and also i am not sure if that script is only for people who use e.g. a Mesa Ethernet card.

2. Buying a different PCone that works with good latency on Debian 12 without latency problems
- if you have Debian 12 or any other newer Debian (where OneDrive works) with good latency then PLEASE let me know your exact Hardware!!!

3. Buying a Mesa 7i76e:  will that solve the latency problems on Debian 12?
- i am ready to go that route if that will solve the problems, but i dont see the sense of doing it if people have also problems with Mesa cards on Debian 12.

4. Going back to Wheezy: 
100% solves the latency problems, but this means i need to use again a USB stick for gcode files, because OneDrive does not work on wheezy. (not through browser and not through installed/setup OneDrive because its not supported anymore)

In about 1-2 hours i go to my workshop and the first thing i try is to start a different G-Code and then check if the Y-Axis looses steps. If it does, then the next thing i will try is the IRQ Script, but as i wrote earlier, i am not sure if thats just for people with Mesa cards.
If the script will be "active" but not fix the problem, then i will shut down the pc, do other things and hope that someone here has a solution. 

If i would knew that a Mesa 7i76e would fix the problems, then i believe i would have already ordered it on yesterday, but i dont see the sense of doing so if i still need to fix some IRQ problems, especially when it costs almost 300 €.

Thanks in advance for your help.
  • Aciera
  • Aciera's Avatar
18 Feb 2025 07:40 - 18 Feb 2025 08:14
Replied by Aciera on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

Basicly eq44 is not ok. It should return a error value, then dogleg can optimize

I guess the error is in the end position (se)

I don't understand yet, how to get the clothoid compound to fit the given end point.

In my opinion that is what the dogleg is supposed to work with:
 

subtract the right side from the left we get 3 equations :

x_traj(s0) + integral_term - x_traj(se) = 0
y_traj(s0) + integral_term - y_traj(se) = 0
z_traj(s0) + integral_term - z_traj(se) = 0

However I don't know how to calculate the integral_terms in the algorithm.


Also we need dogleg to solve for 3 unknown variables using the system of 3 equations above which it apparently can do but I have no idea how to set that up.
  • jefsaro
  • jefsaro's Avatar
18 Feb 2025 07:17
problem reading ini file xhc-hb04-cfg was created by jefsaro

problem reading ini file xhc-hb04-cfg

Category: HAL

Bonjour a tous ,
je viens d 'installer linuxcnc 2.9.4,apres quelques heures de recherche sur le forum ,je ne trouve pas la solutions avec xhc-04, j 'ai toujours le probleme reading ini file.
 pouvez vous m 'aider .
 bonne journee
 jf
 
  • MohammedSobh
  • MohammedSobh
18 Feb 2025 06:28
Creating pulses through parallel port was created by MohammedSobh

Creating pulses through parallel port

Category: General LinuxCNC Questions

Hi everyone 
Iam traying to control nema17 with tb6600 motor driver through my parallel port using python this is my code:
 
import hal
import time
import subprocess


class CNCController:
    def _init_(self):
        self.comp = hal.component("cnc_control") # Create HAL component
        self.comp.newpin("x-step", hal.HAL_BIT, hal.HAL_OUT)
        self.comp.newpin("x-dir", hal.HAL_BIT, hal.HAL_OUT)
        self.comp.ready()
         # Load HAL real-time thread # Start the HAL thread
        subprocess.run(["halcmd", "loadrt", "threads", "name=cnc_thread", "period=1000000"])
        subprocess.run(["halcmd", "addf", "cnc_control.step_x", "cnc_thread"])
        subprocess.run(["halcmd", "start"]) # Connect step pin to parallel port
        subprocess.run(["halcmd", "setp", "stepgen.0.stepspace", "0"])
        subprocess.run(["halcmd", "setp", "stepgen.0.steplen", "0"])
        subprocess.run(["halcmd", "setp", "stepgen.0.maxvel", "37.5"])
        subprocess.run(["halcmd", "net", "x-step", "cnc_control.x-step", "=>", "parport.0.pin-01-out"])
        subprocess.run(["halcmd", "net", "x-dir", "cnc_control.x-dir", "=>", "parport.0.pin-14-out"])
        print("HAL Component Ready!")
    def load_hal_file(self,file_path):
        with open(file_path, 'r') as file:
            for line_num, line in enumerate(file, 1):
                line = line.strip()
                if not line or line.startswith("#"): # Ignore empty lines or comments
                    continue
                print(f"Loading line {line_num}: {line}")
                try: # Run the halcmd command
                     result = subprocess.run(["halcmd", "source", file_path], capture_output=True, text=True) # Check if there's an error output
                     if result.returncode != 0:
                         print(f"Error in line {line_num}: {result.stderr}")
                except Exception as e:
                    print(f"Exception while processing line {line_num}: {e}")
    def step_x(self):
        """Toggle step pin using real-time HAL. """ the problem is here even if there is no time the motor move slow 
        self.comp["x-step"] = True
        time.sleep(0.000001)
        self.comp["x-step"] = False
        time.sleep(0.000001)

if _name_ == "_main_":
    cnc = CNCController()
    cnc.comp["x-dir"] = False
    while True:
        cnc.step_x()
The problem is the motor is moving so slow even if i change the time.sleep between pulse on and off
  • xenon-alien
  • xenon-alien's Avatar
18 Feb 2025 05:56 - 18 Feb 2025 06:02
Replied by xenon-alien on topic Carousel with step motor

Carousel with step motor

Category: Advanced Configuration

Finally I did it! ( here is a short video )
But now i receiving a message, when loading a new program. (i think it's from the remap - toolchange.ngc, but don't understand why...)
Can anyone help, or give an advice, how to fix this?
Here is my config and screen.
 

File Attachment:

File Name: Dilaton_ATC.rar
File Size:25 KB
Displaying 16426 - 16440 out of 20851 results.
Time to create page: 0.388 seconds
Powered by Kunena Forum