motion.spindle-at-speed behaviour

More
5 years 6 months ago #206366 by rafferty
My spindle cotrolling hardware has an "at_speed" output which comes in on a 5i25 GPO and connects directly to motion.spindle-at-speed.

when I run this:
Code:
G00 X 0 Y 0 S500 M03 F200 G01 X 25 S1000 G01 X 50 M05 M02
Rapid motion X 0 Y 0, a pause till stable 500 RPM is reached then feed rate motion to X 25. All good so far, but then feed motion just continues to X 50 while the spindle accelerates to 1000 RPM, I was expecting a pause while the spindle came up to speed.

The hardware input and motion.spindle-at-speed are tracking the spindle speed changes, inactive when spindle RPMs are changing and active RPMs are stable.

The HAL man page MOTION(9) says;
Code:
spindle.M.at−speed IN BIT Motion will pause until this pin is TRUE, under the following conditions: before the first feed move after each spindle start or speed change; [deleted spindle sync and CSS part]

I there something else needed to get the man page behaviour?

Also, the man page talks of spindle numbers "spindle.M.<pin-name>" but a halcmd show just shows "spindle.<pin-name>"

Am I missing something?

Ken

Please Log in to join the conversation.

More
5 years 6 months ago #206586 by andypugh

rafferty wrote: Also, the man page talks of spindle numbers "spindle.M.<pin-name>" but a halcmd show just shows "spindle.<pin-name>"


Are you reading the manual for the version of LinuxCNC that you are using?

Though spindle.pin-name is not something that has ever been usual. motion.spindle.pin-name has become spindle.0.pin-name in 2.8 onwards.

Please Log in to join the conversation.

More
5 years 6 months ago #206587 by andypugh
As for the actual behaviour, have you checked if the spindle-at-speed pin goes false at the speed shift?

Please Log in to join the conversation.

More
5 years 6 months ago #206640 by rafferty

andypugh wrote: Are you reading the manual for the version of LinuxCNC that you are using?

No, which could well be the problem. I was looking at man pages dated 2021-04-15, which is a lot later than Pathpilot 1.

As for the actual behaviour, have you checked if the spindle-at-speed pin goes false at the speed shift?

Yes, the at_speed pin goes false when the RPMs are changing and true when stable again (hal;show).

PP 1 is getting old, Lucid vintage so I've started the move to PP 2 (again). Not hard to do, I can run my mill on a clean install of PP2, just need to change the ini SCALEs. It's making the computer 'nice' and installing all the other things I run on it that put me off.

There are significant (to me) differences between Pathpilot 1 and 2 as well, ".so" versus ".ko" hal modules, it's not "run-in-place", and the "other" sort of kernel. Some of which cause me some confusion.

I'll sit on the at-speed problem until I get sorted again.

Thanks for you assistance with my difficulties.

Ken.

Please Log in to join the conversation.

More
5 years 6 months ago #206736 by andypugh
Do you know how PP2 and PP2 map on to LinuxCNC versions?

Is PP even LinuxCNC. or is it Machinekit?

Please Log in to join the conversation.

More
5 years 6 months ago #206750 by Vmax549
PP2 seems to be about 50% linuxcnc coding and 50% tormachs own coding.

Just a thought, (;-) TP

Please Log in to join the conversation.

More
5 years 6 months ago #206757 by rafferty

andypugh wrote: Do you know how PP2 and PP2 map on to LinuxCNC versions?
Is PP even LinuxCNC. or is it Machinekit?

Collective wisdom here says it's LlinuxCNC, I know nothing of Machinekit, visted the website first time today.

In much poking around I've never seen a mention of Machinekit.

PathPilot 1 is LinuxCNC 2.6.0~pre and kernel 2.6.32-rtai

PathPilot 2 is LinuxCNC 2.8.0~pre1 and kernel is 4.11.9-rt7 REEMPT

Vmax549
PP2 seems to be about 50% linuxcnc coding and 50% tormachs own coding.


Only the PathPilot UI is tormach's work, I think the rest is pure LinuxCNC. The UI is a substantial piece of work all the same. I only wish they didn't feel the need to strip out all the bits they don't need from both LinuxCNC and the underlying Linux.

Ken.

Please Log in to join the conversation.

More
5 years 6 months ago #206893 by andypugh

rafferty wrote:

andypugh wrote: Do you know how PP2 and PP2 map on to LinuxCNC versions?
Is PP even LinuxCNC. or is it Machinekit?

Collective wisdom here says it's LlinuxCNC, I know nothing of Machinekit, visted the website first time today.


I asked Tormach tech support. They didn't know :-/

Please Log in to join the conversation.

More
5 years 6 months ago #206903 by rafferty

andypugh wrote: I asked Tormach tech support. They didn't know :-/


Well that inspires confidence!

I've had some a small amount of contact with them and they were informative and pleasant.

Downloaded Machinekit just for a look, it appears to be LinuxCNC rebranded with a bit of renaming and soft linking.

Ken

Please Log in to join the conversation.

More
5 years 5 months ago #208531 by rafferty
Have done a bit more testing of motion.spindle-at-speed. With this program:
Code:
G21 S400 M03 G00 X 0 Y 0 F100 G01 X 10 S1000 G01 X 20 Y10 M02
table motion pauses for a very short fraction of second at the speed change and then continues as the spindle accelerates to 1000RPM.

Added some dwell time to force a pause at the speed change:
Code:
G21 S400 M03 G00 X 0 Y 0 F100 G01 X 10 S1000 G04 P 1.0 G01 X 20 Y10 M02
this works, table motion stops at the speed change, waits for a stable 1000 RPM, then the motion continues. My spindle takes much longer than the 1 second dwell time to change from 400 to 1000RPM, more like three seconds. The pause appears to trick LinuxCNC into honouring the motion.spindle-at-speed input.

Now I wanted to find the minimum dwell time that would result in the correct (documented) motion.spindle-at-speed behaviour.

A dwell of 0.1 seconds doesn't work, neither does 0.15 seconds but 0.2 seconds does.

What's the significance of 0.2 second dwell?

This is with PathPilot version 1, LinuxCNC 2.6.0~pre and kernel 2.6.32-rtai.

I do really have to get my act together and update.

Please Log in to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum