Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
20 Feb 2025 20:11
Replied by Aciera on topic How to modify, and use Hal_ LED color

How to modify, and use Hal_ LED color

Category: GladeVCP

spammer booted
  • Aciera
  • Aciera's Avatar
20 Feb 2025 20:10
Replied by Aciera on topic Hurricane Milton

Hurricane Milton

Category: Off Topic and Test Posts

Spammer booted
  • Aciera
  • Aciera's Avatar
20 Feb 2025 20:05
Replied by Aciera on topic Problem with custom M code

Problem with custom M code

Category: Basic Configuration

Problem is that $1 contains a float which bash can't handle, so try:
if [[ ${operand%\.*} -eq 100 ]]; then
  • jroddds
  • jroddds
20 Feb 2025 20:04
Replied by jroddds on topic Probe basic without the ATC

Probe basic without the ATC

Category: QtPyVCP

I believe these lines were the problem:

net tool-prepare-request <= iocontrol.0.tool-prepare
net tool-prepare-confirmed => iocontrol.0.tool-prepared

Not sure if those came from PNCconf, but I commented them out and it seems to have resolved the issue.
  • machinedude
  • machinedude's Avatar
20 Feb 2025 19:54

Building a 3-axis plasma table with mesa 7i96s, THCad-2 and nema23 steppers

Category: Show Your Stuff

Mach 3 is at a point where it is hard to run unless you have a really old version of windows. i used it for years until i hit issues in windows 10. so i would make the switch which i did do :)
when it comes to plasma and THC Linux with Mesa has probably the cheapest THC solutions out there but I'm in the US so duties and taxes could factor into it to some degree.
  • Muftijaja
  • Muftijaja
20 Feb 2025 19:33

motor-0-position error beim Abbremsen aus 4-7,5 m/min

Category: Deutsch

Hello PCW,
I checked the hm2_7i76e.0.packet-error-total and got 57 errors about 45 minutes. Is this too much?

I don't understand these packet losses - (my PC is a lenovo ThinkCentre M92p Mini-PC, Intel Core i5-3470T 2.90 GHz 8GB Ram, in the latency Test I get readings as shown in the photos, first at start, Servo 4000, Base 5608, after 30 minutes surfing, coding in Vcode, doing sth else: servo 82040, Base 24542, I set servo thread in the INI file to 1.600.000.
Kernel release 6.1.0-29-rt-amd64, Kernel Version #1 SMP PREEMPT_RT Debian 6.1.123-1 (2025-01-02)
What do you think?

I did the most Latency tips in this thread: forum.linuxcnc.org/38-general-linuxcnc-q...ead-and-irq-affinity - I disabled hyperthreading, power saving, virtualisation, TPM, turbo mode, ACPI, APM, Audio,, kernel isolate core 0 for interrupts - quiet irqaffinity=0 isolcpus=0. I bought a new network controller with RTL_8125 chip,  optimize my network connection with sudo ethtool -C eno1 rx-usecs 0 at any system start. Kernel release 6.1.0-29-rt-amd64, Kernel Version #1 SMP PREEMPT_RT Debian 6.1.123-1 (2025-01-02)

Anyways, I dont have servo motors with encoders wired to the MEsa 7i76e, so I cannot calibrate in live mode. I just set the FF2 to 0.0003 as you said. Same results as yesterday, not often but sometimes i get that motor-0-position errors.
Maybe my PC is too slow for a Linux system? Any suggestions?
Thank you so much for your support!
Hanno
(For some reason, I cannot put photos <1MB in this thread...)
  • Leo90
  • Leo90
20 Feb 2025 18:39 - 20 Feb 2025 18:43
Problem with custom M code was created by Leo90

Problem with custom M code

Category: Basic Configuration

Hi all. I need help with my custom M code I've started to write. I ran into a problem right at the beginning with an "if" statement. My M code should be M105 P100 and it seems the "P" value isn't transfered into the M code. 
​​​
#!/bin/bash

