- Posts: 158
- Thank you received: 0
Step/Dir servos + Encoders = follow errors... and so much pain.....
5 years 8 months ago #198026
by jhandel
Replied by jhandel on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
for Piggy backing are you thinking something around tweaks to hostmot2sp6.vhd & hostmot2.vhd... Specifically something around this line
StepGenIndex(conv_integer(ThePinDesc(i)(23 downto 16))) <= IOBits(i);
maybe something there routing the MuxedQCountIDXPin into StepGenIndex() if present?
Is that what you were thinking PCW?
Could be flipped on the UseStepgenIndex flag.. like if UseStepgenIndex then use the current routing then add a UseMuxQCountIndex flag and if that is set to true then look out for the MuxedQCountIDXPin to route to StepGenIndex() ?
StepGenIndex(conv_integer(ThePinDesc(i)(23 downto 16))) <= IOBits(i);
maybe something there routing the MuxedQCountIDXPin into StepGenIndex() if present?
Is that what you were thinking PCW?
Could be flipped on the UseStepgenIndex flag.. like if UseStepgenIndex then use the current routing then add a UseMuxQCountIndex flag and if that is set to true then look out for the MuxedQCountIDXPin to route to StepGenIndex() ?
Please Log in to join the conversation.
5 years 8 months ago #198030
by PCW
Replied by PCW on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
I was thinking of added of adding 2 pin types, a muxed stepgen-index and a
muxed shared encoder index and stepgen index and doing the required pin connection
hackery to support both (with the constraint that the shared pin stepgen and muxed encoder
have to be the same instance)
muxed shared encoder index and stepgen index and doing the required pin connection
hackery to support both (with the constraint that the shared pin stepgen and muxed encoder
have to be the same instance)
Please Log in to join the conversation.
5 years 8 months ago #198031
by jhandel
Replied by jhandel on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
Oh that is smarter and less hacky than my idea
... Like it
Please Log in to join the conversation.
5 years 8 months ago #199715
by jhandel
Replied by jhandel on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
I "found" 5 inputs so I am moving things around to free those up..
Quick question, I have double ended encoder signals, how should i feed those into a 7I75? Should I just read off the positive side or do I put the neg against ground too?
Quick question, I have double ended encoder signals, how should i feed those into a 7I75? Should I just read off the positive side or do I put the neg against ground too?
Please Log in to join the conversation.
5 years 8 months ago #199717
by andypugh
Replied by andypugh on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
You would probably get best results with a differential transceiver.
Or with a Mesa card that is equipped with differential inputs. (but those are more expensive)
I would see what PCW suggests for straight wiring connections, though.
Or with a Mesa card that is equipped with differential inputs. (but those are more expensive)
I would see what PCW suggests for straight wiring connections, though.
Please Log in to join the conversation.
5 years 8 months ago #199719
by jhandel
Replied by jhandel on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
Yah, trying not to buy a 4th Mesa Card for 5 signals.. I already have a 7i76e, 7i75 and 7i89.. Especially given how this feature has to be written in firmware I am not sure I can hang another input off of the RS422 port..
Please Log in to join the conversation.
5 years 8 months ago #199720
by andypugh
If you have a 7i89, why are you connecting the the encoders to the 7i75?
Replied by andypugh on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
jhandel wrote: Yah, trying not to buy a 4th Mesa Card for 5 signals.. I already have a 7i76e, 7i75 and 7i89
If you have a 7i89, why are you connecting the the encoders to the 7i75?
Please Log in to join the conversation.
5 years 8 months ago #199721
by jhandel
Replied by jhandel on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
Because PCW wrote a new feature that works with inputs as Index Pulse so you can use index pulse with homing of a step-gen motor..
However, it doesn't work with Multiplexed encoder ports (all of the encoders on 7i76 and 7i89 are multiplexed)...
PCW is working on that firmware update too (because he is awesome)... But if I can start testing the rest of his great work in 2.9 using normal inputs its a win for everyone..
To do that, I need to route my index pulse signals down to these 7i75 pins and flash the firmware to treat them as the new StepGen Index pulse inputs...
However, it doesn't work with Multiplexed encoder ports (all of the encoders on 7i76 and 7i89 are multiplexed)...
PCW is working on that firmware update too (because he is awesome)... But if I can start testing the rest of his great work in 2.9 using normal inputs its a win for everyone..
To do that, I need to route my index pulse signals down to these 7i75 pins and flash the firmware to treat them as the new StepGen Index pulse inputs...
Please Log in to join the conversation.
5 years 8 months ago #199724
by jhandel
Replied by jhandel on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
Here is a picture of the signal I am dealing with.. I think this reads like the neg on the signal is coming from Common so maybe its ok? or its dropping to box ground which is not the same as common...
Attachment not found
Please Log in to join the conversation.
5 years 8 months ago #199726
by PCW
Replied by PCW on topic Step/Dir servos + Encoders = follow errors... and so much pain.....
For a single ended input, you would just use ground and the OA+, OB+, OZ+ outputs
(leaving the OA-,OB-, and OZ- pins unconnected)
If you ground the OA-, OB-, and OZ pins you are shorting out the differential driver chip
and could damage the drive
(leaving the OA-,OB-, and OZ- pins unconnected)
If you ground the OA-, OB-, and OZ pins you are shorting out the differential driver chip
and could damage the drive
Please Log in to join the conversation.
Time to create page: 0.112 seconds
