Problems getting gcode to run?

More
12 Oct 2023 23:31 #282850 by n2fastcars75
Got my router setup finally. Machine will home and will run the start up linuxcnc gcode without problem. I made a couple simple program in fusion 360. I cant get them to run all the way threw. Everything starts to run as it should but just stops at line N45 Z21. If i start the program from the line N50 it will run threw to N685 Z21. It just stops at the N45 without giving me any idea as to why. Any help would be great! 

File Attachment:

File Name: testborev7.ngc
File Size:4 KB
Attachments:

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

More
13 Oct 2023 06:41 - 13 Oct 2023 06:46 #282870 by beefy
I don't know if this is the problem but give this a try.

Put "G0" before Z21. on line N45, i.e.

N45 G0 Z21.

and see if that works. I noticed further down the file near the end there are 2 consecutive lines and both have a G0 before the axis commands.
Perhaps for some reason your setup requires a G0 on every line and the N45 line does have this.

G0 is a modal command in Linuxcnc so in theory it should not need to be repeated for immediately following subsequent motion command that are also rapid moves, but perhaps there's a setting that over-rides this ???????????
Last edit: 13 Oct 2023 06:46 by beefy.

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

More
13 Oct 2023 10:04 #282879 by MaHa
Replied by MaHa on topic Problems getting gcode to run?
On a new setup, machine stop before a G1 move, this could be the problem:
spindle.M.at-speed IN BITMotion will pause until this pin is TRUE, under the following conditions: before the first feed move after each spindle start or speed change; before the start of every chain of spindle-synchronized moves; and if in CSS mode, at every rapid->feed transition.

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

More
13 Oct 2023 17:52 - 13 Oct 2023 17:57 #282914 by beefy
Came across some info on spindle.N.at-speed from this post:     forum.linuxcnc.org/21-axis/31786-motion-spindle-at-speed

the machine will only pause to wait for the spindle at speed signal before a cutting move. It will still perform any G0 moves then wait at the start of the first G1,G2... until the pin goes true. All non auto movement is unchanged (jogging, MDI...) Once the at speed signal goes true the machine will not pause again if it later goes false, unless a spindle speed change or start is commanded.

Based on that info, the next question is did the gcode block on line N45 actually execute, i.e. did the Z move to 21 as commanded, or not.

If Z did move to 21 then the code is halting before the following G1 feed command, which adds weight to your theory.

If line N45 did not actually execute, then spindle.N.at-speed must not be the reason if it only stops feed moves.
Last edit: 13 Oct 2023 17:57 by beefy.

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

More
14 Oct 2023 01:15 #282955 by n2fastcars75
Ok was busy today but back at it this evening and yes I believe the N45 Z21 is going to 21 then stopping. So I'm think the spindle might be the problem and made another confg. I didn't set up a spindle in the confg and the program ran start to finish no problems. So where do you map the spindle.N.at-speed? Thanks

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

More
14 Oct 2023 01:21 #282956 by beefy
Post your hal and ini files here so someone can take a look.

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

More
14 Oct 2023 01:38 #282958 by tommylight
Try adding this in the hal file:
setp spindle.0.at-speed true

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

More
14 Oct 2023 02:01 #282961 by n2fastcars75
Thank you Tommy that worked!!
The following user(s) said Thank You: tommylight

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

More
14 Oct 2023 10:16 #282975 by andypugh
Which LinuxCNC version? I thought that spindle-at-speed defaulted to true if not connected in HAL

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

Moderators: Skullworks
Time to create page: 0.201 seconds
Powered by Kunena Forum