Need help with C41 PWM HAL
05 Mar 2016 02:07 #71071
by rreddy2go
Need help with C41 PWM HAL was created 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 or Create an account to join the conversation.
05 Mar 2016 03:37 #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
The following user(s) said Thank You: rreddy2go
Please Log in or Create an account to join the conversation.
05 Mar 2016 04:29 #71078
by rreddy2go
Replied by rreddy2go on topic Need help with C41 PWM HAL
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.
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 or Create an account to join the conversation.
05 Mar 2016 11:50 #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
Rick G
The following user(s) said Thank You: rreddy2go
Please Log in or Create an account to join the conversation.
05 Mar 2016 14:02 #71084
by rreddy2go
Replied by rreddy2go on topic Need help with C41 PWM HAL
Here is the message that was generated this morning.
Please Log in or Create an account to join the conversation.
05 Mar 2016 17:57 #71089
by cncbasher
Replied by cncbasher on topic Need help with C41 PWM HAL
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
you have a miss configuration somewhere , without seeing your configs , there is nothing we can do
The following user(s) said Thank You: rreddy2go
Please Log in or Create an account to join the conversation.
05 Mar 2016 18:08 #71090
by rreddy2go
Replied by rreddy2go on topic Need help with C41 PWM HAL
Sorry, should have done that from the start. Here it is
Please Log in or Create an account to join the conversation.
06 Mar 2016 08:08 #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
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
The following user(s) said Thank You: rreddy2go
Please Log in or Create an account to join the conversation.
07 Mar 2016 00:38 #71126
by rreddy2go
Replied by rreddy2go on topic Need help with C41 PWM HAL
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
-Jon
Please Log in or Create an account to join the conversation.
07 Mar 2016 00:59 #71127
by dgarrett
Replied by dgarrett on topic Need help with C41 PWM HAL
In your file X2.hal, you have removed critical lines:This omission alone will cause the fault indicated by
addf motion-command-handler servo-thread
addf motion-controller servo-thread
Note that when restoring these lines, the sequencing of the addf lines is important.waiting for s.axes
...
USRMOT: ERROR: command timeout
The following user(s) said Thank You: rreddy2go
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds