- Posts: 18115
- Thank you received: 5334
Lathe stops at code line
- PCW
- Offline
- Moderator
-
B, /B pins (that is _not_ to ground)
Its best if you can jog the motor around perhaps by hand so you can
get all 4 quadrature states.
In any state you should read a voltage across the pins with an absolute value of >2V
That is you should read a minus voltage less than -2V in one state
and a positive voltage >+2 V in the other state but in no case read
a voltage < 2V absolute regardless of the polarity.
You should do the same test with A, /A
Index (Z) is hard o test this way and better tested with halcmd
Please Log in or Create an account to join the conversation.
- Erikcnc
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
PCW wrote: Basically you measure _across_ the
B, /B pins (that is _not_ to ground)
Its best if you can jog the motor around perhaps by hand so you can
get all 4 quadrature states.
In any state you should read a voltage across the pins with an absolute value of >2V
That is you should read a minus voltage less than -2V in one state
and a positive voltage >+2 V in the other state but in no case read
a voltage < 2V absolute regardless of the polarity.
You should do the same test with A, /A
Index (Z) is hard o test this way and better tested with halcmd
i messured the B channel. when its turening, 100 rpm, it gives barley 0.02V. when its stops it gives around 3 volts.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
Erikcnc wrote: i messured the B channel. when its turening, 100 rpm, it gives barley 0.02V. when its stops it gives around 3 volts.
That actually sounds right.
Turn the spindle by hand _very_ slowly, you should see both A and B channels vary between at least +2V and -2V.
With the spindle running the DVM sees a square wave, that averages to zero.
Please Log in or Create an account to join the conversation.
- Erikcnc
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
andypugh wrote:
Erikcnc wrote: i messured the B channel. when its turening, 100 rpm, it gives barley 0.02V. when its stops it gives around 3 volts.
That actually sounds right.
Turn the spindle by hand _very_ slowly, you should see both A and B channels vary between at least +2V and -2V.
With the spindle running the DVM sees a square wave, that averages to zero.
I just have done that. channel B is indeed changing the values. however channel A stays near -3.28 volts.
EDIT...no sorry i was messuring B and Z...A is just fine.
Another thing. if i watch encoder.oo.velocity while i turning the spindle ccw..i see it reacting. But, if i turn it Cw it doesn't react.
Please Log in or Create an account to join the conversation.
- Erikcnc
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- Erikcnc
- Offline
- Premium Member
-
- Posts: 153
- Thank you received: 0
At this stage i have lost it why it wont work. might be something in the hal file?
Please Log in or Create an account to join the conversation.