Advanced Search

Search Results (Searched for: )

  • roycegb
  • roycegb
Yesterday 20:44
Failure to find Named Subroutines was created by roycegb

Failure to find Named Subroutines

Category: O Codes (subroutines) and NGCGUI

I have always had problems with named subroutines but lately I cannot get them to work at all.I get the following message;

LinuxCNC Error Near line 4 of/home/rpi-first-boot-wizard/linuxcnc/nc_files/Utility_G_Code/test.ngc:Failed to find sub 'Omyfile.ngc' before EOF

In this case I had a dead simple routine named 'test.ngc' that called a dead simple subroutine named 'my file.ngc'.

The location of the files and subroutines was called out in the .init file.

I have used named subroutines in the past.  I now use Raspberry Pi 4 and 5 with Axis 2.9.4 versions.

Any fool proof method for handling these subroutines would be appreciated.
I have a boat load of specializedsub routines lying dormant.
  • 3404gerber
  • 3404gerber
Yesterday 19:37

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Thanks for reply. That changes resolved the issue of not compiling on trixie, there was also some error on line 505 column 69 of remora-spi.c. I edited that, I don't if that's correct, but that line will only be used in case of using rpi5, don't bothered and compiled the remora component. But still same issue on trixie and bookworm.

Hope some will help.
 

Sorry if I ask obvious things that you already checked, but what message do you have if you start LinuxCNC from a terminal, and then try to get out of emergency stop state? I don't have an SPI version, but on the Ethernet version I get an error message like "Bad SPI payload = 0" if I don't have communication with my board.
  • cnbbom
  • cnbbom
Yesterday 19:36
Replied by cnbbom on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

I saved some installation files; I meant to delete them, but because they contained important information, they remained.
  • cnbbom
  • cnbbom
Yesterday 19:21 - Yesterday 19:27
Replied by cnbbom on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

The problem with the RTAI kernels is that they are stuck at v5 and they don't have such good hardware support as the preempt-rt kernels.It is also possible that there is a problem with the 5.4.290 kernel as mentioned here:https://forum.linuxcnc.org/9-installing-linuxcnc/53163-new-and-working-rtai-debs-for-2-9?start=60
 
would that be it?1 drive.google.com/file/d/1BwlJet6ZcWpXvAUzD2YcM9vvnPTuclaX/view   2 drive.google.com/file/d/1xICFF-2mq_rz-vi.../view?usp=drive_link 3 drive.google.com/file/d/14Z10IOZI5bvgmf_.../view?usp=drive_link 4 drive.google.com/file/d/1fwGb5Qo9pw8lGLp.../view?usp=drive_link
 

  • Muzzer
  • Muzzer
Yesterday 19:03
Replied by Muzzer on topic Lathe Macros

Lathe Macros

Category: Other User Interfaces

I couldn't resist trying to fix this. Here is a new version of lathemacro.ui that appears to work for me.

Until yesterday, I was stuck with a broken macros screen like this when I tried to access the macros:



I went through all 40 something pages of this thread and noted everything that could be remotely relevant, then ticked them all off. Nothing fixed the issue until I changed the following line in my .ini file, in particular the "-g 300x200+0+0" element, at which point the svgs appeared and all the spinwheels, keypad etc appeared and seemed to function:
EMBED_TAB_COMMAND=halcmd loadusr -Wn gladevcp gladevcp -c gladevcp -u lathehandler.py -x {XID} -g 300x200+0+0 lathemacro.ui



Of course, the play button is greyed out and doesn't function, as noted and discussed in the above thread around post 271603. I tried that modified version of lathemacro.ui posted by AndyP, hoping this would bring the play button to life but when I substituted it for my existing copy, it reverted to a similar "broken" screen like the first one.
Obviously one simple answer would be to fit a hardware switch, as preferred by AndyP but I thought I'd just check first - was that updated .ui file expected / intended to make the screen play button work? It's significantly different to the original 2022 .ui file when I do a file compare in VSC, so I've no idea where the critical changes actually lie. I looked at the .ui file in the Glade editor and in VSC and I can see it will take me some time to figure out what I'm looking at.
  • NWE
  • NWE
Yesterday 18:59

Custom halcomp with nested functions halcompile warning: implicit declaration of

Category: HAL

I found a seemingly cleaner way: I changed the function names to variables that I set to 1 or 0 at places in the program where I wanted to call the functions.
Then I moved my nested functions to the end of the halcomp and rewrote them into if() checking which variables are set.

My original purpose for functions had been to avoid having duplicate blocks of code each place I want to run that sequence. The if()'s at the end serve my need just as well.
  • andypugh
  • andypugh's Avatar
