SOLVED: CSS G96 with CCW spindle M4 on lathe
- haham
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 Jan 2025 20:17 - 11 Jan 2025 10:47 #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.
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.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17945
- Thank you received: 4814
11 Jan 2025 03:43 #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.
The following user(s) said Thank You: haham
Please Log in or Create an account to join the conversation.
- haham
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
11 Jan 2025 10:45 #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
toand 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
spindle.0.speed-out-abs
spindle.0.speed-out
Hartmut
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17945
- Thank you received: 4814
11 Jan 2025 14:39 #318690
by PCW
Replied by PCW on topic SOLVED: CSS G96 with CCW spindle M4 on lathe
That's even better!
Please Log in or Create an account to join the conversation.
Time to create page: 0.112 seconds