Gmoccapy - spindle restarts at program stop
- HansU
- Offline
- Moderator
Less
More
- Posts: 629
- Thank you received: 182
28 Dec 2023 20:32 #289279
by HansU
No. And I can't reproduce this with a simulation config. I appreciate input on this.
Replied by HansU on topic Gmoccapy - spindle restarts at program stop
Hello,
is this Spindle Stop/Restart bug fixed in newest release (v2.9.2)?
No. And I can't reproduce this with a simulation config. I appreciate input on this.
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
28 Dec 2023 20:53 #289280
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
I am trying now in v2.9.1, gmoccapy sim.
If i open arcspiral.ngc, or 3dchips.ngc from nc_files, i can't reproduce the problem, but if i open my gcode file (%fej.ngc - attached) the spindle is restarts after i press the program stop gui button.
I will try to find which g code in the file causes this behavior.
Please try to run and stop the attached file.
If i open arcspiral.ngc, or 3dchips.ngc from nc_files, i can't reproduce the problem, but if i open my gcode file (%fej.ngc - attached) the spindle is restarts after i press the program stop gui button.
I will try to find which g code in the file causes this behavior.
Please try to run and stop the attached file.
Attachments:
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
28 Dec 2023 21:37 #289283
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
I think the problem was in the length of the file.
My original gcode file (fej.ngc) has about 12k lines.
I deleted 1k lines from the end of the file (M30 remains on the end of file) while the bug remains.
The Spindle restart bug disappeared if I deleted ~10k lines from the program.
When the file has 3k lines, the spindle restarts after the program stop button is pressed, a file with 2k lines not - works how it needs to.
I think with this method you can reproduce the bug.
My original gcode file (fej.ngc) has about 12k lines.
I deleted 1k lines from the end of the file (M30 remains on the end of file) while the bug remains.
The Spindle restart bug disappeared if I deleted ~10k lines from the program.
When the file has 3k lines, the spindle restarts after the program stop button is pressed, a file with 2k lines not - works how it needs to.
I think with this method you can reproduce the bug.
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 629
- Thank you received: 182
28 Dec 2023 22:24 #289285
by HansU
Replied by HansU on topic Gmoccapy - spindle restarts at program stop
Attachments:
The following user(s) said Thank You: HalaszAttila
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
29 Dec 2023 14:23 #289312
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
Hm, interesting. I will check it.
The difference is that I compiled the linuxcnc from source. Dont use preinstalled version comes with ISO, only reason is to compile from source is to increase #define HAL_SIZE (75*4096) in: linuxcnc/src/hal/hal_priv.h, becouse I use many components in HAL.
The difference is that I compiled the linuxcnc from source. Dont use preinstalled version comes with ISO, only reason is to compile from source is to increase #define HAL_SIZE (75*4096) in: linuxcnc/src/hal/hal_priv.h, becouse I use many components in HAL.
Please Log in or Create an account to join the conversation.
- Serg452
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 5
09 Jan 2024 23:58 #290318
by Serg452
Replied by Serg452 on topic Gmoccapy - spindle restarts at program stop
faced the same problem yesterday, program about 9,000 lines, LCNC 2.9.2.47
The following user(s) said Thank You: HalaszAttila
Please Log in or Create an account to join the conversation.
- HalaszAttila
- Offline
- Premium Member
Less
More
- Posts: 143
- Thank you received: 5
15 Jan 2024 09:57 #290746
by HalaszAttila
Replied by HalaszAttila on topic Gmoccapy - spindle restarts at program stop
Hello, you use LinuxCNC installed in ISO, or downloaded the source, and compiled it?
Please Log in or Create an account to join the conversation.
- Serg452
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 5
16 Jan 2024 11:04 - 16 Jan 2024 11:04 #290855
by Serg452
Replied by Serg452 on topic Gmoccapy - spindle restarts at program stop
Update from 2.8 ISO from repo
Last edit: 16 Jan 2024 11:04 by Serg452.
Please Log in or Create an account to join the conversation.
- MennilTossFlykune
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 25
22 Oct 2024 12:22 #312846
by MennilTossFlykune
Replied by MennilTossFlykune on topic Gmoccapy - spindle restarts at program stop
I assume this is the same issue:
2.10.0-pre0-3740-g5ec17ac2b8
The only way I've been able to reproduce it consistently is by starting and then stopping immediately, but when I recorded this video it happened without fail.
I think it's related to how the state is restored from a state tag after an abort(?).
If I comment out emcTaskStateRestore(); at line 2078 in emctaskmain.cc the spindle doesn't restart.
2.10.0-pre0-3740-g5ec17ac2b8
The only way I've been able to reproduce it consistently is by starting and then stopping immediately, but when I recorded this video it happened without fail.
I think it's related to how the state is restored from a state tag after an abort(?).
If I comment out emcTaskStateRestore(); at line 2078 in emctaskmain.cc the spindle doesn't restart.
Please Log in or Create an account to join the conversation.
- MennilTossFlykune
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 25
22 Oct 2024 15:39 #312871
by MennilTossFlykune
Replied by MennilTossFlykune on topic Gmoccapy - spindle restarts at program stop
Here it is in gmoccapy:
If I abort almost immediately with the ESC key, the spindle stays on.
Does not happen with emcTaskStateRestore(); commented out.
If I abort almost immediately with the ESC key, the spindle stays on.
Does not happen with emcTaskStateRestore(); commented out.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.095 seconds