Advanced Search

Search Results (Searched for: )

  • 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
  • Tniejadek
  • Tniejadek
18 Feb 2025 05:41
Replied by Tniejadek on topic hot wire cutting

hot wire cutting

Category: General LinuxCNC Questions

At the moment the sensor is not connected in any way because it did not work for me under e-stop, I had to have at least a minimum current in the wire at all times, even when stationary.
The high signal from the sensor activates the relay so I can give any signal.
The machine is supposed to stop, because often when it breaks the wire sticks to the material and pulls it.
 Apart from the movement of the wire frames, the machine does not make any other movements.
I wanted to associate this control with the M3 code because my G-code generator allows quick passes past the material without heating the wire.

Translated with DeepL.com (free version)
  • onceloved
  • onceloved's Avatar
18 Feb 2025 05:17

Vscode gcode highlight and formatter, with subroutine support

Category: O Codes (subroutines) and NGCGUI

Does it not support the .ngc extension? .ngc is the extension used by subroutines.
  • tftmarco0
  • tftmarco0's Avatar
18 Feb 2025 03:53

Tried every net solution for days to install linuxcnc

Category: Installing LinuxCNC

Thanks again for your help Rodw, It is nice to know that there are people like you that know this stuff and can answer the difficult questions.
  • rodw
  • rodw's Avatar
18 Feb 2025 03:45

Tried every net solution for days to install linuxcnc

Category: Installing LinuxCNC

Great you are under way! We don't usually add a root user and use sudo to access anything as root
To install software with apt, you would log in as root and skip typing sudo.
Point 10 of my document outlines how to add your user to the sudoers group
docs.google.com/document/d/1jeV_4VKzVmOI...diY/edit?usp=sharing
  • tftmarco0
  • tftmarco0's Avatar
18 Feb 2025 03:18

Tried every net solution for days to install linuxcnc

Category: Installing LinuxCNC

The LinuxCNC was not pre-loaded, with Debian 13/ trixie new install.

sudo apt update
and
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev

Were not allowed in any of the 4 terminal options under system tools. The sudo command fails because when it asked for my password, it would not accept any input. The cursor did not move and no “******” to hide input were created.

[sudo] password for “username”:



The return or response after typing in the correct password anyway was…

“username” is not in the sudoers file,

Anybody know why this is happening?

Solution found! This worked for me...

“When you installed Debian, did you set a root password? If so, sudo might not be installed. If it’s a fresh install and you’re not too sure of what you’re doing, I’d do a clean install but this time supplying no root password when asked. It’ll ask for a sudo username and password and disable root login. “
  • DougM
  • DougM
18 Feb 2025 02:40
CamBam 3D profile 2-way passes? was created by DougM

CamBam 3D profile 2-way passes?

Category: Post Processors

I've been using CamBam forever, but am just now graduating from 2.5D to 3D and it's going really well.

The forum, on the other hand, is a bit of an issue.  I can't get past the robot tester, which keeps showing me pictures which I dutifully click on, then tells me that the letters I entered aren't correct.

To my question.  I have a very large series of fine passes on my 3D profile, and it works great - very nicely cuts the piece but every time it makes a pass it cuts left to right, then jumps out, goes all the way back to the left, plunges and makes the next cut. 

Is there a way to tell it to make a LR pass, then the next pass RL, etc. so I can save time?

Thank you,
 
Displaying 18826 - 18840 out of 19194 results.
Time to create page: 0.435 seconds
Powered by Kunena Forum