motion.spindle-at-speed behaviour

More
19 Apr 2021 08:53 #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:
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;
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 or Create an account to join the conversation.

More
20 Apr 2021 23:25 #206586 by andypugh

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 or Create an account to join the conversation.

More
20 Apr 2021 23:26 #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 or Create an account to join the conversation.

More
21 Apr 2021 13:18 #206640 by rafferty

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 or Create an account to join the conversation.

More
21 Apr 2021 23:14 #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 or Create an account to join the conversation.

More
22 Apr 2021 00:44 #206750 by Vmax549
PP2 seems to be about 50% linuxcnc coding and 50% tormachs own coding.

Just a thought, (;-) TP

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

More
22 Apr 2021 02:12 #206757 by rafferty

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 or Create an account to join the conversation.

More
23 Apr 2021 22:41 #206893 by andypugh

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 or Create an account to join the conversation.

More
24 Apr 2021 00:11 #206903 by rafferty

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 or Create an account to join the conversation.

More
11 May 2021 09:38 #208531 by rafferty
Have done a bit more testing of motion.spindle-at-speed. With this program:
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:
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 or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.169 seconds
Powered by Kunena Forum