Advanced Search

Search Results (Searched for: )

  • tommylight
  • tommylight's Avatar
Today 15:45
  • tuxcnc
  • tuxcnc
Today 14:48 - Today 14:52
Replied by tuxcnc on topic XHC-WHB04b-6 freeze in issue fixed !!

XHC-WHB04b-6 freeze in issue fixed !!

Category: Basic Configuration

I made a diff with the latest hal.cc from Github and got a 43 kB patch...
Can you make a patch from your sources?
 
  • DougS
  • DougS
Today 14:20

Mesa 7i96s to Gecko G540 with simple 3 axis Router

Category: General LinuxCNC Questions

Hello Folks Newbe here.

I mistakenly though I could easily convert my Shark SD120 to a Linuxcnc setup using a Mesa 7i96s to a Gecko g540. After hours of fooling with it and being misled by AI I now realize there is no easy way to setup the HAL and INI configs. I purchased the hardware and would like to make it work so any help would be greatly appreciated.

Thanks,
Doug
 
  • PCW
  • PCW's Avatar
Today 13:59 - Today 14:00
Replied by PCW on topic 7i98 and 5abobx3 firmware

7i98 and 5abobx3 firmware

Category: PnCConf Wizard

That's basically correct:

1. Add new pinout file to project (seveni98.xise in this case)
2. Select proper card and desired pinout file in top level file (TopEthernet16HostMot2.vhd in this case)
3. Recompile
4. Rename created bit file (TopEthernetHostMot2.bit in this case)  to desired final name.
  • ajanfahri
  • ajanfahri's Avatar
Today 13:27

Delta ASDA-E3 + IgH – occasional one-cycle position update skip

Category: EtherCAT

UPDATE / SOLVED

Hello everyone;
After many tests, i found any solutions for this issue

Three İmportant Parts
1. Using Xenomai/Cobalt clock as the master cyclic timing base
2. Waiting for the ethercat slave dc clocks to converge before starting motion.(<1 microseconds)
3. Explicity phase-locking EtherCAT SEND to a safe position relative to SYNC0

I hope this saves someone else a lot of debugging time.

Fahreddin
  • CNC_Tux
  • CNC_Tux
Today 13:27 - Today 14:03
XHC-WHB04b-6 freeze in issue fixed !! was created by CNC_Tux

XHC-WHB04b-6 freeze in issue fixed !!

Category: Basic Configuration

Dear Linuxcnc Friends,
the WHB04b-6 driver has a big issue, if you are in Automatic mode and a cnc program in running and you use the jog wheel, will be freeze in the WHB04b-6. That issue is a bug in the hal.cc ! Every move on the jog wheel try the driver to switch into the manual mode and the WHB04b-6 freeze in. I have fixed this issue with AI and compiled the driver new in the Version of Linuxcnc 2.9.10
The Driver works very well and in my Version is the maximum of Jogscale 0.1mm ( to much Jogscale is a crash risk )
You can download here the zip file, unpack and copy with sudo rights to your System in /usr/bin/
Dont forgett to set the rights for execute the files.


The fixed hal.cc is in the attachment, for the guys they want compile by himself.
Best regards
Reinhard 

File Attachment:

File Name: AI_Driver_...4b-6.zip
File Size:601 KB
 
 

File Attachment:

File Name: hal.c
File Size:56 KB

Please rename the attachment hal.c to hal.cc
  • Schaublin12
  • Schaublin12
Today 13:02
Replied by Schaublin12 on topic EtherCAT Master Beckhoff slave not found

EtherCAT Master Beckhoff slave not found

Category: Basic Configuration

Thanks, Rod, for your help. I'm still pretty overwhelmed by this right now. But I've figured out that the automatically generated XML file lists all the operating modes, and I have to choose one. I hadn't realized that, which is why I ended up with duplicate variable names. I've now decided on operating mode CSP and deleted the rest. I'll give it a try when I get home.
  • Pieter69
  • Pieter69
Today 12:59

2.9.4 uspace: interpreter stops reading ahead mid-session severe stuttering

Category: General LinuxCNC Questions

Hi all,

Sorry topic appeared first double then deleted all together (site is reacting a bit slow) Now back

I've been chasing an intermittent slowdown on my router for a while -- motion that should run smooth and at full commanded feed instead crawls and stutters, seemingly at random. I've now managed to localise and measure it precisely enough that I think it's worth a proper writeup rather than a vague "my machine is slow sometimes" post. Full data below; happy to share raw captures if useful.

SUMMARY

Motion on dense toolpaths sometimes degrades to roughly a quarter to a tenth of programmed feed. The degradation shows up part way through a session, persists across different programs, and is cured completely by restarting LinuxCNC -- a full reboot is not required, just restarting the LinuxCNC application.

I've localised the cause to the interpreter no longer reading ahead. In the degraded state the trajectory-planner queue never holds more than one move, so the planner has nothing to blend into and executes every segment as a discrete stop-start move.

