VMC related HAL questions.

More
11 years 4 months ago #59600 by thewho
Replied by thewho on topic VMC related HAL questions.
When M19 is active there is no speed command, it just enables the spindle so the rotation is just the drive drifting slowly.

So how do I specify orient tolerance?
Code:
setp orient.0.tolerance (number)

Added a screenshot of hal config. M3 s60 is active.

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

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

thewho wrote: When M19 is active there is no speed command, it just enables the spindle so the rotation is just the drive drifting slowly.

The speed command should come from the position PID.

Do you see any output from the PID (if not, have you tuned it?, are the gains being read in from the INI correctly?)
When you say there is no speed command, where are you looking?

So how do I specify orient tolerance?

Code:
setp orient.0.tolerance (number)

Yes, just like that. In degrees.

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

More
11 years 4 months ago - 11 years 4 months ago #59603 by thewho
Replied by thewho on topic VMC related HAL questions.

andypugh wrote: When you say there is no speed command, where are you looking?

I'm not looking at any pins, the fact that I can stop the spindle with a light touch tells me that there probably is no speed output.

The screenshot shows a pid.0.output of 325.1263.
Now that I think of it, the pid might might work correctly. If the speed command the pid.0 gets is wrong. The x6 speed problem I still have.

Is it line 11 I should edit?
Code:
net spindle-vel-cmd motion.spindle-speed-out pid.0.command
To this?
Code:
net spindle-vel-cmd motion.spindle-speed-out-rps pid.0.command

Can I write the tolerance like this?
Code:
setp orient.0.tolerance [SPINDLE]ORIENT_TOLERANCE
And then add this line to the ini.
Code:
ORIENT_TOLERANCE = (number)
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 #59604 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote:

andypugh wrote: When you say there is no speed command, where are you looking?

I'm not looking at any pins, the fact that I can stop the spindle with a light touch tells me that there probably is no speed output.

Are you talking about position mode or velocity mode here?

The screenshot shows a pid.0.output of 325.1263.

But orient mode should be using pid.1. You need to see what that one is doing to get orient to work.

Is it line 11 I should edit?

Code:
net spindle-vel-cmd motion.spindle-speed-out pid.0.command
To this?
Code:
net spindle-vel-cmd motion.spindle-speed-out-rps pid.0.command

Can I write the tolerance like this?
Code:
setp orient.0.tolerance [SPINDLE]ORIENT_TOLERANCE
And then add this line to the ini.
Code:
ORIENT_TOLERANCE = (number)


Yes to all the above.

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

More
11 years 4 months ago #59608 by thewho
Replied by thewho on topic VMC related HAL questions.
1. position
2. velocity (M3 S60)

I don't know when I can try anything on the machine next time, probably next weekend though :angry:

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

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

thewho wrote: I don't know when I can try anything on the machine next time, probably next weekend though :angry:


Sorry not to have been more help. I really don't understand why this is being so difficult.

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

Time to create page: 0.405 seconds
Powered by Kunena Forum