Advanced Search

Search Results (Searched for: )

  • Grotius
  • Grotius's Avatar
12 Feb 2025 20:16 - 12 Feb 2025 20:17
Replied by Grotius on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

@Fabian,

Thanks for your responce.

To me it looks like eq. 40 is all about k, kappa (curvature).

Then x~``traj(s0) for example :
- This is second derivate = curvature, given the ``
- Is already transfomed, given the ~ above the x
- Is for startpoint s0.
- Is for x coordinate.

- It is the curvature kappa value for the transformed startpos?

- I now get it, that a line has no curvature, so value is : 0
- So for a arc, we just put in the curvature value like : "1/Radius" normally.  But they use eq.30 :   -1/r*cos(s/r).....etc.... Why so difficult?



I did a little play around. Nothing seriously.
We can use this little program also to validate other curves.

Setup:
2 red lines, lenght 100mm, are connected by a clothoid at xy ground plane.
The lines have a offset 100mm.
After drawing the clothoid, we know the clothoid total length.

Test:
For the first line we lift the startpoint off the plane, given the z value.
For the second line we lift the endpoint off the plane, given the -z value.
Then both lines are out off plane, they don't share any plane anymore.

Still we are able to project a clothoid on the groundplane.
In the second picture the z value of one end of the line is already z219 and z-219.

On the ground plane i projected the red 2 lines, given the yz plane. (side view)
between the 2 lines is the clothoid lenght for xy. So clothoid is streched out to straight line.
Then another algo growns the xy lenght until the 3d clothoid ends are colinear to the red lines in 3d.

 
 
 
 
  • Aciera
  • Aciera's Avatar
12 Feb 2025 20:11

Autoloading Vise - custom coding and Hal help

Category: Advanced Configuration

I took a stab at making a hal component but was having issues getting it to compile with comp. Seems like comp isnt installed ("which comp" returns nothing) running the 2.9.3 iso

Sounds like you might want to read the docs:
linuxcnc.org/docs/html/hal/comp.html
  • JT
  • JT's Avatar
12 Feb 2025 20:06
Replied by JT on topic Flashing mesa firmware

Flashing mesa firmware

Category: General LinuxCNC Questions

Where did you place the file?

Did you install Mesa CT?

JT
  • scotta
  • scotta's Avatar
12 Feb 2025 19:54

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

If not using the Flexi-HAL board, I'd recommend to use the standard remora-spi component. First step is to get a basic 3 axis configuration up and running and then add in the additional axes.

There are various config examples here:
github.com/scottalford75/Remora/tree/mai...nuxCNC/ConfigSamples
  • cakeslob
  • cakeslob
12 Feb 2025 19:53

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

dont use the flexihal configs for this, download the sample configurations from the remora github and try with those
  • cakeslob
  • cakeslob
12 Feb 2025 19:51

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I think I misread that first error,
[HAL]
HALFILE = NVEM.hal
HALFILE = qtplasmac_comp.hal
HALFILE = xhc-whb04b-6.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal.

remove the xhc-whb04b-6.hal
  • schorsch
  • schorsch
12 Feb 2025 19:51

Using A axis as second spindle with stepper motor

Category: Advanced Configuration

Hi,
I'm using linuxcnc since a while. I upgraded a few weeks ago: Now I'm using a Rpi and a MESA 7C81. I'm having 3 axis and a fixed vertical spindle motor and a separated a-axis. All 4 axes are running with stepper motors.

I'm using inventor-hsm for creating G-code which works pretty good. Unfortunately, it is very limited, when using it in connection with the A-axis. Although the software is able to unwrap a geometry I can only run it to mill out closed pocked (also when it is wrapped). Very frequently I need to reduce a diameter and there is no operation available for this. I can only do this in indexed mode (several phi-angles and slicing in z). 

Luckily the software can also produce code for turning machines, so I could create code for such a machine. The only thing I need to do is to turn on a horizontal spindle, you see my idea?

So my question: 
Is there a possibility to configure linuxcnc in such a way that I can use my A-stepper axis for running as horizontal spindle?

What I need is a G-command turning the horizontal spindle on in a certain speed and a G-command for turning it of, during the turn-on the stepper needs to run continuously. I know its a bit absurd

Georg  
  • jimmyrig
  • jimmyrig
12 Feb 2025 19:05
Replied by jimmyrig on topic Autoloading Vise - custom coding and Hal help

Autoloading Vise - custom coding and Hal help

Category: Advanced Configuration

Thanks!

