Advanced Search

Search Results (Searched for: )

  • JT
  • JT's Avatar
12 May 2024 13:03
Replied by JT on topic Tool Velocity

Tool Velocity

Category: Other User Interfaces

  • JT
  • JT's Avatar
12 May 2024 12:15
Replied by JT on topic Tool Velocity

Tool Velocity

Category: Other User Interfaces

If you want the the tool velocity (X,Y,Z)  you can use motion.current-vel

If you want just X,Y as rodw says you can use Pythagoras
(see the hypot hal component)
 

I should have mentioned that this is using the Python Interface and motion.current-vel is not a status item.

The status velocity:
[b]velocity[/b]
[i](returns float)[/i] - This property is defined, but it does not have a useful interpretation.

The axis velocity only returns the jogging velocity for each axis
[b]velocity[/b]
[i](returns float)[/i] - current velocity.

The joint velocity works all the time
[b]velocity[/b]
[i](returns float)[/i] - current velocity.

What I came up with is to use the joint velocity and some math.
    # two joint velocity
    for key, value in parent.two_vel.items():
        vel_0 = getattr(parent, 'status').joint[value[0]]['velocity']
        vel_1 = getattr(parent, 'status').joint[value[1]]['velocity']
        vel = sqrt((vel_0 * vel_0) + (vel_1 * vel_1))
        getattr(parent, key).setText(f'{vel * 60:.{value[2]}f}')

    # three joint velocity
    for key, value in parent.three_vel.items():
        vel_0 = getattr(parent, 'status').joint[value[0]]['velocity']
        vel_1 = getattr(parent, 'status').joint[value[1]]['velocity']
        vel_2 = getattr(parent, 'status').joint[value[2]]['velocity']
        vel = sqrt((vel_0 * vel_0) + (vel_1 * vel_1) + (vel_2 * vel_2))
        getattr(parent, key).setText(f'{vel * 60:.{value[3]}f}')

Seems to work and mirror what Axis reports.

JT
  • Swag
  • Swag's Avatar
12 May 2024 11:59

Latency, error finishing read, and IRQ affinity

Category: General LinuxCNC Questions

It is four core, at least according to everything I have read.  I increased the servo-thread to 2000000 and halved the P values and that actually had an effect, but it still errored out after a while, it just took longer.  Temps are nil, 30° while running a program in LCNC.  I am going to test everything again under 2.8 and maybe try a SEEED Odyssey I have here.  
acpitz-acpi-0
Adapter: ACPI interface
temp1:        +31.0°C  (crit = +100.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +31.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +31.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +31.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:        +31.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:        +30.0°C  (high = +105.0°C, crit = +105.0°C)
  • tommylight
  • tommylight's Avatar
12 May 2024 11:00
Replied by tommylight on topic Latency, error finishing read, and IRQ affinity

Latency, error finishing read, and IRQ affinity

Category: General LinuxCNC Questions

Is the processor 4 core or 2 core 4 thread one? Set that to 2 and do some tests just in case. Also try 1, but that might make the PC slouchy.
In general, disable hyperthreading, power saving, virtualisation, TPM, turbo mode, pci-e agressive link management, C states.
In some cases disabling sound helps, also disable serial ports if any and modem.
Open a terminal, type
Sensors
Then start LinuxCNC, enable it and try to jog, then go to terminal and again type sensors, notice the processor temperature. If it goes above 60-70C, open the PC, remove CPU cooler, clean, repaste, mount the cooler. Test again.
  • tommylight
  • tommylight's Avatar
12 May 2024 10:42
Replied by tommylight on topic 7i96S PSU

7i96S PSU

Category: Driver Boards

In case anyone needs 5 and 12V only, buy a PC power supply from Seasonic.
All new PC power supplies i have dismantled have a 12V rail only and the rest is done by dc-dc converters.
Word of warning though, they easily do 50 to 100A at 12V so shorts are very sparky! :)
They also have very good protections. In short, they are much higher quality than Meanwell, by far.
  • Swag
  • Swag's Avatar
12 May 2024 09:31

Latency, error finishing read, and IRQ affinity

Category: General LinuxCNC Questions

