Advanced Search

Search Results (Searched for: )

  • tommylight
  • tommylight's Avatar
24 Jun 2026 14:48
Replied by tommylight on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

Thank you for reporting back.
  • Aciera
  • Aciera's Avatar
24 Jun 2026 14:47
Replied by Aciera on topic Total lines in a GCode file

Total lines in a GCode file

Category: General LinuxCNC Questions

Try the scale component (set gain to 0.01) to convert 0..100 to 0..1:
linuxcnc.org/docs/html/man/man9/scale.9.html
  • tommylight
  • tommylight's Avatar
24 Jun 2026 14:47

Retrofitting a 3-axis VMC with DC servos - guidance needed

Category: Driver Boards

Dell Optiplex 790 is still usable but needs at least 4GB of RAM.
Lenovo M93 with 4000 series CPU are also good, so if this is what you can get it is better than that Optiplex.
Fujitsu from that era are also OK.
  • galmiklos
  • galmiklos
24 Jun 2026 14:14 - 24 Jun 2026 14:21
Replied by galmiklos on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

I found the culprit! :-)

Apparently, the customized component that handles the SPI communication with the customized remora-spi firmware is not compatible with trixie.

This is the part in the code that breaks it.
int rt_peripheral_init(void)
{
    int  memfd;
    FILE *fp;

    // assume were only running on >RPi3

    if ((fp = fopen("/proc/device-tree/soc/ranges" , "rb")))
    {

The soc ranges path is different in trixie.
root@raspberrypi:~# hd /proc/device-tree/soc\@107c000000/ranges
00000000  00 00 00 00 00 00 00 10  00 00 00 00 80 00 00 00  |................|
00000010

I modified the component so, that when the path does not exist, I just consider it as a Raspberry Pi 5 with RP1 chip, and now it works! :-)
    if ((fp = fopen("/proc/device-tree/soc/ranges" , "rb")))
    {

. . . . . . . . .

    }
    else
    {
        DEBUG_PRINT("Raspberry Pi 5, using RP1 driver\n\n");
        rp1 = true;
    }

I know it's just a quick and dirty workaround, but works for me.
  • Japoo_Ness
  • Japoo_Ness
24 Jun 2026 14:04

Retrofitting a 3-axis VMC with DC servos - guidance needed

Category: Driver Boards

Finally, after a long wait, the boards have arrived! Now I'm looking to buy the PC to control the machine. Checking all the models you shared before, I couldn't find any of them available in my country for under $700 USD.

However, I found two options: a Dell Optiplex 790 with an i5-2400, and another refurbished PC with an i5-4400 (the seller didn't specify the exact model, just that it could be an Optiplex, HP, Lenovo, or Bangho).

Which one would recommend? Both rely on integrated graphics. Is that going to be an issue in my case? From what I've read, a dedicated GPU is usually recommended, but I'm not sure if that's only for software pulse generation or if it's recommended for hardware-assisted setups too.

Thanks in advance!
  • timo
  • timo
24 Jun 2026 13:22
Replied by timo on topic largest NC file

largest NC file

Category: General LinuxCNC Questions

I was looking at one of my "bigger ones" and it has a measly 2kB.
About 80 000 lines of G-code. :-),
A bit of 2.5D surfacing nothing really exciting.
  • scsmith1451
  • scsmith1451's Avatar
24 Jun 2026 12:08
Replied by scsmith1451 on topic Total lines in a GCode file

Total lines in a GCode file

Category: General LinuxCNC Questions

While gmoccapy.program.progress does display the current progress of the job, it reports the value as whole percent rather that fractional percent. Unfortunately, the HBar widget requires fractional percent between 0.0 and 1.0.

Is there a way to convert the output of program.progress in the HAL file when connecting the signal or will I have to use an on_changed handler to do the conversion?
  • Babymomoh
  • Babymomoh
24 Jun 2026 08:54

Documenting my journey through ethercat config.

Category: EtherCAT

My background:
 i am working as electrical panel maker for cnc machines for wood routers since 2 years for a company near me as a part timer, or you can say whenever they have a new order. they have been using cheap parallel port card with mach3. Now the computers with parallel ports being scarce they wanted me to find them something that is cheap, reliable, and something somewhat latest in technology.
 This is how I came across linuxcnc. although i knew about it long ago, but never had the chance to work on it. also i couldn't acquire mesa cards till today. so i decided to work on ethercat instead of going for specific hardware.

Hardware i am using:
XINJE DS5C1                                             Drives for axis
EK1100, EL1008, EL2008, EL4002            Beckhoff ethercat modules for input output.
  • Aciera
  • Aciera's Avatar
24 Jun 2026 05:42 - 24 Jun 2026 06:57

Shutting down a standalone GLADE panel launched with gmoccapy

Category: Gmoccapy

Searching Google for an answer to this issue it suggested to put a system command in the shutdown.hal file and set the .ini parameter:

SHUTDOWN = shutdown.hal

which I have done.

I've created a bash command script, killglade, which if run from the command line kills the orphaned glade panel. In my shutdown.hal file I have the following command:

system killglade


That is pure AI generated nonsense. There is no hal command 'system':
www.linuxcnc.org/docs/stable/html/hal/ba...tml#sec:hal-commands

What you could try is start your configuration through bash and have your killglade script execute after linuxcnc is shut down:
linuxcnc path_to_your_inifile_here && bash path_to_your_bash_script_here
  • SoloRev
  • SoloRev
24 Jun 2026 04:56
Replied by SoloRev on topic Plasma CNC Pipe Cutting Machine

Plasma CNC Pipe Cutting Machine

Category: Plasma & Laser

I am not. I just read trivkins and it also supports xyzabc. so ill have a go at that.
  • galmiklos
  • galmiklos
24 Jun 2026 02:49 - 24 Jun 2026 02:51
Replied by galmiklos on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

Since I had the flexi-pi image on the SSD, I booted it, started linuxcnc in debug mode and saved the output.
I then booted the new LinuxCNC image from, the SD card, and did the same. Started linuxcnc in debug mode and saved the output.
Since the SSD is always connected, I mounted it, and so I could compare the debug output. The only difference was these lines.
DEBUG: Initialising RP1 library: rt_rp1lib_init
DEBUG: Base address:  1f00000000, size: 400000, mapped at address: 0x7ffeecb60000
DEBUG: rp1spi_init(), SPI0
DEBUG: SPI0 Base address:       50000, mapped at address: 0x7ffeecbb0000
DEBUG: dws->ver = 3430322a
DEBUG: Synopsys DWC APB SSI v4.02
DEBUG: Detected FIFO size: 64 bytes
DEBUG: Detected 32-bits max data frame size
DEBUG: Pin: MOSI -> GPIO Number: 10, FSEL Number: 0
DEBUG: Pin: MISO -> GPIO Number: 9, FSEL Number: 0
DEBUG: Pin: SCLK -> GPIO Number: 11, FSEL Number: 0
DEBUG: Pin: CS   -> GPIO Number: 8, FSEL Number: 0
DEBUG: clk_div = 10
DEBUG: BAUDR = 20000000 hz
I don't know where to get this ;library from, I thought it would be part of the "flexi" component that comes withe flexi-pi image.
  • scsmith1451
  • scsmith1451's Avatar
24 Jun 2026 00:34

Shutting down a standalone GLADE panel launched with gmoccapy

Category: Gmoccapy

Searching Google for an answer to this issue it suggested to put a system command in the shutdown.hal file and set the .ini parameter:

SHUTDOWN = shutdown.hal

which I have done.

I've created a bash command script, killglade, which if run from the command line kills the orphaned glade panel.  In my shutdown.hal file I have the following command:

system killglade

However, the panel is not stopped upon shutdown of gmoccapy. The documentation from the web mentioned that the bash script should be in the configuration directory. While not technically in the configuration directory I created a soft link to the actual file which is in my ~/bin directory which in turn is in my search path so the file can be executed from anywhere.

Does anyone have an idea what I may be missing or any insight into running bash scripts with the system command in the shutdown.hal file?

I've attached my killglade script and my shutdown.hal file for your reference. 
  • galmiklos
  • galmiklos
23 Jun 2026 23:53
Replied by galmiklos on topic Cannot get out of Estop

Cannot get out of Estop

Category: General LinuxCNC Questions

Yes, there is an ESTOP input on the board, but it is not triggered.

The communication between the RPi5 and the board is SPI. The firmware flashed is a customized version of remora-spi, tailored for the Flexi-HAL board by Expatria (github.com/Expatria-Technologies/remora-flexi-hal).

I don't think there is anything is wrong with the board. As I said, I have multiboot set up with an SSD and an SD card, and I have the customized linuxcnc image on the SSD from Expatria (github.com/Expatria-Technologies/Flexi-Pi). If I boot that, everything works.

My best guess is that it is the communication between the board and the Pi through SPI that isn't working for some reason.
  • PCW
  • PCW's Avatar
23 Jun 2026 22:13 - 23 Jun 2026 22:29
Replied by PCW on topic I can't reverse the spindle rotation.

I can't reverse the spindle rotation.

Category: Basic Configuration

Can you check the output of the module with an ohmmeter?

If the PC817 module needs 5V drive you would have to connect it in sinking
mode to the 7I92. ( +5V to PC817 module IN+ 7I92 output to
PC817 module IN-  and active low output )

Is there some other issue with reverse in the hal file
( like PWM connections if you have spindle speed control )
  • tommylight
  • tommylight's Avatar
23 Jun 2026 22:02
Replied by tommylight on topic I can't reverse the spindle rotation.

I can't reverse the spindle rotation.

Category: Basic Configuration

The LED on the PC817 module lights up when REV is on, but the spindle doesn't reverse.

Displaying 46 - 60 out of 14826 results.
Time to create page: 0.620 seconds
Powered by Kunena Forum