Lathe stops at code line

More
7 years 4 months ago #136851 by PCW
Replied by PCW on topic Lathe stops at code line
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
The following user(s) said Thank You: Erikcnc

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

More
7 years 4 months ago #136884 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line

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.

More
7 years 4 months ago #136887 by andypugh
Replied by andypugh on topic Lathe stops at code line

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.
The following user(s) said Thank You: Erikcnc

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

More
7 years 4 months ago - 7 years 4 months ago #136900 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line

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.

Last edit: 7 years 4 months ago by Erikcnc.

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

More
7 years 4 months ago - 7 years 4 months ago #136908 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line
it its moving now. i changed the encoder scale to negative. now it is moving but really really slow. and not the right rpm.

I discovered the gray/white bar in gmoccapy where it shows the 0 until max rpm. there should be a realtime rpm value right?
i doesn't see anything there. No green bar.

Attachments:
Last edit: 7 years 4 months ago by Erikcnc.

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

More
7 years 4 months ago - 7 years 4 months ago #137038 by Erikcnc
Replied by Erikcnc on topic Lathe stops at code line
i was watching the index signal in halshow, and it shows a signal at a certain point. its hard to get to that position by hand.

At this stage i have lost it why it wont work. might be something in the hal file?
Attachments:
Last edit: 7 years 4 months ago by Erikcnc.

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

Time to create page: 1.498 seconds
Powered by Kunena Forum