operand="$1"

if [[ "$operand" == 100 ]]; then
    halcmd setp lcec.0.EL2008.dout-0 true
    echo "ok"
else
    halcmd setp lcec.0.EL2008.dout-1 true
    exit 1
fi

exit 0
The M code always outputs "else" condition so "operand" isn't 100 as expected. 

I also wrote a similar M code with "case" and there the P value is recognised by bash. 

What did I do wrong here?
  • denhen89
  • denhen89's Avatar
20 Feb 2025 18:10

(LPT) Debian 12 Latency spikes/unexpected real time delay. Looking for solution.

Category: General LinuxCNC Questions

With a specific bios setting Linuxcnc does open and axis moving smooth, but at start up i get "unexpected realtime delay on task 1.
  • 109jb
  • 109jb
20 Feb 2025 17:55 - 20 Feb 2025 17:56
Replied by 109jb on topic Trouble with Linucnc RPi

Trouble with Linucnc RPi

Category: Installing LinuxCNC

Sorry for the douple post. Didn't even realize it happened.

As for the problem, I don't think it is an issue with the LinuxCNC images. You are right that it is likely a general problem that would show on a non-LinuxCNC image. I figured I would ask here because you guys seem very knowledgable about not only LinuxCNC, but Linux in general.

That said, I have searched about this problem in general RPi forums and internet searches. I did a lot of that before posting here. There are reports of others having this problem but all of the solutions I have found on this say to go into raspi-config to change things, but the LinuxCNC images don't have raspi-config and menu-config doesn't have the same options. Basically what everything I have found is getting at is forcing the resolution for the login screen to a resolution that works with the monitor.

To be more clear as to what is happening, when the Pi starts to boot the monitor wakes up and pops up a little info window showing what resolution it is being driven at. This little window is a display thing, not a linux thing. Anyway, I can't remember what resolution it starts at with the verbose text, which appears fine, but when it gets to the login screen the little window pops up and shows the driving resolution has changed to 1366x768 @ 60Hz, which gives the skewed image in my previous post. At this point I can type username "cnc", tab to password "cnc" and it takes you to the desktop. Initially the desktop is skewed like the above picture, but you can make stuff out. If I navigate to display settings and set them for 1400x1050 @ 60 Hz the image is normal and everything is fine. If the machine goes to sleep or reboots, once it goes through the login screen again, the resolution is reset to 1366x768. If I can force the login screen rsolution to be 1400x1050 I think all will be good, but I don't know how to do that.
  • denhen89
  • denhen89's Avatar
20 Feb 2025 17:53

(LPT) Debian 12 Latency spikes/unexpected real time delay. Looking for solution.

Category: General LinuxCNC Questions

So, i could open Linuxcnc ones after i got a error message on start up, but after reboot i get the error message all the time, so i am not able to start linuxcnc.
I wanted to attach the report file, but cant upload that file type, so i just paste it here. sorry that but i want out of the workshop now, i have enoug and mz hands a freezing.

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-5.4.290-rtai-amd64/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.4
Machine configuration directory is '/home/cncrouter/Downloads/XYYZ'
Machine configuration file is 'XYYZ.ini'
INIFILE=/home/cncrouter/Downloads/XYYZ/XYYZ.ini
VERSION=1.1

check_config:
  INCONSISTENT coordinates specifications:
               trivkins coordinates=XYYZ
               [TRAJ]COORDINATES=XYZ

PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./XYYZ.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.

waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
Shutting down and cleaning up LinuxCNC...
task: 259 cycles, min=0.000012, max=0.010209, avg=0.009507, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
note: MAXV     max: 80.000 units/sec 4800.000 units/min
note: LJOG     max: 80.000 units/sec 4800.000 units/min
note: LJOG default: 80.000 units/sec 4800.000 units/min
Waiting for component 'inihal' to become ready.....................
A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
1820
1889
Stopping realtime threads
Unloading hal components