MY SETUP

- LinuxCNC: 2.9.4, uspace
- Kernel: 6.1.0-30-rt-amd64 (PREEMPT_RT)
- GUI: QtDragon / qtvcp (qtdragon_hd)
- Motion card: Mesa 7i96s over Ethernet (hm2_eth, 100BASE-TX)
- Servo period: 1,000,000 ns (1 kHz)
- CPU: 4 cores @ 3.4 GHz, isolcpus=3 nohz_full=3 rcu_nocbs=3 irqaffinity=0-2
- Machine: 3-axis gantry router, X/Y/Y2/Z (Y is a slaved gantry pair)
- Axis limits: X 15000 mm/min @ 1200 mm/s^2; Y 8000 @ 1000; Z 3000 @ 300

THE MEASUREMENT

I ran the same air-move program twice, about ten minutes apart, with a LinuxCNC restart in between and nothing else changed. Two independent monitors ran throughout: a HAL sampler on the servo thread capturing per-joint velocity/position at 1 kHz, and a Python poller reading linuxcnc.stat().queue (trajectory-planner queue depth), .current_line, and /proc/<pid>/stat CPU for milltask and qtvcp, five times a second.

Test file: 2.84 mm median segments, G64 P0.05 Q0.2, F7000
(put this block inside a
tag when posting so the spacing holds -- it only lines up in a monospace font)

[code]
                                  healthy (after restart)  degraded (before)
--------------------------------  -----------------------  -----------------
mean feed while moving            112.2 mm/s               34.3 mm/s
retention of F7000 (116.67 mm/s)  96%                      29%
TP queue depth                    1039 -- full             0-1, never more
read-ahead                        3,674 lines in 0.6 s     ~5 lines/s
milltask CPU                      15% burst, then idle     0.4%

In the healthy run the interpreter fills the entire 1039-move queue within six tenths of a second of pressing start and holds it saturated the whole run. In the degraded run it never gets more than one move ahead.

Second file: 0.54 mm median segments, G64 P0.01 Q0.05, F3600 (denser and tighter-tolerance than the file above, to rule out density as the cause)
                              healthy       degraded
----------------------------  ------------  ----------
mean feed while cutting       56.7 mm/s     6.3 mm/s
retention of F3600 (60 mm/s)  94%           10.5%
TP queue depth                1781 -- full  n/a
program advance               85 lines/s    ~5 lines/s

THE ARITHMETIC CHECKS OUT

With one move queued the planner can't blend, so each segment accelerates and decelerates in isolation. For a segment of length L under acceleration a, a stop-start traverse peaks at sqrt(a*L) and averages roughly two thirds of that. For the first file: L = 2.84 mm, a = 1200 mm/s^2 gives a peak of 58 mm/s and a mean near 29 mm/s. Measured: 34.3 mm/s. No parameter was fitted to get that number.

THE DETAIL THAT RULED OUT A LOT OF OTHER EXPLANATIONS: RAPIDS ARE UNAFFECTED

In the same degraded capture where every G1 crawled at 12-30 mm/s, the opening G0 rapid held 136.3 mm/s, dead flat, for 2.25 seconds. A rapid is a single long move and needs no queue at all. So the axes, stepgens, Mesa link, servo thread, and acceleration limits are all demonstrably capable of full-speed smooth motion in the degraded state. Only motion that depends on queued look-ahead is affected.

WHAT I'VE RULED OUT BY DIRECT MEASUREMENT (NOT JUST REASONING)

- Interpreter CPU load -- milltask sits at 0.4% CPU while degraded. Not compute-bound, not falling behind -- barely working at all.
- Servo thread -- period measured at 1.006 ms in both states, thread execution ~20% of budget, no overrun.
- G-code density/geometry -- the denser file with the tighter blend tolerance runs better (94% at 0.54 mm / P0.01) than the sparser one.
- G64 P Q blending mode -- different tolerances made no measurable difference.
- File size -- 4k/15k/40k/70k/90k/110k-line programs all ran 94-95% in a healthy session.
- Memory -- qtvcp RSS tracks the size of the currently loaded program, released on load, not a cumulative leak.
- CPU frequency/isolation, NIC tuning, governor, thermals -- all measured directly, none correlated with the state.
- QtDragon's own GUI/graphics CPU load -- checked this after seeing it suggested elsewhere as a cause of large-file sluggishness in QtDragon. qtvcp's own CPU usage from the same captures: 3.67% mean / 49.9% peak (healthy) vs. 3.41% mean / 40.0% peak (degraded) -- flat to slightly lower while degraded, not elevated. Doesn't fit a "GUI thread starving the interpreter" mechanism.

WHAT I DON'T KNOW YET

Why read-ahead stops. It's a property of the session, not of any specific program -- it survives loading a different file, and a LinuxCNC restart (not a reboot) restores it completely. I haven't caught it in the act of transitioning, so I don't know if it's triggered by a specific event or degrades gradually.

