Advanced Search

Search Results (Searched for: )

  • RicardoCNC
  • RicardoCNC
05 Jan 2025 16:05

HAL Component Issues with Custom Hardware (Data Sharing and Pin Initialization )

Category: HAL

Dear LinuxCNC Enthusiasts,

I’m new to LinuxCNC and working on a custom setup. My hardware includes a PCI board (not Mesa or parallel port), which handles real-time interrupts. The drives manage their own position PID loops; they only require the theoretical trajectory, which I provide via a proprietary protocol using a custom library. Feedback data, like actual position, is also available if needed.Since my setup is non-standard, I’ve manually created the necessary INI, HAL, and HAL C files. However, I’m encountering the following errors:   
HAL: ERROR: pin_new(my_handler.0-pos-cmd) called with already-initialized memory
HAL: ERROR: data_ptr_addr not in shared memory
Failed to create x_pos_cmd pin.


I use hal_malloc, and insure proper initialitation, but the errors persist.The 3 files that i use are attached. At this point, i would just need a sample to a component that will simply print out the theoritical possition and sent back this theoritical position as the real position (just for the example)I’d greatly appreciate guidance on debugging or examples of similar setups.

Thanks in advance for your help!
  • gardenweazel
  • gardenweazel's Avatar
05 Jan 2025 15:38
Replied by gardenweazel on topic QTDesigner PATH issue

QTDesigner PATH issue

Category: General LinuxCNC Questions

That's all that was returned. The GUI started but, without the Linuxcnc plugins.

It appears as if the ICONPATH either defaults to NONE or has been defined as NONE.
The frozen posixpath is referring to the built-in OS lib. 

Should this line be:
ICONPATH = os.path.join(INFO.LIB_PATH, 'images/probe_icons')

instead of:
 ICONPATH = os.path.join(PATH.find_image_path(), 'probe_icons')

I just haven't had time to fully test. I'll look into it later the afternoon if I get a chance.
 
  • ihavenofish
  • ihavenofish
05 Jan 2025 14:48
Replied by ihavenofish on topic Mini wannabe datron build

Mini wannabe datron build

Category: CNC Machines

Ah, yes, sorry. I got this used from tivoi :)

I'm gonna start reconfiguring my wiring and mesa cards tonight.

Also trying to map out my air system.

- spindle release/taper clean
- spindle nose bearing purge
- MQL coolant
- air blast
- laser tool setter clean out

Hmmm.

Wonder how to arrange that.
Displaying 20521 - 20523 out of 20523 results.
Time to create page: 0.481 seconds
Powered by Kunena Forum