Kernel message information:
[   94.539313] I-pipe: head domain RTAI registered.
[   94.539441] RTAI[hal]: mounted. ISOL_CPUS_MASK: 20.
[   94.539447] SYSINFO - # CPUs: 6, TIMER NAME: 'lapic', TIMER IRQ: 4355, TIMER FREQ: 6270499, CLOCK NAME: 'tsc', CLOCK FREQ: 1404706000, CPU FREQ: 1404706000, LINUX TIMER IRQ: 4355.
[   94.549853] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[   94.549901] kstacks pool size = 524288 bytes
[   94.549903] RTAI[sched]: hard timer type/freq = lapic/6270499(Hz)
[   94.549904] linear timed lists.
[   94.549908] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1404706000 hz.
[   94.549912] RTAI[sched]: timer setup = 159 ns, resched latency = 0 ns.
[   94.554302] USERMODE CHECK: OK.
[   94.554306] USERMODE CHECK PROVIDED (ns): KernelLatency 1772, UserLatency 2726.
[   94.554308] FINAL CALIBRATION SUMMARY (ns): KernelLatency 1772, UserLatency 2726.
[   94.572540] RTAI[math]: loaded integrated musl libm version 1.2.3.
[   94.668559]
               identityKinematicsSetup: coordinates:XYYZ
[   94.668564]    Joint 0 ==> Axis X
[   94.668566]    Joint 1 ==> Axis Y
[   94.668567]    Joint 2 ==> Axis Y
[   94.668568]    Joint 3 ==> Axis Z
[   94.668570] identityKinematicsSetup: Recommend: kinstype=both

[   94.681692] config string '0xc800 0xdc00 out'
[   98.568211] RTAPI: ERROR: Unexpected realtime delay on task 1
               This Message will only display once per session.
               Run the Latency Test and resolve before continuing.
[  103.953414] RTAI[math]: unloaded.
[  104.031797] SCHED releases registered named ALIEN PEDV$D
[  104.034092] RTAI[malloc]: unloaded.
[  104.139720] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  104.161297] I-pipe: head domain RTAI unregistered.
[  104.161529] RTAI[hal]: unmounted.



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Feb 20 06:49:14 PM CET 2025
            UTC Date: Thu Feb 20 05:49:14 PM UTC 2025
        this program: /usr/bin/linuxcnc_info
              uptime: 18:49:14 up 2 min, 1 user, load average: 2.21, 0.88, 0.33
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/cncrouter/Downloads/XYYZ
                USER: cncrouter
             LOGNAME: cncrouter
                HOME: /home/cncrouter
              EDITOR:
              VISUAL:
            LANGUAGE: en_US:en
                TERM: dumb
           COLORTERM:
             DISPLAY: :0
             DESKTOP: lightdm-xsession
        display size: 1680x1050 pixels (444x277 millimeters)
                PATH: /usr/bin:/home/cncrouter/Downloads/XYYZ/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debianhost
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP Sun Feb 16 14:27:43 CST 2025
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-5.4.290-rtai-amd64 root=UUID=329e52b2-83ca-4098-8506-02f3ac2d7461 ro quiet isolcpus=5
          model name: AMD Phenom(tm) II X6 1055T Processor
               cores: 6
             cpu MHz: 1403.309
             parport: 0000-0000 : parport0 0000-0000 : parport0 0000-0000 : parport1 0000-0000 : parport1
              serial: 0000-0000 : serial 0000-0000 : serial 0000-0000 : serial

