Page 1 of 1

How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Thu Sep 26, 2019 6:48 am
by AmitKumar171
Hi tom ,

I am interfacing Kflop Board with Kanalog board with JP5 and JP7 pin, So to use step and direction i have to multiplex JP7 axis channels to JP4 and JP6.

But in this case I have only 4 out of 8 axis channel in use condition i can use 2 channels of JP5 and 1 channel of JP4 and 1 channel of JP4 as open collector mode.

But i want to use all 6 axis channel at once considering JP7 of kflop is in use for KANALOG, and JP4 is in use for other purpose so i have only one remaining that is JP6, but in JP6 only one channel is used as open collector mode.
Note that the first 8 of 10 I/O pins of Aux #0 and Aux #1 have internal 150 Ohm pull-down resistors. Therefore Pins JP4-13, JP4-14, JP6-13 and JP6-14 may not be used in Open Collector mode.
What will be workaround to use both axis channels on JP6 as open collector mode.

and Can we directly use JP4-15, JP4-16, JP6-15, JP6-16 as an open collector for sinking 5V from the Driver without a resistor?

Waiting for your kind reply

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Thu Sep 26, 2019 3:51 pm
by TomKerekes
Hi Amit,

Its not possible to use those pins in open collector mode.

The workaround is to use drives that accept TTL voltage levels. Or add an external driver such as you show in your other post here.

Or a 3rd part line driver is a good choice. Such as this.

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Mon Sep 30, 2019 9:35 am
by AmitKumar171
Dear Tom,

Thanks for the information.
Note that the first 8 of 10 I/O pins of Aux #0 and Aux #1 have internal 150 Ohm pull down resistors. Therefore Pins JP4-13, JP4-14, JP6-13 and JP6-14 may not be used in Open Collector mode.
1. No, am asking about JP4-15, JP4-16, JP6-15, JP6 because these pins don't have PullDown resistors right? So can we use this in open Collector mode? 2. If JP4-15, JP4-16, JP6-15, JP6 can be used in Open collector, whether these pins required a series resistor? because these pins are 3.3V compatible but our driver PUL/DIR Signal voltage is 5V?.
3. Can we use both the modes like 4 axis in open collector mode and 2-3 axis in LVTTL mode instead of all axis in open collector mode? is this works?
4. Can we use other than this pins: JP4_13 to JP4_16, JP6_13 to JP6_16, JP5_13 to JP1_4, JP7_22 to JP7_22 for SET/DIR? like can we use JP7_5, JP_6, JP4_5 to JP4_12 and JP6_5 to JP6_12 for STEP/DIR?
5. Can we use JP4 for MPG (If we use JP6 for KNOZ for using spindle)?
So any 6 spare LVTTL IO pins may be used to control KNozz.
6. IO_22 to 25 and IO_32 to 35 seem to be SPI, So can we use any spare GPIO pins from any Aux(JP4 or 5 or 6 or 7)?
7. Why can't we use all 8 axis STEP/DIR in JP7 or in single AUX connector instead of multiple AUX connectors like JP7,JP5, JP4-JP6 if MUX?
8. JP5_5 to JP5_8 and JP7_7 to JP7_14 all 16 pins are differential pair(6). We don't need differential pair we just need General IO pins for switches like Homing/e-stop etc. Now we are only able to use 8 IO pins and other 8 pins are unable to use because of that pairs. Can we able to use all 16 pins as a 16 General IO instead of 8 differential pair?

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Mon Sep 30, 2019 4:04 pm
by TomKerekes
Hi Amit,
1. No, am asking about JP4-15, JP4-16, JP6-15, JP6 because these pins don't have PullDown resistors right? So can we use this in open Collector mode?
yes

2. If JP4-15, JP4-16, JP6-15, JP6 can be used in Open collector, whether these pins required a series resistor? because these pins are 3.3V compatible but our driver PUL/DIR Signal voltage is 5V?.
No series resistor is required. The Drive's input will limit the current.

3. Can we use both the modes like 4 axis in open collector mode and 2-3 axis in LVTTL mode instead of all axis in open collector mode? is this works?
Yes. The channel Number sets the Step/Dir Generator and mode. See here.

4. Can we use other than this pins: JP4_13 to JP4_16, JP6_13 to JP6_16, JP5_13 to JP1_4, JP7_22 to JP7_22 for SET/DIR? like can we use JP7_5, JP_6, JP4_5 to JP4_12 and JP6_5 to JP6_12 for STEP/DIR?
No

5. Can we use JP4 for MPG (If we use JP6 for KNOZ for using spindle)?
Yes

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Tue Oct 01, 2019 5:05 am
by AmitKumar171
Dear Tom,

Thanks for the information.
So any 6 spare LVTTL IO pins may be used to control KNozz.
6. IO_22 to 25 and IO_32 to 35 seem to be SPI, So can we use any spare GPIO pins from any Aux(unused pins from all JP4 or JP5 or JP6 or JP7 -2 pins from each Aux)?
7. Why can't we use all 8 axis STEP/DIR in JP7 single AUX connector (By disabling the differential pair function) instead of multiple AUX connectors like 4 axis in JP7, 2 in JP5, 2 in JP4-JP6 if Multiplexed?
8. JP5_5 to JP5_8 and JP7_7 to JP7_14 all 16 pins are differential pair(6). We don't need differential pair we just need General IO pins for switches like Homing/e-stop etc. Now we are only able to use 8 IO pins and other 8 pins are unable to use because of that pairs. Can we able to use all 16 pins as a 16 General IO instead of 8 differential pair?

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Tue Oct 01, 2019 4:22 pm
by TomKerekes
Hi Amit,
So any 6 spare LVTTL IO pins may be used to control KNozz.

6. IO_22 to 25 and IO_32 to 35 seem to be SPI, So can we use any spare GPIO pins from any Aux(unused pins from all JP4 or JP5 or JP6 or JP7 -2 pins from each Aux)?
Yes the KNozz SPI and other IO (except the PWM for the analog output) are handled in software, so the software can be easily changed to use any IO pins.

7. Why can't we use all 8 axis STEP/DIR in JP7 single AUX connector (By disabling the differential pair function) instead of multiple AUX connectors like 4 axis in JP7, 2 in JP5, 2 in JP4-JP6 if Multiplexed?
8. JP5_5 to JP5_8 and JP7_7 to JP7_14 all 16 pins are differential pair(6). We don't need differential pair we just need General IO pins for switches like Homing/e-stop etc. Now we are only able to use 8 IO pins and other 8 pins are unable to use because of that pairs. Can we able to use all 16 pins as a 16 General IO instead of 8 differential pair?
I don't understand. KFLOP doesn't have any differential pairs. Maybe you are referring to Kanalog differential encoder inputs? Kanalog has 16 differential inputs that output to 16 KFLOP single ended inputs. If you want to use the KFLOP 3.3V LVTTL single ended inputs you can make a custom cable to disconnect the pins from Kanalog and wire to KFLOP directly. But 24V Opto isolated IO is better for Home switches, EStop, and such.

Encoder inputs, Step/Dir Outputs, and PWMs are hardware devices and can not easily be mapped to arbitrary pins. That is why we offer limited options. The limited options are usually sufficient to avoid conflicts.

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Wed Oct 02, 2019 9:33 am
by AmitKumar171
Dear Tom,

Thanks for the information.

No we are not using kanalog and am asking about KFLOP only.

1. Mean, For example: In Jp4 there is 10 I/O and i can connect 10 switches working fine. But in JP5_5 to JP5_8 and JP7_7 to JP7_14, If i connect the switch to JP5_5 i will get output on both IO40 and IO41 in Digital IO Screen and i can't use JP5_6 for this issue. Same way i can't use JP5_8,JP7_8, JP7_10,etc. Is there any option to use both the pins like JP5_5 and JP5_6 as individual IO? In simple words, phase A and phase B both state will be high in the digital IO screen even if the Phase B input pin is open and only Phase A pin input is connected to supply via switch. So i can use Phase A pins and i can't use Phase B pins for switches like Homing or e-stop, etc. How i can correct this?

