- Posts: 3
- Thank you received: 0
SOLVED: CSS G96 with CCW spindle M4 on lathe
1 year 9 months ago #318660
by haham
SOLVED: CSS G96 with CCW spindle M4 on lathe was created 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.
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
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.
1 year 9 months ago #318682
by PCW
Replied by PCW on topic SOLVED: CSS G96 with CCW spindle M4 on lathe
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.
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.
1 year 9 months ago #318687
by haham
Replied by haham on topic SOLVED: CSS G96 with CCW spindle M4 on lathe
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
to
and it worked.
Hartmut
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
Code:
spindle.0.speed-out
Hartmut
Please Log in to join the conversation.
Time to create page: 0.206 seconds
