Allocating encoder inputs
Posted: Fri Apr 30, 2021 10:01 am
I've finally bitten the bullet and ordered a KFLOP and KANALOG setup for my Milling Machine that has Linear Encoders. However, I don't want to have a messy interface between the 9 Way 'D' connectors on the Encoders, so I'm designing a small PCB that goes along the edge where JP1/JP2 are which will have 9 Way 'D' connectors on it and route the wires to suitable pins such that the whole thing can be screwed down to make it robust.
I see from the KANALOG documentation that typically the A&B channels go to JP1 and the Z channels to JP2. However, that's really inconvenient because it would be much bettter to connect all of the three channels for each encoder to pins that are nearby. I'm not sure why it's typically done that way, that doesn't make sense to me.
So it is possible to say connect the three encoders sequentially, overflowing to JP2 for just the last Z channel as follows...
A1 to JP1.1
/A1 to JP1.2
B1 to JP1.3
/B1 to JP1.4
Z1 to Jp1.5
/Z1 to Jp1.6
A2 to JP1.7
/A2 to JP1.8
B2 to JP1.9
/B2 to JP1.10
Z2 to Jp1.11
/Z2 to Jp1.12
A3 to JP1.13
/A3 to JP1.14
B3 to JP1.15
/B3 to JP1.16
Z3 to Jp2.1
/Z3 to Jp2.2
Alternatively, is it acceptable to split the allocations freely between JP1 & JP2? In other words, are there restrictions on how these are allocated in the software?
Any help would be much appreciated.
I see from the KANALOG documentation that typically the A&B channels go to JP1 and the Z channels to JP2. However, that's really inconvenient because it would be much bettter to connect all of the three channels for each encoder to pins that are nearby. I'm not sure why it's typically done that way, that doesn't make sense to me.
So it is possible to say connect the three encoders sequentially, overflowing to JP2 for just the last Z channel as follows...
A1 to JP1.1
/A1 to JP1.2
B1 to JP1.3
/B1 to JP1.4
Z1 to Jp1.5
/Z1 to Jp1.6
A2 to JP1.7
/A2 to JP1.8
B2 to JP1.9
/B2 to JP1.10
Z2 to Jp1.11
/Z2 to Jp1.12
A3 to JP1.13
/A3 to JP1.14
B3 to JP1.15
/B3 to JP1.16
Z3 to Jp2.1
/Z3 to Jp2.2
Alternatively, is it acceptable to split the allocations freely between JP1 & JP2? In other words, are there restrictions on how these are allocated in the software?
Any help would be much appreciated.