Advanced Search

Search Results (Searched for: )

  • Serhii
  • Serhii
05 Feb 2025 11:09
Semi-realtime hal component was created by Serhii

Semi-realtime hal component

Category: HAL

Dear community,

I have the following setup

Computer                Debian RT                                    XYZ closed
Vision <==(ethernet)==> Linux CNC <=========> Mesa 7i96 <=========> loop rotating
PC                        PC with dual                                platform
(CVPC)                  ethernet (CNCPC)                            (no encoders)

CVPC independently processes visual information in realtime (15-20FPS or 50-65ms) and computes the target position for the rotating platform.
This information is communicated via ethernet to CNCPC using low-latency messaging library (e.g. ZeroMQ) that has support in both python and C++.
Based on the target position information the rotating platfrom can:
a) Start movement to the given position
b) Abandon the last target position (even if the move hasn't finished yet) and update it with the newly available data. Start rapid movement to the target position.

My questions are mostly:
1. Should my component be realtime or non-realtime. Even though 15-20FPS is guaranteed, the exact timings when new position measurements arrive are not strictly defined. Communication in ZeroMQ can be blocking, i.e. wait on the function call and return if a message has arrived or non-blocking, i.e. check for new messages in a loop. So, the arrival of new data is not realtime, but target position update should be performed asap.
2. How can I update the target position in HAL (e.g. with axis or motion) such that velocity and acceleration are updated properly? As mentioned above the last movement might be still ongoing, so it has to be interrupted and the new move started.

I did my best and went through the documentation and the following forum topics:
forum.linuxcnc.org/24-hal-components/409...position-in-realtime
forum.linuxcnc.org/38-general-linuxcnc-q...ontrol-with-linuxcnc
forum.linuxcnc.org/38-general-linuxcnc-q...r-cnc-control-in-c-c
forum.linuxcnc.org/24-hal-components/528...bot-arm-in-real-time
forum.linuxcnc.org/38-general-linuxcnc-q...391-realtime-control

Unfortunately, I haven't found the recipe suitable for me. Also, there is a chance I might have overlooked the right solution cause I am still quite new to the LinuxCNC ecosystem. Any help is appreciated. Thank you!
 
  • unknown
  • unknown
05 Feb 2025 11:01
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

There is a commit pending with etherlab or the 6.11 kernel and up which also should let ethercat on 6.12 work for us.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
 

I had a look at the ethercat DKMS package (extracted the package in a temporary directory, no need to do an install), and what I saw is that the source of the modules have ending with 5.14 & 6.1 before the .c .h extension (I'm guessing these are the supported kernels). I'd get confirmation that the commit for 6.11 will work for 6.12.
  • unknown
  • unknown
05 Feb 2025 10:54
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hello everyone,

I started to work with linuxcnc only a few weeks ago, when I decided to upgrade my 3d printer with A and B axis.
Because my pi4 was starting to jitter I acquired a pi5. :) As one does.. :)

I etched the image 2.94 for pi5 to an SD card. Running this image, GPIO is not working.

halcmd loadrt hal_gpio help
Note: Using POSIX realtime
Invalid parameter `help'
<commandline>:0: waitpid failed /usr/bin/rtapi_app hal_gpio
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for hal_gpio failed, returned -1
cnc@raspberrypi:~$

I dont have the knowledge to troubleshoot this. Unfortunately. Maybe somebody here know how to solve this.

kind regards,
JAiro
 

halcmd loadrt hal_gpio help
Invalid parameter `help' <<<<< this is the error from the above, Linux is pretty verbose in telling you what is wrong.

But you really need to read the man page
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html

 
  • RNJFAB
  • RNJFAB
05 Feb 2025 10:16 - 05 Feb 2025 11:10

Homemade CNC Plasma - hypertherm, Mesa, gear drives, nema 34.

Category: Show Your Stuff

Thanks PCW.

Yes, I had the Ohmic sensing into the B encoder input on TB2.

Once this was unpluged, Encoder velocity stayed at 0. or flucuated to -3750.

Grounded everything i could and moved plasma source 30cm further away.

And hey presto.





 
  • jpg
  • jpg
05 Feb 2025 10:01

caxis.comp - How to freewheel axis/spindle?

Category: HAL

From memory, GEANY can convert WORPAD, MS-DOS text to text format, and has a function for this in the program.
  • my1987toyota
  • my1987toyota's Avatar
05 Feb 2025 09:58
Replied by my1987toyota on topic Voron Life , for anyone going into 3D printing !

Voron Life , for anyone going into 3D printing !

Category: Additive Manufacturing

HMMM. Let's see, how much I.O. do I need? Might just try that in the future.
  • rodw
  • rodw's Avatar
05 Feb 2025 09:56
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

There is a commit pending with etherlab or the 6.11 kernel and up which also should let ethercat on 6.12 work for us.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
  • Martin.L
  • Martin.L
05 Feb 2025 09:29
Replied by Martin.L on topic Rack Tool Changer

Rack Tool Changer

Category: QtPyVCP

Can you share the files? Using Gcode how LCNC know where are the XYZ coordinates of a tool?
  • rodw
  • rodw's Avatar
05 Feb 2025 09:12
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

hal_gpio uses a newer method that is meant to support other ARM hardware, not just the PI. Code changes at the kernel never stops!
  • jjdege
  • jjdege's Avatar
05 Feb 2025 09:04 - 05 Feb 2025 09:07
Replied by jjdege on topic Rack Tool Changer

Rack Tool Changer

Category: QtPyVCP

yes exactly, a sequence of gcode linked to the buttons on the gui
with cycle stop and error message in case something goes wrong
Displaying 19501 - 19510 out of 19510 results.
Time to create page: 0.700 seconds
Powered by Kunena Forum