Advanced Search

Search Results (Searched for: )

  • 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.

 
  • MohammedSobh
  • MohammedSobh
20 Feb 2025 17:18
Replied by MohammedSobh on topic Creating pulses through parallel port

Creating pulses through parallel port

Category: General LinuxCNC Questions

thank you for your reply but this does not work for me as even if I removed the time.sleep the motor moving with the same speed
  • PCW
  • PCW's Avatar
20 Feb 2025 17:08 - 20 Feb 2025 22:34
Replied by PCW on topic Mesa Configuration Tool

Mesa Configuration Tool

Category: Configuration Tools

The 7I76EU (and 7I76U) have 3 new parameters and the 7I84U has 2 new parameters

The main 2 added parameters are 7i76.[port].[chan].output_source and 7i76.[port].[chan].output_sink. or
7i84.[port].[chan].output_source and 7I84.[port].[chan].output_sink. These are 16 bit masks
that control the field output mode. Each xxxx.output_source  bit controls the source attribute
of the corresponding output bit and each xxxx.output_sink bit controls the sink attribute. The
default setting is for all source mode (xxxx.output_source = 65535 or 0xFFFF, xxxx.output_sink
= 0 or 0x0000) which means a 7I76EU, 7I76U or 7I84U behave like a 7I76E,7I76 or 7I84.

So for example:

xxxx.output_sink = 0 = 0x0000
xxxx.output_source = 65535 =0xFFFF
 = normal all sourcing mode (like 7I76E, 7I76,7I84, this is the default)

xxxx.output_sink = 65536 =0xFFFF
xxxx.output_source = 0 = 0x0000
 =  all sinking mode  (like 7I76ED,7I76D,7I84D)

xxxx.output_sink = 65280 =0xFF00
xxxx.output_source = 255 = 0x00FF
= outputs 0..7 are sourcing mode, outputs 8..15 are sinking mode

xxxx.output_sink = 65535 =0xFFFF
xxxx.output_source = 65535 = 0xFFFF
= all outputs are in push-pull mode

Note that each of the 16 output bits can be individually setup for
sourcing, sinking, or push-pull mode.

The 7I76EU and 7I76U also have a spinmode parameter to set the spindle output
bit mode when this is 0 (default) the isolated spindle output bits are ENA and DIR as before.
If the spindle mode bit is set to 1 , the isolated spindle output bits now function
as FWD and REV.


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

HURCO KMB-1 Control Update

Category: Milling Machines

I see what you mean.
I'll look at the numbers again, especially as I've only recently realised the INI stores velocities as mm/sec, and the GUI is in mm/min.
  • zinsade
  • zinsade
20 Feb 2025 16:46

Hal-Pin - Werte aus dem Programm heraus in eine Datei schreiben lassen

Category: Deutsch

Vielen Dank
funktioniert wunderbar.
Wieder was gelernt
Auch vielen Dank für den Link:
linuxcnc.org/docs/html/gcode/overview.ht...:overview-parameters
Da sollte ich doch öfters mal reinschauen.
Wofür brauch ich das?
Ich möchte eine Pitch-Error-Datei bzw. Leadscrew-comp-Datei halbautomatisch erstellen lassen.
Das Programm funktioniert schon.
#100 = 0
G1 B-1 F1000
(LOGOPEN, ausgabe.txt)
(LOG, >>> ausgabe.txt <<<)
(LOG, ---)               
o100 repeat [181]
G1 B#100 F100                                      
G4 P1
M66 E0 L0
(LOG, #<_hal[axis.b.pos-cmd]> = PosB)
M66 E0 L0
(LOG, #<_hal[hm2_5i25.0.encoder.01.position]> = EncB-)
#100 = [#100-1]
G1 B#100 F100
G4 P1
#100 = [#100+1]
G1 B#100 F100
G4 P1
M66 E0 L0
(LOG, #<_hal[hm2_5i25.0.encoder.01.position]> = EncB+)
(LOG, ---)
#100 = [#100-0.5]
o100 endrepeat
(LOGCLOSE)
M30

Gruß Peter
  • PCW
  • PCW's Avatar
20 Feb 2025 16:46
Replied by PCW on topic HURCO KMB-1 Control Update

HURCO KMB-1 Control Update

Category: Milling Machines

In the  top plot, it looks to me like you have the maximum velocity faster the the drive can go
(so the following error rapidly increases when you reach the limit)

Normally you will need to set LinuxCNCs velocity limit to 80-90% of the machine velocity at 10V
  • denhen89
  • denhen89's Avatar
20 Feb 2025 16:39 - 20 Feb 2025 17:14

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

Category: General LinuxCNC Questions

Not working, one problem after another. I can imagine that you might think i am a complete idiot.
Machine freezes still, but now, after the 4. fresh install and installing debian-12.9.0-amd64-netinst and installing the debs, of course with some missing things messages while installing them, after boot the machine does not even want to move past the motherboard screen. (press del to... press tab to... screen)
Its the 3 full day i am trying to solve the latency problem, but instead i am only getting more problems.
If i would knew i can get samba to work without spending a couple of days "trying" to get it to work, then i would give up with debian 12 and linuxcnc 2.9.x. Unfortunately i know that when i install again wheezy, i will encounter 1000 things that dont work, starting with the clock, then the internet browser that is not anymore supported and of course samba that also needs some special attention by a Linux specialist, that i am not unfortunately.EDIT: after doing 1-2 changes in bios i can enter linux and also do the latency test, but the latency is about 31000 and also freezes sometimes.
  • NT4Boy
  • NT4Boy
20 Feb 2025 16:31 - 20 Feb 2025 16:41
Replied by NT4Boy on topic HURCO KMB-1 Control Update

HURCO KMB-1 Control Update

Category: Milling Machines

In fact there is nothing much wrong with the hal and ini entries,
HOME_OFFSET = 25.4
HOME = 0
I understand these better now, and to have the machine Home position at 0.0 25.4mm away from the limit switch after the encoder index has registered was my intention.
But even after I have tuned the axis I cannot get a successful home.
It has however stopped parking on the limit switch, but but can generate a big joint following error. The Rapid Halscope image, is at 6350mm/min and to me from what I've learned from the tutorial is pretty good.
I've set the HAlscope f-error at 5/DIV to match the tutorials, but wonder if that's correct for a metric setup
The Home image is the follower error up to the shutdown, which shows a massive figure that I cannot reproduced with the jog buttons even at max table speed. 
Not quite making sense to me yet.
I'd appreciate some comments.
  • feelindizzy
  • feelindizzy
20 Feb 2025 16:27

Notes from installation of ethercat on Raspberry Pi 4

Category: EtherCAT

tried this numerous times.
i get so far and then mouse won't work after a reboot. curser won't move and no light on bottom of mouse.
tried a powered usb hub.
any other suggestions?
hugh
Displaying 16261 - 16275 out of 20845 results.
Time to create page: 0.697 seconds
Powered by Kunena Forum