Advanced Search

Search Results (Searched for: )

  • 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,
 
  • chowderhead
  • chowderhead
18 Feb 2025 02:39
Replacing Anilam 5000M - Recomendations? was created by chowderhead

Replacing Anilam 5000M - Recomendations?

Category: General LinuxCNC Questions

I have a few stepper motor CNC routers running LCNC and just got my hands on a Republic-Lagun VBM-1000 with a wonky Anilam 5000M controller that may need replacing if I'm unable to cost effectively fix it. As this is my first foray into servos, I'm looking for advice. The mill is driven by brushed DC servos. The electrical cabinet is all Anilam, including the servo amplifiers. I'm driving the steppers on my CNC routers with Mesa 7i96's and would like to stay with Mesa, unless you all have other ideas. Please lay them on me!
  • unknown
  • unknown
18 Feb 2025 01:27

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

You commits caused somewhat of an issue. Do you think I sat on my hands and did SFA ?

I don't care about your workflow, it's not my issue. My issue was ensuring the integrity of the images.
I don't care about you trying to setup a remote desktop, that was something you decided to do. That software was outside the scope of the software needed to run a cnc machine. I don't know why people ignore using ssh.
  • AnkerFly
  • AnkerFly
18 Feb 2025 01:24
Replied by AnkerFly on topic Probe basiс and Cyrillic characters

Probe basiс and Cyrillic characters

Category: QtPyVCP

Good afternoon.
Thank you! Everything worked out for me.
I had to try different encoding options.
Displaying 19021 - 19033 out of 19033 results.
Time to create page: 0.686 seconds
Powered by Kunena Forum