I've now gone through the BIOS and think I have everything set as it should be and there is no change. Also had it allocate a fixed RAM for the onboard graphics since it sort of felt like the error would happen more quickly if I resized the linuxcnc window, but I don't think that was anything more than coincidence. Ping looks fine. I think the latency seems fine.
p2user@P2CNC:~$ ping 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.175 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.250 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.111 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.104 ms
64 bytes from 10.10.10.10: icmp_seq=5 ttl=64 time=0.103 ms
64 bytes from 10.10.10.10: icmp_seq=6 ttl=64 time=0.103 ms
64 bytes from 10.10.10.10: icmp_seq=7 ttl=64 time=0.105 ms
64 bytes from 10.10.10.10: icmp_seq=8 ttl=64 time=0.102 ms
^C
--- 10.10.10.10 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7146ms
rtt min/avg/max/mdev = 0.102/0.131/0.250/0.050 ms

ip setup seems similar to others with working setups and the correct IP address is being used in the script.
p2user@P2CNC:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 70:85:c2:ad:9e:e6 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.11/8 brd 10.255.255.255 scope global noprefixroute enp2s0
       valid_lft forever preferred_lft forever
3: enx0022cfe5777f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:22:cf:e5:77:7f brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.145/24 brd 192.168.178.255 scope global dynamic noprefixroute enx0022cfe5777f
       valid_lft 862956sec preferred_lft 862956sec
    inet6 2003:d3:f30:2b00:30fc:d47e:260c:1afb/64 scope global temporary dynamic 
       valid_lft 7152sec preferred_lft 1105sec
    inet6 2003:d3:f30:2b00:222:cfff:fee5:777f/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 7152sec preferred_lft 1105sec
    inet6 fe80::222:cfff:fee5:777f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Again this all works fine with debian 10 and linuxcnc 2.8.  I am kind of at a loss at this point, though I feel like this is some simple config problem that I am overlooking.

 
  • Aciera
  • Aciera's Avatar
12 May 2024 09:30

Need help in implementing kinematics of 5 axis XYZAB configuration

Category: Advanced Configuration

You will need a custom kinematic for that. I did some work for a 6 axis kinematic that should also work for you. Have a look at the 'xyzacb-trsrn' config in the zipped folder here:
forum.linuxcnc.org/show-your-stuff/49103...-head?start=0#271334

Notes:
- for your purpose set the 'nutation-angle' to 90
- leave the C spindle rotary at 0 (ie just ignore it since your machine does not have a C-axis)
- for more information have a look at the Documentation folder included


 
  • pietxs
  • pietxs
12 May 2024 09:25
Replied by pietxs on topic Mesa 5i25t mit 7i77 und 7i74

Mesa 5i25t mit 7i77 und 7i74

Category: CNC Machines

After the 5i25 could no longer be reached, I set jumper W5 to up and restarted. Now I could access the map again. I then installed a different firmware and after --reload the done LED was off. FPGA ok.

Then I tried the following again:
pietxs@MahoMH700:~$ cd linuxcnc/Mesafirmware/5i25t_7i77_7i74d
pietxs@MahoMH700:~/linuxcnc/Mesafirmware/5i25t_7i77_7i74d$ sudo mesaflash --device 5i25t --write 5i25t_7i77_7i74d.bin
[sudo] Password for pietxs:
Checking file... OK
File type: Efinix bin file
FLASH memory sectors to write: 11, max sectors in area: 16
Erasing FLASH memory sectors starting from 0x100000...
|EEEEEEEEEEEE
Programming FLASH memory sectors starting from 0x100000...
|WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
Board configuration updated successfully.
Checking file... OK
File type: Efinix bin file
Verifying FLASH memory sectors starting from 0x100000...
|VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Board FLASH memory verified successfully.

You must power cycle the hardware or use the --reload command to load a new firmware.
pietxs@MahoMH700:~/linuxcnc/Mesafirmware/5i25t_7i77_7i74d$ sudo mesaflash --device 5i25t --reload
Waiting for FPGA configuration...OK
pietxs@MahoMH700:~/linuxcnc/Mesafirmware/5i25t_7i77_7i74d$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_pci
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25t at 0000:01:0a.0
hm2/hm2_5i25.0: Low level init 0.15
hm2/hm2_5i25.0: invalid cookie, got 0xFFFFFFFF, expected 0x55AACAFE
hm2/hm2_5i25.0: FPGA failed to initialize, or unexpected firmware?
hm2_5i25.0: board fails HM2 registration
RTAPI_PCI: Unmapped 65536 bytes at 0x7f710e3c4000
Driver probe function failed!
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_pci
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_pci failed, returned -1
halcmd:

Now the Done LED is permanently on again.
  • amanker
  • amanker
