SOLVED: CSS G96 with CCW spindle M4 on lathe

More
10 Jan 2025 20:17 - 11 Jan 2025 10:47 #318660 by haham
Good evening,

G96 constant surface speed on my lathe works fine with CW spindle movement. Now I want to use an upside down parting tool with CCW spindle rotation.
G54
G40
G97 S50 ; start with low rpm
M4 ; switch spindle on CCW
G0X10 ; start diameter
G96 D3000 S12 ; CSS max 3000 rpm, 12 m/min
G96 F0.02 ; 0,02 mm feed per rotation for parting
G1 X0 ; start parting

But the x-axis does not move. It works with M3 instead M4. Gmoccapy shows correct -350 rpm (minus!) during M4. I assume, that feed does not start because it waits for positive spindle speed.

Do I realy have to use a separate HAL file with negated spindle feedback?

Best regards,

Hartmut
Last edit: 11 Jan 2025 10:47 by haham. Reason: Formating was wrong

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

More
11 Jan 2025 03:43 #318682 by PCW
It may be possible to work around this by using some hal trickery:

A scale component and mux component to change the scale from 1 to -1
when desired.

But I do not know what LinuxCNC motion component expects.
It seems odd that a negative spindle speed would not be acceptable
for g96 when m4 is in effect.
 
The following user(s) said Thank You: haham

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

More
11 Jan 2025 10:45 #318687 by haham
Thank you.

I found out, that the in my spindle-at-speed detection I used the absolute value instead of the signed value. So I only changed
spindle.0.speed-out-abs
to
spindle.0.speed-out
and it worked.

Hartmut

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

More
11 Jan 2025 14:39 #318690 by PCW
That's even better!

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

Time to create page: 0.112 seconds
Powered by Kunena Forum