7i96s Questions
- PCW
- Away
- Moderator
Less
More
- Posts: 17994
- Thank you received: 4838
10 Jan 2025 23:35 - 11 Jan 2025 00:01 #318673
by PCW
Replied by PCW on topic 7i96s Questions
That looks OK
Where things go bad with bare FPGA inputs is that say a VFD is running and an encoder wire connects
to frame ground accidentally, well unfortunately this frame ground has ~1 usec 1V negative high current
spikes from the VFDs 350V square wave output and finite inductance of the frame ground to earth ground.
These spikes will easily short the input clamp diodes. ("Ground" is just a tapped inductor for high frequencies)
The encoder pin/parameter specifications are in the hostmot2 manual page:
man hostmot2
It may be that firmware that better matches your application can be made
(MPGs are better with MPG encoders rather than motion encoders because
MPG encoders support 1X mode which works better with MPGs having detents)
Where things go bad with bare FPGA inputs is that say a VFD is running and an encoder wire connects
to frame ground accidentally, well unfortunately this frame ground has ~1 usec 1V negative high current
spikes from the VFDs 350V square wave output and finite inductance of the frame ground to earth ground.
These spikes will easily short the input clamp diodes. ("Ground" is just a tapped inductor for high frequencies)
The encoder pin/parameter specifications are in the hostmot2 manual page:
man hostmot2
It may be that firmware that better matches your application can be made
(MPGs are better with MPG encoders rather than motion encoders because
MPG encoders support 1X mode which works better with MPGs having detents)
Last edit: 11 Jan 2025 00:01 by PCW.
The following user(s) said Thank You: slowpoke
Please Log in or Create an account to join the conversation.
- slowpoke
- Offline
- Elite Member
Less
More
- Posts: 173
- Thank you received: 25
12 Jan 2025 12:29 #318766
by slowpoke
After looking at the TVS's I put on my little daughter board I came to the conclusion that they were not going to help (not Schottky and Vmin specified as -0.3V) so I replaced with actual digital isolators. Presently the first two P1 encoders are routed to my scale encoders and the next two for MPG's. So before I hit the send key can I assume that if a version with MPG friendly logic is available it will map the MPG encoders to P1 pins 7-13 or would they move to pins beyond the as is 4 encoders (P1:1-15), it would be easy for me to move my MPG inputs down to say IO:46-49 so they don't interfere with the original 4 encoder inputs if that make sense?
Replied by slowpoke on topic 7i96s Questions
Interesting, I have some MPG style encoders on order, I suppose I can look into this when they arrive.It may be that firmware that better matches your application can be made
(MPGs are better with MPG encoders rather than motion encoders because
MPG encoders support 1X mode which works better with MPGs having detents)
After looking at the TVS's I put on my little daughter board I came to the conclusion that they were not going to help (not Schottky and Vmin specified as -0.3V) so I replaced with actual digital isolators. Presently the first two P1 encoders are routed to my scale encoders and the next two for MPG's. So before I hit the send key can I assume that if a version with MPG friendly logic is available it will map the MPG encoders to P1 pins 7-13 or would they move to pins beyond the as is 4 encoders (P1:1-15), it would be easy for me to move my MPG inputs down to say IO:46-49 so they don't interfere with the original 4 encoder inputs if that make sense?
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17994
- Thank you received: 4838
12 Jan 2025 16:03 #318788
by PCW
Replied by PCW on topic 7i96s Questions
The P1 pinout can be random, it's completely determined by the PIN_XXX file.
(take a look at the source file include in the zip)
The only real pinout limitation is that modules like encoders or stepgens
are enabled by total number (num_stepgens=3 for example) rather than
individually, so you cannot trade off these pins for GPIO on a pin by pin basis
at runtime in hal. This is not actually a hardware limitation but just a choice
made to simplify the driver command line.
(take a look at the source file include in the zip)
The only real pinout limitation is that modules like encoders or stepgens
are enabled by total number (num_stepgens=3 for example) rather than
individually, so you cannot trade off these pins for GPIO on a pin by pin basis
at runtime in hal. This is not actually a hardware limitation but just a choice
made to simplify the driver command line.
The following user(s) said Thank You: slowpoke
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.054 seconds