12 May 2024 09:12

Need help in choosing controller board from small honby cnc.

Category: Driver Boards

Thanks bro,
I am using official LinuxCNC image for RPI4, its working good. Axis, gscreen, pyvcp gtdragon skins working properly. I liked gtdragon gui but I have 7" 1024x600 resolution screen which is not suitable for this, it needs 1280x720 at least. Trying to resize the screen.
But first I should have fully working machine with remora.

For PWM spindle configuration. The link you provided were for 0-10v spindle. Not for only PWM based cheap chinese spindle. So I took axample from LinuxCNC documents, then pins assignment as per your configuration was type mismatch. Assigned pwm pin as regular output pin. That worked and tested pin output with multimeter not on actual spindle.
  • Abdulkareem
  • Abdulkareem
12 May 2024 09:10
Replied by Abdulkareem on topic Ethercat Salve

Ethercat Salve

Category: EtherCAT

Thank you, problem solved. KERNEL=="EtherCAT[0-9]", MODE="0777" was masking the mac address
  • Ehsan_R
  • Ehsan_R
12 May 2024 09:05 - 12 May 2024 09:07
Replied by Ehsan_R on topic Homing using index

Homing using index

Category: PnCConf Wizard

Thank you very much for your reply
Yes I had set hal as you said
Actually I want the axis to stop immediately after receiving the index pulse and then set that position as the device origin
  • amanker
  • amanker
12 May 2024 08:54

Need help in implementing kinematics of 5 axis XYZAB configuration

Category: Advanced Configuration

I have modified my hobby grade machine to implement 5 axis. According to my requirements I have decided to go for A Rotary axis and rotary head in B. That will give me 4 axis maching which I will planning to use mostly with max stock length and if my peice require 5 axis toolpath, then I can switch to that without changing table.
I have all this implemented in grbl and tested it. Now I want to venture into LinuxCNC world. Since GRBL dont support RTCP. I have searched net and LinuxCNC documents but didn't found info about XYZAB configuration. Didn't even seen youtube videos about this configuration. Here is link to my machine video, it will help in understanding what type of configuration I am using.
www.reddit.com/r/hobbycnc/s/RgIzLvVqyw

Any help in this regard will be highly appreciated.
  • pietxs
  • pietxs
12 May 2024 08:53
Replied by pietxs on topic Mesa 5i25t mit 7i77 und 7i74

Mesa 5i25t mit 7i77 und 7i74

Category: CNC Machines

Hello, thank you very much for sending the bin file.
I uploaded via mesaflsh, everything worked.

Unfortunately, after restarting and powering down, the Done LED on the 5i25t lights up permanently.

The following commands produced this error:
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_pci
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: rtapi_app_main: No such device (-19)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_pci
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_pci failed, returned -1
halcmd: hm2: unloading
Note: Using POSIX realtime

Jumper W5 is in down position.

What did i do wrong.

With the old firmware, the 7i77 was recognized on P3 and all pins were accessible.

Thank you in advance
  • Ehsan_R
  • Ehsan_R
12 May 2024 08:48
Replied by Ehsan_R on topic Homing using index

Homing using index

Category: PnCConf Wizard

What I observed is that:
When the homing switch signal is received, the axis value becomes zero, but the encoder position value does not become zero.
Then, when the index pulse is received, the position value of the encoder becomes zero.
It seems that this difference in resetting the axis value and encoder position causes an additional movement during homing.
Can anyone tell me how I can find out how the homig algorithm of LinuxCNC works?
  • Aciera
  • Aciera's Avatar
12 May 2024 08:12 - 12 May 2024 08:21

gmocappy home aller achsen , Verfahrgeschwindigkeit zu langsam, tasten geht nich

Category: Gmoccapy

'Probe Basic' is ein eigenes GUI. Meinst du vielleicht 'Probe Screen' ? :
forum.linuxcnc.org/gmoccapy/36522-probe-screen-in-gmoccapy

Für LinuxCNC 2.9.x gilt für Gmoccapy das Gleiche wie schon hier geschrieben:
forum.linuxcnc.org/38-general-linuxcnc-q...tellung-nicht#298081

[edit]
Da war mal was, ob das so wirklich funktioniert kann ich aber nicht mit Sicherheit sagen:
forum.linuxcnc.org/49-basic-configuratio...obe?start=650#277215
Displaying 26416 - 26430 out of 26482 results.
Time to create page: 0.766 seconds
Powered by Kunena Forum