Things I'm planning to check next, in rough order of promise -- any input on these, or other ideas, would be very welcome:

1. Whether anything in my config is busting interpreter read-ahead -- queue-busting words, M66, probing, a remap. None of these are present in my test programs, but the read-ahead machinery seems like the obvious place to look next.
2. Whether qtvcp's polling (stat.poll() at GUI rate) can interact with the interpreter's ability to queue, even though its CPU load doesn't change (see above) -- planning to try a run with the GUI closed/killed entirely (headless linuxcnc + halcmd) to see if degradation can even occur without qtvcp attached.
3. Whether the emcmot/emctask NML message channel saturates or throttles under some condition I haven't identified.
4. Whether this is a known 2.9.x regression -- I haven't found a matching report yet, which is part of why I'm posting this.


Operational workaround I'm using in the meantime: if a session has degraded performance, restart LinuxCNC and restart the session. Works, but obviously I'd rather find the actual cause.

Thanks for reading this far -- any pointers, even "check X" without a full answer, would help a lot.

grtz Pieter
  • rodw
  • rodw's Avatar
Today 11:26
Replied by rodw on topic EtherCAT Master Beckhoff slave not found

EtherCAT Master Beckhoff slave not found

Category: Basic Configuration

I did say try! You have duplicated a pin name in the xml file. It tells you that.
  • rodw
  • rodw's Avatar
Today 11:21

LinuxCNC + Mesa 7i92TF: motors barely move and ignore direction changes

Category: Driver Boards

Slow speed is generally a scaling issue in your setup. In my first ever setup I was terribly disappointed to see no motion on my first test. Then when I looked closely, the motor was barely moving!

If direction is not recognized, its probably a wiring issue.
 
  • Marslukan
  • Marslukan
Today 11:19 - Today 11:30
Replied by Marslukan on topic 7i98 and 5abobx3 firmware

7i98 and 5abobx3 firmware

Category: PnCConf Wizard

Можно еще уточнить по процессу изменения, создания bitfile. 
На скриншоте порядок:
  1. открываем проект seveni98.xise
  2. добавляем в проект файл PIN_MARSLUKAN_51.vhd, если нужно исправляем.
  3. выбираем нужную карту
  4. правильно сделано?
  5. генерируем проект и получаем bitfile - TopEthernetHostMot2.bit

    Или нужно еще где-то что-то нажать?
  • rodw
  • rodw's Avatar
Today 11:16

Home switches stopping machine but not latching fully

Category: Plasmac

Please share your hal and ini files.
  • Cristy13
  • Cristy13
Today 08:03

7i97T + 7i74 + 7i84U – No Smart Serial Communication

Category: Driver Boards

Thank you very much. I found the problem.
With:
config="sserial_port_0=00000000"
the 7I84U boards are detected correctly.
At the moment I have only two 7I84U boards powered with 28V, and LinuxCNC detects both of them on channels 5 and 7:
hm2_7i97.0.7i84.0.5
hm2_7i97.0.7i84.0.7
So the 7I97T, 7I74, firmware, adapter and DB25 cable are all working correctly.
The main issue was that I was previously using:
config="sserial_port_0=x0xxxxxx"
and I had also misunderstood the physical channel numbering on the 7I74.
I will now power the other two 7I84U boards and test all four.
Thank you again for your help.
  • PCW
  • PCW's Avatar
Yesterday 23:24
Replied by PCW on topic 7i98 and 5abobx3 firmware

7i98 and 5abobx3 firmware

Category: PnCConf Wizard

 

File Attachment:

File Name: 7i98_marslukan.zip
File Size:87 KB


Left the first connector with all 4 5ABOB stepgens
(if you need the stepgen3 pins  as I/O, only
enable 3 stepgens  (0,1,2) in the hal file)

I have included the pinout source file in case you
want to make changes and compile a new bitfile yourself.
  • PCW
  • PCW's Avatar
Yesterday 22:04 - Yesterday 22:10

7i97T + 7i74 + 7i84U – No Smart Serial Communication

Category: Driver Boards

Well naturally, no problem found...

pcw@pcw-HP-Compaq-Elite-8300-USDT:~/bitfiles$ md5sum 7i97t_7i74d.bin
4130ebee623115267327c166f8da9d39  7i97t_7i74d.bin

7I97T with that firmware finds 7I84Us on all (1..7) 7I74 channels
7I74 channel 0 (lower left if facing the jacks) is not used with this firmware
as port 0 channel 0 is on the 7I97T card.

This is with our normal DB25M-IDC26 cable (and 7I74 powered over cable)

For external power make sure you have both the 7I74 and 7I97T Jumpered correctly:
7I97T W22 DOWN
7I74 W1 DOWN

Also note the 7I74 channel 1 is the top/left jack
facing the jacks, they are numbered:

1  3  5  7
0  2  4  6
Displaying 1 - 15 out of 289024 results.
Time to create page: 2.578 seconds
Powered by Kunena Forum