Fitting an encoder on a Tormach 1100
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
15 May 2020 13:53 #167843
by PCW
Replied by PCW on topic Fitting an encoder on a Tormach 1100
if you re-fetch the zip file, the encoders have been re-numbered so 0..3 are on the 7I85
The following user(s) said Thank You: Sparky3
Please Log in or Create an account to join the conversation.
- Sparky3
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
15 May 2020 16:39 #167866
by Sparky3
Replied by Sparky3 on topic Fitting an encoder on a Tormach 1100
PCW
That is perfect
Thank you
Robert
That is perfect
Thank you
Robert
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2390
- Thank you received: 779
07 Jul 2020 23:18 #173938
by snowgoer540
do you recall how you got halmeter to work on PP? Every time I try it just says command not found, even if i try to run it from the directory I can see it in?
Replied by snowgoer540 on topic Fitting an encoder on a Tormach 1100
Peter you made me the bit file for a Tormach that I used a 7i85 on the second port. For the spindle encoder and 3 mpg'sNot sure who made that bit file, do you have the PIN_xxxx.vhd source file?
Do you have a 7I85 or 7I85S?
5i25_t2_7i85s.bit.
About 2 years ago
do you recall how you got halmeter to work on PP? Every time I try it just says command not found, even if i try to run it from the directory I can see it in?
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2390
- Thank you received: 779
08 Jul 2020 00:14 #173940
by snowgoer540
Replied by snowgoer540 on topic Fitting an encoder on a Tormach 1100
nevermind ./halmeter from the directory...
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2390
- Thank you received: 779
08 Jul 2020 00:45 #173944
by snowgoer540
So I hooked up my encoder and 7i85S finally, and used Clive's instructions! I can see encoder counts, but they go down when i spin it clockwise, and up when i spin it counter clockwise. I thought it might be as easy as changing the encoder scale to a positive value (Clive's example showed it as "-4000", so I made mine "-1440" (I have a 360ppr quad encoder with index)), but that did not have any effect. Is there any way to change this in the software? OR do I need to swap the polarity on my A, B, and IDX legs?
Currently with:
G33.1 Z-1 K0.0394
it just sits there and spins when it gets to that line. Seems like it's either expecting to be counting up, or the index is never going true.
Any ideas?
Replied by snowgoer540 on topic Fitting an encoder on a Tormach 1100
What does your spindle do? It sounds like the G33.1 might be waiting for the second spindle reversal.
Does your encoder definitely count up clockwise and down anticlockwise?
So I hooked up my encoder and 7i85S finally, and used Clive's instructions! I can see encoder counts, but they go down when i spin it clockwise, and up when i spin it counter clockwise. I thought it might be as easy as changing the encoder scale to a positive value (Clive's example showed it as "-4000", so I made mine "-1440" (I have a 360ppr quad encoder with index)), but that did not have any effect. Is there any way to change this in the software? OR do I need to swap the polarity on my A, B, and IDX legs?
Currently with:
G33.1 Z-1 K0.0394
it just sits there and spins when it gets to that line. Seems like it's either expecting to be counting up, or the index is never going true.
Any ideas?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
08 Jul 2020 02:56 - 08 Jul 2020 02:57 #173948
by PCW
Replied by PCW on topic Fitting an encoder on a Tormach 1100
Note that changing the encoder scale will change the sign of the
encoder velocity and position but not the counts
encoder velocity and position but not the counts
Last edit: 08 Jul 2020 02:57 by PCW.
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2390
- Thank you received: 779
08 Jul 2020 09:32 #173960
by snowgoer540
So I need to flip the wires? So count goes up with clockwise rotation?
Should velocity and position follow suite?
Replied by snowgoer540 on topic Fitting an encoder on a Tormach 1100
Note that changing the encoder scale will change the sign of the
encoder velocity and position but not the counts
So I need to flip the wires? So count goes up with clockwise rotation?
Should velocity and position follow suite?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
08 Jul 2020 13:20 - 08 Jul 2020 13:22 #173974
by PCW
Replied by PCW on topic Fitting an encoder on a Tormach 1100
You can reverse the encoder velocity and position signs by changing the sign
of the encoder scale, so you do not have to change the hardware.
The counts and rawcounts will not change (Since they are not scaled) but these
are not used in most configurations.
of the encoder scale, so you do not have to change the hardware.
The counts and rawcounts will not change (Since they are not scaled) but these
are not used in most configurations.
Last edit: 08 Jul 2020 13:22 by PCW.
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2390
- Thank you received: 779
08 Jul 2020 13:28 #173975
by snowgoer540
oh, ok. so I want a positive velocity and position when moving the spindle clockwise (when viewed from the top looking down), correct?
Would that be the reason it wont do anything on G33.1 or is there something else I need to check for?
Replied by snowgoer540 on topic Fitting an encoder on a Tormach 1100
You can reverse the encoder velocity and position signs by changing the sign
of the encoder scale, so you do not have to change the hardware.
The counts and rawcounts will not change (Since they are not scaled) but these
are not used in most configurations.
oh, ok. so I want a positive velocity and position when moving the spindle clockwise (when viewed from the top looking down), correct?
Would that be the reason it wont do anything on G33.1 or is there something else I need to check for?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
08 Jul 2020 14:12 #173977
by PCW
Replied by PCW on topic Fitting an encoder on a Tormach 1100
Yes, clockwise from the top should give a positive velocity
Spindle synced motions need:
1. Spindle at speed true
2. Spindle feedback position from encoder increasing for forward rotation
3. Index detection
1 and 2 can be checked with halshow, 3 can be checked manually by
sets-ing the signal that carries index enable and verifying that the index
enable signal gets cleared when you rotate the spindle (by hand) past the
index position:
halcmd sets index_enable
Spindle synced motions need:
1. Spindle at speed true
2. Spindle feedback position from encoder increasing for forward rotation
3. Index detection
1 and 2 can be checked with halshow, 3 can be checked manually by
sets-ing the signal that carries index enable and verifying that the index
enable signal gets cleared when you rotate the spindle (by hand) past the
index position:
halcmd sets index_enable
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.133 seconds