Lathe stops at code line
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 0
12 Jun 2019 19:38 #136784
by Erikcnc
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.
Replied by Erikcnc on topic Lathe stops at code line
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 or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23320
- Thank you received: 4946
12 Jun 2019 19:39 #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 or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 0
12 Jun 2019 19:54 - 12 Jun 2019 19:59 #136786
by Erikcnc
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.
Replied by Erikcnc on topic Lathe stops at code line
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.
Last edit: 12 Jun 2019 19:59 by Erikcnc.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18566
- Thank you received: 5101
12 Jun 2019 20:51 #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
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
The following user(s) said Thank You: Erikcnc
Please Log in or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 0
12 Jun 2019 21:13 #136789
by Erikcnc
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?
Replied by Erikcnc 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
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 or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18566
- Thank you received: 5101
12 Jun 2019 21:51 #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 or Create an account to join the conversation.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 0
13 Jun 2019 09:14 #136823
by Erikcnc
Could you explain me how to do this? I got a simple meter.
Replied by Erikcnc on topic Lathe stops at code line
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 or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18566
- Thank you received: 5101
13 Jun 2019 22:21 #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
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.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18566
- Thank you received: 5101
13 Jun 2019 22:22 #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
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.
- Erikcnc
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 153
- Thank you received: 0
14 Jun 2019 15:34 #136884
by Erikcnc
i messured the B channel. when its turening, 100 rpm, it gives barley 0.02V. when its stops it gives around 3 volts.
Replied by Erikcnc 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
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.
Time to create page: 0.144 seconds