Automatic program doesn't continue
22 Jul 2022 17:31 - 22 Jul 2022 17:33 #248056
by chili023
Automatic program doesn't continue was created by chili023
Hello,
I Retrofittet a CNC Lathe with Linux CNC. I finished the installation and everything seams to work.
However when I load a ngc file and start the program it runs fine until line 20. Then it halts/stops. Spindle is running. LinuxCNC seams to wait for something.
The feedrate is shown in the display but the axis don't move.
There is no error message or anything.
The move is no problem in MDI mode.
What could it be?
I attached ini hal and ngc
I Retrofittet a CNC Lathe with Linux CNC. I finished the installation and everything seams to work.
However when I load a ngc file and start the program it runs fine until line 20. Then it halts/stops. Spindle is running. LinuxCNC seams to wait for something.
The feedrate is shown in the display but the axis don't move.
There is no error message or anything.
The move is no problem in MDI mode.
What could it be?
I attached ini hal and ngc
Last edit: 22 Jul 2022 17:33 by chili023.
Please Log in or Create an account to join the conversation.
22 Jul 2022 19:21 #248064
by spumco
Replied by spumco on topic Automatic program doesn't continue
Line 21 is the first movement after the spindle is turned on (M3)... so my guess is that LCNC is waiting for spindle-at-speed to be true.
Not an expert with this, but I've read about similar situations resolved using a 'near' component. If the spindle-at-speed is connected through a near component then LCNC is, basically, told that 'this speed is close enough, go ahead and get moving'.
Search the forum for 'spindle-at-speed' and you'll probably find some examples of fixes for this.
Not an expert with this, but I've read about similar situations resolved using a 'near' component. If the spindle-at-speed is connected through a near component then LCNC is, basically, told that 'this speed is close enough, go ahead and get moving'.
Search the forum for 'spindle-at-speed' and you'll probably find some examples of fixes for this.
The following user(s) said Thank You: chili023
Please Log in or Create an account to join the conversation.
22 Jul 2022 19:22 #248065
by cmorley
Replied by cmorley on topic Automatic program doesn't continue
or for now just set it 'true' so it is ignored
The following user(s) said Thank You: chili023
Please Log in or Create an account to join the conversation.
22 Jul 2022 20:04 - 22 Jul 2022 20:22 #248069
by chili023
Replied by chili023 on topic Automatic program doesn't continue
Hi cmorley,
thanks for the reply. First I have to Apologyse. I was talking about line numbers in the sense of coding. So the count of lines downwards. Of course one should use the N line numbers when refering to G-Code.
So my line 20 was actually the line with the command N22.
My first though was spindle as well. But spindle-at-speed is set to true in the .hal file.
The move in line 19:
N21 G90 G0 X90. Z5.
is executed and the "cursor" moves to line 20:
N22 G1 Z0.15 F0.2
So one G0 move is executed and the first G1 fails. But I think it has something to do with the feedrate.
Do I need spindle-speed-out to be set manually to spindle-speed-in?
Thanks for the reply.
Andreas
thanks for the reply. First I have to Apologyse. I was talking about line numbers in the sense of coding. So the count of lines downwards. Of course one should use the N line numbers when refering to G-Code.
So my line 20 was actually the line with the command N22.
My first though was spindle as well. But spindle-at-speed is set to true in the .hal file.
The move in line 19:
N21 G90 G0 X90. Z5.
is executed and the "cursor" moves to line 20:
N22 G1 Z0.15 F0.2
So one G0 move is executed and the first G1 fails. But I think it has something to do with the feedrate.
Do I need spindle-speed-out to be set manually to spindle-speed-in?
Thanks for the reply.
Andreas
Last edit: 22 Jul 2022 20:22 by chili023.
Please Log in or Create an account to join the conversation.
22 Jul 2022 21:27 - 22 Jul 2022 21:36 #248075
by chili023
Replied by chili023 on topic Automatic program doesn't continue
Well it is G95 in the line in between.
G95 switches to mm/rev.
so something with the revolutions doesn't seem to work.
G95 switches to mm/rev.
so something with the revolutions doesn't seem to work.
Last edit: 22 Jul 2022 21:36 by chili023.
Please Log in or Create an account to join the conversation.
22 Jul 2022 23:38 #248088
by cmorley
Replied by cmorley on topic Automatic program doesn't continue
then check for spindle.N.speed-in is connected.
linuxcnc.org/docs/stable/html/config/cor...html#sec:motion-pins
linuxcnc.org/docs/stable/html/config/cor...html#sec:motion-pins
The following user(s) said Thank You: chili023
Please Log in or Create an account to join the conversation.
23 Jul 2022 13:49 #248122
by chili023
Replied by chili023 on topic Automatic program doesn't continue
spindle.0.speed-in was connected to spindle-vel-fb-rps
which was 0.
I connected it to spindle-vel-cmd-rps and now it works.
Thank you cmorley
which was 0.
I connected it to spindle-vel-cmd-rps and now it works.
Thank you cmorley
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds