M4 doesn't work

More
15 Sep 2023 15:58 #280861 by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
ah, nice thanks.
Here is the spindle.txt
Attachments:

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

More
15 Sep 2023 16:11 - 15 Sep 2023 16:13 #280862 by Aciera
Replied by Aciera on topic M4 doesn't work

10 bit IN TRUE halui.spindle.0.override.count-enable
10 s32 IN 0 halui.spindle.0.override.counts <== SpindleOverride



Looks like you have your override active and turned all the way down which is like issuing
M4 S0

This will not activate spindle.0.on but it will activate halui.spindle.0.runs-backward.
Last edit: 15 Sep 2023 16:13 by Aciera.
The following user(s) said Thank You: AlexMagToast

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

More
15 Sep 2023 16:13 #280863 by PCW
Replied by PCW on topic M4 doesn't work
Not sure what the issue is but I still suspect something with halui

Basic spindle operation is as expected in 2.10:

M3:

File Attachment:

File Name: m3.txt
File Size:1 KB


M4:

 

File Attachment:

File Name: m4.txt
File Size:1 KB



 
Attachments:
The following user(s) said Thank You: AlexMagToast

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

More
15 Sep 2023 16:14 #280864 by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
yes, i've seen this too. I think thats a clue :P

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

More
15 Sep 2023 16:17 - 15 Sep 2023 16:21 #280865 by Aciera
Replied by Aciera on topic M4 doesn't work
Maybe check the value of this signal when you issue M4 S...:

net SpindleOverride <= halui.spindle.0.override.counts <= arduino.lpoti.1.out

[edit]
Actually, if you are using a potentiometer then you may want to use halui.spindle.0.override.direct-value rather than .counts which would probably be used with an encoder.
Last edit: 15 Sep 2023 16:21 by Aciera.

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

More
15 Sep 2023 16:30 #280866 by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
Thanks for the suggestions. I've had a closer look at it and i conclude, i don't think this is the root of the issue.
I've made a short Video to show you:

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

More
15 Sep 2023 17:39 - 15 Sep 2023 17:39 #280870 by Aciera
Replied by Aciera on topic M4 doesn't work
So basically the issue seems to be that the M4 S.. command turns into M4 S0 which gives me the same behavior on an axis simulation config.

I presume that you have tried M4 S100 in a simulation config and checked the value of spindle.0.speed-out.

If that works then I'm afraid the only strategy I can think of is to start with a new config and add things step by step to find out what actually breaks the M4 functionality.
Last edit: 15 Sep 2023 17:39 by Aciera.
The following user(s) said Thank You: AlexMagToast

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

More
15 Sep 2023 17:47 #280871 by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
I now opened the standard sim axis and indeed M4 S100 works as expected.

I kind of tried to start with a new conifg by loading the first commit in my Git repo.
However nothing changed....

Unfortunately i too have the feeling, it is something with my config and or my machine, not a LinuxCNC Bug.

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

More
15 Sep 2023 18:00 #280872 by Aciera
Replied by Aciera on topic M4 doesn't work

Unfortunately i too have the feeling, it is something with my config and or my machine, not a LinuxCNC Bug.

Fortunately for everybody else, that is likely the case. Although I'd sure like to know what is going on there.
The following user(s) said Thank You: AlexMagToast

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

More
15 Sep 2023 18:22 - 15 Sep 2023 18:23 #280876 by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
So i now i created a new machine configuration using Pncconf. If i set a stepgen for the Spindle output it breaks M4.
When i edit the same config with Pncconf again and rempve the Spindle from the Stepgen, M4 works again.

Can somebody else confirm?
Last edit: 15 Sep 2023 18:23 by AlexMagToast. Reason: misspelled smtg

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

Time to create page: 0.274 seconds
Powered by Kunena Forum