Need help with C41 PWM HAL

More
10 years 7 months ago #71071 by rreddy2go
Hello, I've trying to gain spindle control using a CNC4PC C41 PWM to control my X2 spindle. I've gone through the basic HAL tutorial as well as the spindle control examples on the website. I thought that I had a grasp of what was needed, but the attached HAL resulted in a kernel panic. If anyone could give me some advice on what I'm doing wrong, I would greatly appreciate it. A working HAL example would be even better.

Please Log in to join the conversation.

More
10 years 7 months ago #71074 by PCW
Replied by PCW on topic Need help with C41 PWM HAL
A panic is probably unrelated to your hal file and more likely related to a general problem

Please Log in to join the conversation.

More
10 years 7 months ago #71078 by rreddy2go
Andy,
I've been unable to reproduce the kernel panic. But when I try to start linuxcnc, the debug information says that a configuration error is preventing linuxcnc from starting.

Please Log in to join the conversation.

More
10 years 7 months ago #71082 by Rick G
Replied by Rick G on topic Need help with C41 PWM HAL
Best if you post the error information.

Rick G

Please Log in to join the conversation.

More
10 years 7 months ago #71084 by rreddy2go
Here is the message that was generated this morning.

Please Log in to join the conversation.

More
10 years 7 months ago #71089 by cncbasher
please post in full , your config folder as an archive and attach to this thread .,
you have a miss configuration somewhere , without seeing your configs , there is nothing we can do

Please Log in to join the conversation.

More
10 years 7 months ago #71090 by rreddy2go
Sorry, should have done that from the start. Here it is

Please Log in to join the conversation.

More
10 years 7 months ago #71110 by Rick G
Replied by Rick G on topic Need help with C41 PWM HAL
Did you have a configuration that did work before you added the spindle control?
If so try commenting out what was added for the spindle control to make sure you have a good basic configuration.
You can then start uncommenting the lines to see where the stumbling block is.

Rick G

Please Log in to join the conversation.

More
10 years 7 months ago #71126 by rreddy2go
Rick, I do have the configutation that was generated by stepgen after I installed a 2nd parallel port & did a clean install of LinuxCNC 2.7.4 Debian. I had to modify it to get a C6 working. The modified config is the one I use as the "keeper" to fall back on when my C41 modifications don't work.
-Jon

Please Log in to join the conversation.

More
10 years 7 months ago #71127 by dgarrett
Replied by dgarrett on topic Need help with C41 PWM HAL
In your file X2.hal, you have removed critical lines:
Code:
addf motion-command-handler servo-thread addf motion-controller servo-thread
This omission alone will cause the fault indicated by

waiting for s.axes
...
USRMOT: ERROR: command timeout

Note that when restoring these lines, the sequencing of the addf lines is important.

Please Log in to join the conversation.

Time to create page: 0.103 seconds
Powered by Kunena Forum