VMC related HAL questions.

More
11 years 4 months ago #59514 by thewho
Replied by thewho on topic VMC related HAL questions.
It complains that "spindle-pos-cmd" is float and or2 wants bit.

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

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

thewho wrote: It complains that "spindle-pos-cmd" is float and or2 wants bit.


Sorry, yes.
I should have used the orient-mode and position-mode signals.

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

More
11 years 4 months ago #59524 by thewho
Replied by thewho on topic VMC related HAL questions.
I just stood by the machine doing G33.1 over and over with my mouth wide open :woohoo:
I can't thank you enough Andy!
The spindle encoder was apparently not connected correct, but with a little hal-scoping i figured out that index and A was inverted. Quick fix and then it worked! :laugh:

A question though, when I write M19 in MDI mode nothing happens. Do i need to specify the R,Q,P parameters or is there something else?

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

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

thewho wrote: A question though, when I write M19 in MDI mode nothing happens. Do i need to specify the R,Q,P parameters or is there something else?


It should work.

Time to check things out with the HAL tools. Try opening "show hal config" and selecting the watch tab, then adding the motion.spindle-orient, the orient component pins, the angle, hm2_5i25.0.7i77.0.1.spinena, the PID inputs and outputs and enable, etc

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

More
11 years 4 months ago #59531 by thewho
Replied by thewho on topic VMC related HAL questions.
I can't get pid.1 (position) to react.
"Motion.spindle-is-oriented" is always lit, that can't be right?

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

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

thewho wrote: I can't get pid.1 (position) to react.
"Motion.spindle-is-oriented" is always lit, that can't be right?


No, that is likely to be the problem.

The issue here is one of calculation order. The near.0 calculation is happening before the orient component can calculate a new position, so the motion system gets the signal that orient is over before it even begins.

The best solution is to use a different version of "orient" that I have written which outputs a pin to drive motion.spindle-is-oriented.

For testing just comment-out the line
Code:
net spindle-in-pos near.0.out motion.spindle-is-oriented

But the best solution is to comp --install the modified orient component, remove all references to near.0 and have
Code:
net spindle-in-pos orient.0.is-oriented => motion.spindle-is-oriented

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

Time to create page: 0.426 seconds
Powered by Kunena Forum