Lathe pauses at N21

More
17 Nov 2020 20:31 #189616 by Flyer007
Lathe pauses at N21 was created by Flyer007
Below is the begining of a file from Fusion360 processed with the Linuxcnc turn processor with default settings. Running it on a small sherwin clone, no spindle control.

The X,Z moves from centered zero point to the start of the N21 line where I expect a cut down the Z axis but machine pauses and waits. What is it waiting for??

The sample pawn file works BTW.

%
(LATHETEST)
N10 G7
N11 G18
N12 G90
N13 G20

(PROFILE ROUGHING1)
N14 T1 M6
N15 G54
N16 G97 S500 M3
N17 G95
N18 G90 G0 X1.1 Z0.1969
N19 G0 Z0.0197
N20 X0.6213
N21 G1 Z-1.2087 F0.005

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

More
17 Nov 2020 20:46 #189619 by tommylight
Replied by tommylight on topic Lathe pauses at N21
N21 G1 Z-1.2087 F0.005
The F is the feed rate, in this case 0.005 inches hopefully and even that is painfully slow, in MM it will reach the final depth in about a year! :)

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

More
17 Nov 2020 20:52 #189621 by Flyer007
Replied by Flyer007 on topic Lathe pauses at N21
by using the G95 above though isn't that a calculation by spindle revs? So spindle set to 500 rpm so that's 2.5" a minute

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

More
17 Nov 2020 21:50 #189629 by tommylight
Replied by tommylight on topic Lathe pauses at N21
Ooops, i missed that.

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

More
18 Nov 2020 13:22 #189660 by andypugh
Replied by andypugh on topic Lathe pauses at N21
At a guess the system is waiting for spindle-at-speed to be set true.

Do you have that configured in your HAL?

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

More
18 Nov 2020 16:03 #189684 by Flyer007
Replied by Flyer007 on topic Lathe pauses at N21
When setting up the machine in PNCconf. I have "include spindle" unchecked. and I only have x,z axis enabled.

Looking at HAL, I can't really see where this would be defined. I am still in the infancy stage of learning. Attached is my simple HAL.

File Attachment:

File Name: miniLathe.hal
File Size:7 KB


Thanks for the help.
Attachments:

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

More
18 Nov 2020 16:16 #189687 by andypugh
Replied by andypugh on topic Lathe pauses at N21
If you are using the Axis interface you can select machine -> halmeter and watch the value of spindle.0.at-speed (or motion.spindle-at-speed in older versions)

(this is worth trying anyway, it is useful to know how to watch the HAL signals)

If it is showing "true" then that isn't the problem. If it is showing false then the simple (but not the best) answer is to add "setp spindle.0.at-speed 1" in the HAL file. But then the machine will never wait for the spindle.

If you are not using Axis then there will generally be a different way to load halmeter. If you can't find it then "halcmd loadusr halmeter" from the command line will always work.
The following user(s) said Thank You: Flyer007

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

More
18 Nov 2020 16:34 #189692 by Flyer007
Replied by Flyer007 on topic Lathe pauses at N21
Showing "True" good idea though. Also great to remind me to play with the meter more.

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

More
18 Nov 2020 17:15 #189697 by Flyer007
Replied by Flyer007 on topic Lathe pauses at N21
If I throw a G94 into line N21 then up the F to .5 I get movement, BUT I don't get a G0 retract move on Z 3 lines later.

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

More
18 Nov 2020 18:13 #189701 by andypugh
Replied by andypugh on topic Lathe pauses at N21
Do you have a spindle encoder?
What does halmeter show spindle.0.speed-in doing?
The following user(s) said Thank You: Flyer007

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

Time to create page: 0.123 seconds
Powered by Kunena Forum