- Posts: 54
- Thank you received: 0
Spindle speed commands not working.
- danimal300
- Topic Author
- Offline
- Senior Member
-
So I built a new config that is just a simple controller with spindle at speed and reading the encoder into the standard spindle speed display.
It works great, the RPM and encoder pulses are dead on, but whenever an S command is entered int midi or during running a program, the spindle stops. There are no errors, there are no indications, the spindle just stops and if it is running a program it stops to wait for spindle at speed. I have attached the config files, though it is almost completely stock Stepperconfig.
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
Linuxcnc 2.6.5 with G540
Please Log in to join the conversation.
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
cncbasher wrote: you will probably find your encoder is running in reverse , check in hal config that running fwd that the numbers increase
I have a hall type sensor operating only on phase A. Is there a line in there that commands it to compare the direction and include phase B? I could disable the CCW pin and see if that helps, I am not going to need it for the project that I am working on right now.
I can set the spindle up manually, and press play, but as soon as it hits the spindle speed command, regardless of value, it stops the spindle, drops to feed height and stops to wait for spindle at speed.
It does the same thing if I try to enter in a midi command such as S1000 M3
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
Please Log in to join the conversation.
JT
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
Please Log in to join the conversation.
JT
Please Log in to join the conversation.
if your using a quadrature encoder use one that has a,b& i not just a and b
'a' channel can be any number between 60 and 120 is usually good
with index being 1 per rev
to archive the folder , right click on the folder and compress , using tar.gz as format is normally used here
Please Log in to join the conversation.
- danimal300
- Topic Author
- Offline
- Senior Member
-
- Posts: 54
- Thank you received: 0
cncbasher wrote: you need an index pulse which is one per turn , this can be connected to both index and channel a
if your using a quadrature encoder use one that has a,b& i not just a and b
'a' channel can be any number between 60 and 120 is usually good
with index being 1 per rev
to archive the folder , right click on the folder and compress , using tar.gz as format is normally used here
I have pin 10 on Phase A and pin 11 on Encoder index. I have the encoder-scale = 4 and I have 4 pulses per revolution. Is that a correct configuration? That is what I needed to get the RPM reading correctly into the machine, and it works, but not when spindle at speed is enabled.
I have attached the tar.gz to this thread, but the comment was made that PC cannot open tar files, but I am going to try and compress with another format. I only use linux for my CNC machine, and I assume that it the case for a lot of people so hopefully it will be a little easier to troubleshoot if more people can open it.
Please Log in to join the conversation.
