Lathe stops at code line

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

andypugh wrote: Looks like a problem with the spindle encoder.

hm2_7i76E.encoder.00.count is solidly on zero. This leads me to suspect that one of the spindle encoder phases is not connected.
(If this is deliberate then you need to set counter-mode to true for that encoder)


so i checked the wiring. everything is well connected as it should be. only thing what my driver doesn't has is +5v and gnd.

Please Log in to join the conversation.

More
7 years 4 months ago #136785 by andypugh
Replied by andypugh on topic Lathe stops at code line
Your encoder will need a power supply. Are you saying it doesn't have one?

Please Log in to join the conversation.

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

andypugh wrote: Your encoder will need a power supply. Are you saying it doesn't have one?


its not in the cables. the encoder is in the motor. i guess its gets it from the drive. its all pre build with wires etc.
i changed the hm2_7i76e.0.encoder.00.counter-mode to 1. readings has changed. and it reacts when i rotate the spindle by hand.

at a program it still stops.



Attachment not found

Please Log in to join the conversation.

More
7 years 4 months ago #136787 by PCW
Replied by PCW on topic Lathe stops at code line
I would first try to see if you have a wiring error (look like the B encoder input is not working)

If you want to thread, you will need the A and Z (index) to work
If you want to rigid tap, you will need A,B,Z to work

Please Log in to join the conversation.

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

PCW wrote: I would first try to see if you have a wiring error (look like the B encoder input is not working)

If you want to thread, you will need the A and Z (index) to work
If you want to rigid tap, you will need A,B,Z to work


Oke. I will check the B channel in halshow if its reading. Will be tomorrow evening for me.

Is there another method to check this?

Please Log in to join the conversation.

More
7 years 4 months ago #136790 by PCW
Replied by PCW on topic Lathe stops at code line
Best would be to check the signal levels at the 7I76E with a DVM

Please Log in to join the conversation.

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

PCW wrote: Best would be to check the signal levels at the 7I76E with a DVM


Could you explain me how to do this? I got a simple meter.

Please Log in to join the conversation.

More
7 years 4 months ago #136850 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

Please Log in to join the conversation.

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

Please Log in 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 to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum