VMC related HAL questions.

More
11 years 4 months ago #59491 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote: Linuxcnc does not start.


At a guess that is the [SPINDLE] / [SPINDLE_9] thing.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #59492 by thewho
Replied by thewho on topic VMC related HAL questions.
Changed every [SPINDLE_9] to [SPINDLE] but I still get the same error. :(

EDIT: Added Error, HAL and INI files
Last edit: 11 years 4 months ago by thewho.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #59493 by andypugh
Replied by andypugh on topic VMC related HAL questions.
Ah I see the problem.

You have already loaded 3 x PID for the axes in the first HAL file.
Code:
loadrt pid names=pid.x,pid.y,pid.z,pid.s

You need to load them all at the same time.

So remove the "loadrt pid..." from spindle.hal and make the main HAL file line read:
Code:
loadrt pid names=pid.x,pid.y,pid.z,pid.0,pid.1

It is lucky that the main HAL file uses names= or there would be a lot more editing to do.
(It might have been nice to have called the spindle ones pid.v and pid.p to keep the pattern consistent, but that's more editing)
Last edit: 11 years 4 months ago by andypugh.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #59494 by thewho
Replied by thewho on topic VMC related HAL questions.
Some progress, got another error but I solved that by removing:
Code:
addf pid.s.do-pid-calcs servo-thread

But now it complains about an unknown symbol in module, spindle.hal:8

EDIT: Fixed that one by myself :laugh:
Got a few more, but I'll try to fix them myself
Last edit: 11 years 4 months ago by thewho.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #59495 by thewho
Replied by thewho on topic VMC related HAL questions.
Well I got to feel like I somewhat knew what I was doing..

Now it´s that "motion.spindle-on" is already linked to "velocity-mode" At line 80

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #59498 by andypugh
Replied by andypugh on topic VMC related HAL questions.
Yes, sorry, my error.

Delete line 80 (net spindle-on <= motion.spindle-on )

Please Log in or Create an account to join the conversation.

Time to create page: 0.507 seconds
Powered by Kunena Forum