Advanced Search

Search Results (Searched for: )

  • frosted_jono
  • frosted_jono
12 Feb 2025 20:22 - 12 Feb 2025 20:26
Bad character U. was created by frosted_jono

Bad character U.

Category: AXIS

Hey,

I am completely new to CNC and linux so forgive me for the dumb question.

I have a CNC lathe (Emco compact 4) with LinuxCNC and I have an issue issue with my gcode.

I posted my CAM in fusion 360 using the LinuxCNC Lathe post processor. When I load the g-code into LinuxCNC on my lathe i get an error Bad character 'U'. From what I can tell it's becasue of G28 U0? Should it be X0 instead of U0? Likewise for W0 should be Z0? Can i just change the code to this and run it? Why does Fusion 360 create U and W axis instead of X and Z? Have I set something up incorrectly in CAM? Or is it the incorrect post processor? Or something wrong with my machine's LinuxCNC? Pasted my code below. 

Thanks for any help.

%
(1001)
N10 G7
N11 G90 G18
N12 G21
N13 G28 U0.
N14 G28 W0.

(FACE3)
N15 T2 M6
N17 G90 G95 G18
N18 G54
N19 G97 S1516 M3
N20 G0 X42. Z5.
N21 G96 D3500 S200 M3
N22 G0 Z0.414
N23 X22.
N24 G1 X14.828 F1.
N25 X12. Z-1.
N26 X-0.8 F0.5
N27 X2.028 Z0.414 F1.
N28 G0 X42.
N29 Z5.
N30 G97 S1516 M3

N31 M5
N32 G28 U0.
N33 G28 W0.
N34 M30
%


 
  • beauxnez
  • beauxnez
12 Feb 2025 20:20

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Thank you for your patience, still error
Debug file information:
Note: Using POSIX realtime
MOTION: num_joints is 33, must be between 1 and 16
motmod: rtapi_app_main: Operation not permitted (-1)
./NVEM.hal:5: waitpid failed /usr/bin/rtapi_app motmod
./NVEM.hal:5: /usr/bin/rtapi_app exited without becoming ready
./NVEM.hal:5: insmod for motmod failed, returned -1
10762
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
  • 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.
Displaying 19066 - 19080 out of 19430 results.
Time to create page: 0.450 seconds
Powered by Kunena Forum