Yesterday 18:01
Replied by andypugh on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

The problem with the RTAI kernels is that they are stuck at v5 and they don't have such good hardware support as the preempt-rt kernels.

It is also possible that there is a problem with the 5.4.290 kernel as mentioned here:
forum.linuxcnc.org/9-installing-linuxcnc...-2-9?start=60#333143

5.4.279 is supposedly better, but I can't find it.
  • cnbbom
  • cnbbom
Yesterday 17:45
Replied by cnbbom on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Life has got more complicated. With proper kernel tuning, latency can be better with Debian 13. I am in the process of publishing a second video about this on YouTube. Please refer to my channel. www.youtube.com/@MrRodW
The yet to be published video should be watched before the current one.

I watched the videos, and I have some information.
1. Every time I tried to do a clean install, it returned a firmware error rtl_nic/rtl8168h-2.fw, and I believe that because of this firmware error, the Windows boot option did not appear in GRUB. "When I learned about that utility you used, Balena Etcher, to create the installation pendrive, it solved the problem." Rufus with Windows was the cause of not creating the installation media 100%.
2. Some modifications suggested in the video did not have a better effect for me, and I believe it's because of my CPU; with Debian 13, I didn't have any success with PREEMPT_RT.

3. I did a new procedure with RTAI and observed that if I create a machine without spindle controls, I don't have crashes or the segfault error. But another issue arose: the created machine does not communicate with the LPT.
  • tommylight
  • tommylight's Avatar
Yesterday 17:11

Bitfile or help – Mesa 6i25 + 7i74 (BiSS-C) + 8i20 + 7i70/7i87

Category: Driver Boards


Pretty sure Tommylight has some example files using SSI feedback (which is very similar at the HAL level)

Yes of course, they are attached in the Elumatec SBZ130/01 retrofit page, not sure if i updated to the latest version so you might have to go through quite a long topic to check, although might not need the latest as the encoders were the first thing working, after the initial wiring. The latest should also have the toolchanger with grayscale feedback.
  • sataran
  • sataran
Yesterday 16:52

Bitfile or help – Mesa 6i25 + 7i74 (BiSS-C) + 8i20 + 7i70/7i87

Category: Driver Boards

Thank you for your help, I'll check that right away.
  • PCW
  • PCW's Avatar
Yesterday 16:40
Replied by PCW on topic 7i92M + 7i76 add PWM+PktUART

7i92M + 7i76 add PWM+PktUART

Category: Driver Boards

 

File Attachment:

File Name: 7i92_7i76x...sold.zip
File Size:113 KB
  • amanker
  • amanker
Yesterday 16:11

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Thanks for reply. That changes resolved the issue of not compiling on trixie, there was also some error on line 505 column 69 of remora-spi.c. I edited that, I don't if that's correct, but that line will only be used in case of using rpi5, don't bothered and compiled the remora component. But still same issue on trixie and bookworm.

Hope some will help.
  • Murphy
  • Murphy
Yesterday 16:02

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I tried countless hours with chatgpt and changing the spindle code for CSS to work but it's hopeless. I'm convinced it's the actual 0-10v signal coming out of the ec500 isn't fast enough. Iv read earlier in the thread people complaining about the op amp been to slow and changing a capacitor. But I think that was slow for ramp up. Mine ramps up fast when commanded but seems to lose it's 10v analog signal when there is a lot of speed changes.

Is there a way to get the pwm signal before the op amp and run an external faster pwm to analog for testing . That can rule out if it's the convertor onboard or actually remora refresh rate ?
  • PCW
  • PCW's Avatar
Yesterday 15:54 - Yesterday 15:54

Bitfile or help – Mesa 6i25 + 7i74 (BiSS-C) + 8i20 + 7i70/7i87

Category: Driver Boards

Bitfile (and changed source)  for 5i25/6i25 with 7I74 and 4 sserial channels and 4 BISS channels:

 

File Attachment:

File Name: 5i25_ss_biss4_4d.zip
File Size:83 KB


Pretty sure Tommylight has some example files using SSI feedback (which is very similar at the HAL level)
  • lorenzing
  • lorenzing
Yesterday 13:39
Replied by lorenzing on topic Ethercat Motion Problem

Ethercat Motion Problem

Category: EtherCAT

I've fixed some Ethercat errors using postgui_csp.hal file for csp-mode setup
setp cia402.0.csp-mode 1
setp cia402.1.csp-mode 1
setp cia402.2.csp-mode 1
setp cia402.3.csp-mode 1
setp cia402.4.csp-mode 1
Displaying 31 - 45 out of 20297 results.
Time to create page: 0.311 seconds
Powered by Kunena Forum