Versions:
/usr/bin/linuxcnc_info: line 154: gcc: command not found
                 gcc:
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

     LINUXCNCVERSION: 2.9.4
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
            REALTIME: /usr/lib/linuxcnc/realtime
                 RTS: /usr/realtime-5.4.290-rtai-amd64/bin/rtai-config
          HALLIB_DIR: /usr/share/linuxcnc/hallib
              PYTHON: /usr/bin/python3.11

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version      Architecture Description
+++-===============-============-============-=============================================
ii  linuxcnc        1:2.9.4      amd64        motion controller for CNC machines and robots
un  linuxcnc-doc    <none>       <none>       (no description available)
un  linuxcnc-doc-en <none>       <none>       (no description available)
un  linuxcnc-sim    <none>       <none>       (no description available)
un  linuxcnc-uspace <none>       <none>       (no description available)


 
  • NT4Boy
  • NT4Boy
20 Feb 2025 17:49
Replied by NT4Boy on topic HURCO KMB-1 Control Update

HURCO KMB-1 Control Update

Category: Milling Machines

Homed...!
After getting my head around these units, then I found the max acceleration set to something monstrous I'd entered randomly in pncconf, (mildly entertained by setting so slow it looks almost drunk). Any way, the final realisatioin was looking at the position trace in halscope, expanded vertically, which showed that its goes in reverse back over the limit switch after finding the index....
Yes HOME_OFFSET needs to be negative DOH.
I had in my head that anything moving the spindle to the right is a positive number, but I think that in fact when the index is picked up, that sets a zero, and to home at zero, this point we've found has to be at -25.4 in these coordinates.
Ha
  • KrisJ
  • KrisJ
20 Feb 2025 17:40
Replied by KrisJ on topic Simple G-Code Generator

Simple G-Code Generator

Category: CAD CAM

I guess these old tools are not in use any more.
I want to generate G-code for a simple engravings using single stroke font. Could anyone point me in the right direction of some simple and free program/script that can do that?
  • MohammedSobh
  • MohammedSobh
20 Feb 2025 17:23
Replied by MohammedSobh on topic Creating pulses through parallel port

Creating pulses through parallel port

Category: General LinuxCNC Questions

the motor move with it's speed when use linuxcnc app but this app can't do what I want from the machine if there is any way to program my python code to work as linuxcnc app
  • MohammedSobh
  • MohammedSobh
20 Feb 2025 17:21
Replied by MohammedSobh on topic Creating pulses through parallel port

Creating pulses through parallel port

Category: General LinuxCNC Questions

the motor move with it's speed when use linuxcnc app but this app can't do what I want from the machine if there is any way to program my python code to work as linuxcnc app
  • denhen89
  • denhen89's Avatar
20 Feb 2025 17:18 - 20 Feb 2025 17:40

(LPT) Debian 12 Latency spikes/unexpected real time delay. Looking for solution.

Category: General LinuxCNC Questions

Update: After doing 1-2 changes in the bios, i can again enter linux and also do the latency test, sometimes.. I open it and it shows 0 everywhere (intervall, jitter , last interval).
When i close it and open it again, it shows again 0 everywhere, but after a couple of seconds it shows latency as it should. Now i opened glxgears and youtube but the jitter did not change a lot from 23.000 to 24.769.
I will soon connect the machine and test it. If it works without unexpectec realtime delay message on pop up, then its a good sign and maybe i then just need to make some adjustments in bios or grub config.

EDIT: just thought its looking good, but machine just freezes out of nowhere and i just wanted to start linuxcnc and check if its working, but I also get a error message that i knew how to solve with a terminal command, but due to fresh install that command is not anymore in my terminal history, but i get:
Permission denied.
/custom.hal5: waitpid failed hy_vfd vfd
....

So, beside freezing pc problems, i got a new problem to fix. Amazing.

EDIT: i have found the command and now linuxcnc is starting without unexpected realtime delay, axis moving, but it sound a bit strange, but smooth but with small stops between smooth movement. I will try to adjust bios cpu settings.

 
Displaying 18646 - 18660 out of 19178 results.
Time to create page: 0.328 seconds
Powered by Kunena Forum