SOLVED: CSS G96 with CCW spindle M4 on lathe

More
1 year 9 months ago #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.
Code:
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

Please Log in to join the conversation.

More
1 year 9 months ago #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.
 

Please Log in to join the conversation.

More
1 year 9 months ago #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
Code:
spindle.0.speed-out-abs
to
Code:
spindle.0.speed-out
and it worked.

Hartmut

Please Log in to join the conversation.

More
1 year 9 months ago #318690 by PCW
That's even better!

Please Log in to join the conversation.

Time to create page: 0.206 seconds
Powered by Kunena Forum