I took a stab at making a hal component but was having issues getting it to compile with comp. Seems like comp isnt installed ("which comp" returns nothing) running the 2.9.3 iso. I also tried installing from git but was having the same issue. Anything special that needs to be done?

Was able to get it working by directly controlling the pins on the 7i96s with a custom M code for now but would like to get it going with a custom hal component.
#!/bin/bash

# Define HAL pins
MotorRun_PIN="hm2_7i96s.0.ssr.00.out-01"
MotorDirection_PIN="hm2_7i96s.0.ssr.00.out-02"
INPUT_PIN="hm2_7i96s.0.inm.00.input-09"

# Set the output pin high
halcmd setp $MotorDirection_PIN 1
sleep 0.5

halcmd setp $MotorRun_PIN 1
echo "Set $MotorRun_PIN On."

# Wait for the input pin to go high (true) with a timeout of 5 seconds
TIMEOUT=5
END_TIME=$((SECONDS + TIMEOUT))

while [ $SECONDS -lt $END_TIME ]; do
    INPUT_VALUE=$(halcmd getp $INPUT_PIN)
    if [ "$INPUT_VALUE" -eq 1 ]; then
        echo "Input $INPUT_PIN is true. Returning to main program."
        halcmd setp $MotorRun_PIN 0
        halcmd setp $MotorDirection_PIN 0
        exit 0
    fi
    sleep 0.05  # Small delay to avoid busy-waiting
done

# If the loop ends, the timeout was reached
halcmd setp $MotorRun_PIN 0
halcmd setp $MotorDirection_PIN 0
echo "ERROR: Input $INPUT_PIN did not go high within $TIMEOUT seconds."
exit 1  # Return non-zero to indicate an error


 
  • Millimetergott
  • Millimetergott
12 Feb 2025 19:01
Replied by Millimetergott on topic StepperOnline A6 Servo

StepperOnline A6 Servo

Category: EtherCAT

oh mein fehler, wenn man den Wald vor lauter Bäumen nicht mehr sieht
dank dir! Was muss ich in der Endstufe für Parameter ändern das diese mit dem Master kommuniziert?
 
  • beauxnez
  • beauxnez
12 Feb 2025 18:56 - 12 Feb 2025 19:07

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I installed the nvmpg component but I still have the same error with the command
sudo halcompile --install nvmpg.c.

I have a Linux Mint LMDE 6 Faye version, it may be too old?

 
  • sajurcaju
  • sajurcaju
12 Feb 2025 18:54

Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)

Category: Installing LinuxCNC

I'm trying to put LinuxCNC on Mint 22.1. I followed Beef's directions here:
iamtherealbeef.com/content/linuxcnc-on-linuxmint-22/
It all went great (much thanks), but I have an error when I run linuxcnc. Debug file info:
Missing rtapi.conf. Check your installation.
49550

Help will be greatly appreciated!
Steve
  • Esz2
  • Esz2
12 Feb 2025 18:46 - 12 Feb 2025 18:47
Replied by Esz2 on topic From Grbl to linuxcnc

From Grbl to linuxcnc

Category: General LinuxCNC Questions

So i've been tinkering a little and getting to learn the new enviroment.I have made my basic configuration of a .HAL file for linuxCNC, don't mind that the I/O pins are not defined correct in relation to my hardware.When defining the outputs i stumpled upon the .CFG file that defines for example RS-485 spindle control over modbus.I have linked the 2 files as .txt could anyone please give feedback and advice.TIA.
  • Aciera
  • Aciera's Avatar
12 Feb 2025 18:38

Autoloading Vise - custom coding and Hal help

Category: Advanced Configuration

So how would I create a pin?


Pins are created by hal components.
  • Aciera
  • Aciera's Avatar
12 Feb 2025 18:35

Autoloading Vise - custom coding and Hal help

Category: Advanced Configuration

net dout-01    => hm2_7i96s.0.ssr.00.out-01

in the line above 'dout-01' is a signal name
'hm2_7i96s.0.ssr.00.out-01' is a pin name

hence you get an error using the 'setp' command on the signal name
setp dout-01 True

Try using (note sets instead of setp)
sets dout-01 True
  • klamos
  • klamos's Avatar
12 Feb 2025 18:30
Replied by klamos on topic Handrad WHB04B-4

Handrad WHB04B-4

Category: General LinuxCNC Questions

Danke für den Hinweis. leider ohne Erfolg
Displaying 17596 - 17610 out of 21653 results.
Time to create page: 0.454 seconds
Powered by Kunena Forum