2. We are using Step Servo with encoder and encoder is connected to the Motor driver. If we connect encoder feedback directly to the KFLOP using some converter, can we get more accurate?
3. How i can connect the encoders to KFLOP without using kanalog ? because encoders are differential pair and KFLOP is a single ended. Could you please suggest the converter?

4. If we use Step Servo with encoder and encoder is connected to the Motor driver only. Now we are using STEP DIR mode with an open collector. Kindly advise which modes we have to select?
ch0->InputMode=NO_INPUT_MODE; or ch0->InputMode=Encoder;
ch0->OutputMode=STEP_DIR_MODE; or ch0->OutputMode=CL STEP;

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Wed Oct 02, 2019 5:12 pm
by TomKerekes
Hi Amit,
1. Mean, For example: In Jp4 there is 10 I/O and i can connect 10 switches working fine. But in JP5_5 to JP5_8 and JP7_7 to JP7_14, If i connect the switch to JP5_5 i will get output on both IO40 and IO41 in Digital IO Screen and i can't use JP5_6 for this issue. Same way i can't use JP5_8,JP7_8, JP7_10,etc. Is there any option to use both the pins like JP5_5 and JP5_6 as individual IO? In simple words, phase A and phase B both state will be high in the digital IO screen even if the Phase B input pin is open and only Phase A pin input is connected to supply via switch. So i can use Phase A pins and i can't use Phase B pins for switches like Homing or e-stop, etc. How i can correct this?
That is not correct. Each IO can be used independently. Each pair of IO do share some protection circuitry that can cause some leakage current from one Input to the other if the pin is driven above ~3.8V. We don't recommend driving any input above 3.3V. In this case the leakage is very small and the input can still be driven high or low. The leakage will only be observed if the input is not driven at all and left just floating.

2. We are using Step Servo with encoder and encoder is connected to the Motor driver. If we connect encoder feedback directly to the KFLOP using some converter, can we get more accurate?
If the closed loop Servo Drive is capable and tuned well the accuracy and performance should be the same as if KFLOP was closing the position loop. The main advantage of feeding the encoder position back to KFLOP is so KFLOP can monitor following errors and if the axis faults or is disabled KFLOP will still maintain the encoder position so the system can be re-enabled without needing to be re-homed.


3. How i can connect the encoders to KFLOP without using kanalog ? because encoders are differential pair and KFLOP is a single ended. Could you please suggest the converter?
You can connect differential encoders directly to KFLOP by just connecting one of the complementary signals to KFLOP and leaving the other unconnected. But in this case you will be more susceptible to noise than what using differential signals would have. So it is better to add a differential receiver close to KFLOP such as this.

4. If we use Step Servo with encoder and encoder is connected to the Motor driver only. Now we are using STEP DIR mode with an open collector. Kindly advise which modes we have to select?
ch0->InputMode=NO_INPUT_MODE; or ch0->InputMode=Encoder;
ch0->OutputMode=STEP_DIR_MODE; or ch0->OutputMode=CL STEP;
From KFLOP's perspective there isn't an encoder and only open loop so:
ch0->InputMode=NO_INPUT_MODE
ch0->OutputMode=STEP_DIR_MODE;

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Thu Oct 03, 2019 1:40 pm
by AmitKumar171
Dear Tom,

Thank you for the information.
If the closed loop Servo Drive is capable and tuned well the accuracy
We are using Leadshine CS-D508 Driver. How we can know Closed loop Servo Drive is capable and having well accuracy? Could you please advice the different methods/Procedures to know this? It is very important for us to know the accuracy.

Re: How to use pin Pins JP4-13, JP4-14, JP6-13 and JP6-14 in Open Collector mode.

Posted: Thu Oct 03, 2019 6:18 pm
by TomKerekes
Hi Amit,
We are using Leadshine CS-D508 Driver. How we can know Closed loop Servo Drive is capable and having well accuracy? Could you please advice the different methods/Procedures to know this? It is very important for us to know the accuracy.
You should ask Leadshine :)

If you connect the encoder to KFLOP then KFLOP will be able to observe and plot following errors. Otherwise KFLOP has no information on what the Drive is doing.