- Posts: 83
- Thank you received: 0
Fitting an encoder to non Tormach mill (Again)
Currently using the PP bitfile. With encoders=2 I get the PPR encoder on GPIO 16 and what looks like a real encoder on GPIO 30, 31 and 32. Here's the 5i25 pinout, I'm using some of the P2 GPIO pins.
Encoder 1 is not making sense which could either be Tormach mods or my incompetence.
It was suggested back in the day I should switch to a 'standard' bitfile and that's what I'm about to do.
All the bitfiles for the 5i25 appear to be for a 5i25 with 1 or 2 attached expansion cards, is there a bitfile that supports just P3 and P2 connecting to the world ?
Ken
Please Log in to join the conversation.
Tormach has custom firmware for their 1-PPR "encoder" used on their "RapidTurn" attachment
Please Log in to join the conversation.
PCW wrote: Not sure what you mean by attaching to the world. In general you would always use some kind of a breakout board with a 5I25.
Tormach has custom firmware for their 1-PPR "encoder" used on their "RapidTurn" attachment
By 'world' I mean external to the computer, in this instance the control box for the mill which has the stepper drivers, spindle control. estop etc.
I don't see the need for any breakout board, the interface (my design) has two DB25s that go to the 5i25, all signals are opto isolated or buffered as required. My interface IS the breakout board I suppose.
If you look at the P2 pinout that's all I need, an encoder and a few GPIOS. On those same pins would be nice but I put jumpers on my board to accommodate other pins.
All I need to know is what bitfile will do the P3 and P2 pins.
Thanks, Ken.
Please Log in to join the conversation.
there should be one that's suitable:
The generic parallel port type pinouts are these:
5i25_hdbb2
5i25_dmmbob1x2
5i25_r990x2
5i25_mx3660x2
5i25_bstechx2
5i25_hdbb2
5i25_benezanx2D
5i25_pmdx126x2
5i25_5ABOBx2
5i25_c11x2
5i25_c11gx2
5i25_g540_enc
5i25_prob_rfx2
5i25_g540x2
Please Log in to join the conversation.
PCW wrote: If you look at the .pin files in the 5i25.zip archive,
there should be one that's suitable:
I've been through all the pin files in the current 5i25.zip and an older one I have, by all II mean all, not the just the suggested BOB ones, there's nothing that matches my (tormach) based pinout.
mesa dump shows the bitfile has two encoders, I was hoping the second instance was a real encoder but the dump lists two instances of an encoder so both are pulse-per-rev.
I can get by with the pulse-per-rev encoder for DRO display but I was hoping to do a bit better for any spindle sync I might try down the road.
Thanks for your help, Ken
Please Log in to join the conversation.
Attachment not found
Please Log in to join the conversation.
PCW wrote: Here is a Tormach pinout bitfile for a 5I25
My sincerest thanks for this.
I will give it a run first thing tomorrow, it's midnight here right now.
Many thanks again, Ken.
Please Log in to join the conversation.
Unused encoder 01 sits on top of GPIO pins used for limit switch inputs. I don't think this is a problem at least on inputs, is it?
Yesterday I said none of the pinouts of existing bitfiles matched the tormach pinout. Today while testing the new bitfile I realised I was comparing header pin numbers with DB-25 pin numbers. I'll look through the pin files again just to put the record straight
Thanks again for sorting me out,
Ken
Please Log in to join the conversation.
interfere with GPIO input usage, but will prevent using those pins
as GPIO outputs (but you can do that by setting encoders=1)
Likewise, special function outputs (Step/Dir/ PWM etc)
revert to GPIO if disabled by limiting the number enabled
in the driver command line
Please Log in to join the conversation.
I went through all 5i25 pin files again today, looking at the correct connector pinouts today and there's nothing that would have done the job.
Ken
Please Log in to join the conversation.
