M4 doesn't work
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
Here is the spindle.txt
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
Attachments:
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
I've made a short Video to show you:
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
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.
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 or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
- Posts: 86
- Thank you received: 67
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 or Create an account to join the conversation.