- Posts: 94
- Thank you received: 0
M4 doesn't work
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
3 years 1 month ago #280861
by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
ah, nice thanks.
Here is the spindle.txt
Here is the spindle.txt
Please Log in to join the conversation.
3 years 1 month ago #280862
by Aciera
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.
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.
Please Log in to join the conversation.
3 years 1 month ago #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:
M4:
Basic spindle operation is as expected in 2.10:
M3:
Attachment not found
M4:
Attachment not found
Please Log in to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 0
3 years 1 month ago #280864
by AlexMagToast
Replied by AlexMagToast on topic M4 doesn't work
yes, i've seen this too. I think thats a clue
Please Log in to join the conversation.
3 years 1 month ago #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.
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.
Please Log in to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 0
3 years 1 month ago #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:
I've made a short Video to show you:
Please Log in to join the conversation.
3 years 1 month ago #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.
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.
Please Log in to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 0
3 years 1 month ago #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.
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 to join the conversation.
3 years 1 month ago #280872
by Aciera
Replied by Aciera on topic M4 doesn't work
Fortunately for everybody else, that is likely the case. Although I'd sure like to know what is going on there.Unfortunately i too have the feeling, it is something with my config and or my machine, not a LinuxCNC Bug.
Please Log in to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 0
3 years 1 month ago #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?
When i edit the same config with Pncconf again and rempve the Spindle from the Stepgen, M4 works again.
Can somebody else confirm?
Please Log in to join the conversation.
Time to create page: 0.175 seconds
