Kflop Wiring for Leadshine Close loop step servo CSM22430

Moderators: TomKerekes, dynomotion

Post Reply
AmitKumar171
Posts: 18
Joined: Tue Feb 20, 2018 7:35 am
Location: India
Contact:

Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by AmitKumar171 » Wed Jul 10, 2019 7:02 am

Dear Tom,

I want to interface a new hardware with KFLOP, that is leadshine close loop step servo CSM22430 and Drive CS-D508,

Please guide me through the steps and it is required to set pulse width more than 2.5uS in above drive but klfop having only 2uS, how to change that too.

link is in the description.
waiting for your kind reply.

https://www.leadshineusa.com/productdet ... el=cs-d508

https://www.leadshineusa.com/productDet ... =CS-M22430

above are the links for the products that i am interfacing with.
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 474
Joined: Mon Dec 04, 2017 1:49 am

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by TomKerekes » Wed Jul 10, 2019 5:32 pm

Hi Amit,
Please guide me through the steps and it is required to set pulse width more than 2.5uS in above drive but klfop having only 2uS, how to change that too.
To set maximum pulse size use one of the following:

FPGA(STEP_PULSE_LENGTH_ADD)=63; // set pulse size to 3.78us
FPGA(STEP_PULSE_LENGTH_ADD)=63 + 0x80; // set pulse size to 3.78us and invert pulse

This is described here in the manual.

Because that Drive supports CW/CCW pulse mode it would be best to use that instead of Step/Direction as it avoids any Direction setup timing requirements.
Regards,

Tom Kerekes
Dynomotion, Inc.

AmitKumar171
Posts: 18
Joined: Tue Feb 20, 2018 7:35 am
Location: India
Contact:

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by AmitKumar171 » Tue Jul 16, 2019 5:31 am

Hi Tom,

I want to wire the above motor with KANALOG board using four signal wires for each step servo motors.

Signal that i require are PUL+, PUL-, DIR+, DIR-

And i have these options in my leadshine step servo. i have doubts in doing wiring.

Where to wire PUL+, PUL-, DIR+, DIR- on KANALOG board or kflop board as quadrature signal ?

Which output channel to select in config/flash screen for these kind of motors. ?

waiting for kind reply.
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 474
Joined: Mon Dec 04, 2017 1:49 am

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by TomKerekes » Tue Jul 16, 2019 7:31 pm

Hi Amit,

Kanalog doesn't have any Step/Direction outputs.

How many Step/Direction outputs do you need? Are you using KFLOP JP4 and JP6?

You would need to use 5V open collector outputs. Connect + to +5V. Connect - to KFLOP Step or Direction pins.

Step and Direction is described here.
Regards,

Tom Kerekes
Dynomotion, Inc.

AmitKumar171
Posts: 18
Joined: Tue Feb 20, 2018 7:35 am
Location: India
Contact:

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by AmitKumar171 » Thu Jul 18, 2019 10:22 am

Dear Tom,

1. As per the Driver manufacturer datasheet, Minimal direction setup should be 5uS, but in KFLOP don’t know the default value. So, Can we change the DIR setup time to 5uS in the KFLOP? How?
2. Kindly advice, what happens if we run with 4uS even though Driver DIR setup time specification was 5uS? is this wrong thinking?

3. As per the driver specification, supply Voltage for the PUL and DIR should be 4.5-5V for HIGH and 0-0.5V for LOW (mentioned on page 4 of the manual,PFA link). But We have measured the voltage (using Multimeter) on driver pin PUL+ with respect to PUL- is: 1.29V(No operation/maybe on low pulse), while motor running: 1.43V (1200RPM), 1.52V(2080RPM).
And Voltage on driver pin DIR+ with respect to DIR- is: 4.06(When No operation and Anticlockwise rotation), 1.3V (when the motor rotates in clockwise).

We are supplying a lower voltage than the required voltage for the driver PUL and DIR, right? Is there any issue? If I am wrong, kindly correct & advise.

https://www.leadshineusa.com/productdet ... el=cs-d508
You do not have the required permissions to view the files attached to this post.
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 474
Joined: Mon Dec 04, 2017 1:49 am

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by TomKerekes » Thu Jul 18, 2019 5:55 pm

Hi Amit,
As per the Driver manufacturer datasheet, Minimal direction setup should be 5uS, but in KFLOP don’t know the default value. So, Can we change the DIR setup time to 5uS in the KFLOP? How?
From the link to the manual I sent:

KFLOP sets the Direction output 1.92us before generating a Step Pulse. With the maximum Step Pulse length of 3.78us the maximum Direction Setup time to the trailing edge of the Step Pulse is 5.7us.

Also from my previous post:

Because that Drive supports CW/CCW pulse mode it would be best to use that instead of Step/Direction as it avoids any Direction setup timing requirements.


2. Kindly advice, what happens if we run with 4uS even though Driver DIR setup time specification was 5uS? is this wrong thinking?
Insufficient Direction Setup Time can cause the Drive to make one microstep in the wrong direction after any change in direction. This will cause an intermittent shift in position of 2 microsteps. Again use CW/CCW to completely eliminate the issue.


As per the driver specification, supply Voltage for the PUL and DIR should be 4.5-5V for HIGH and 0-0.5V for LOW (mentioned on page 4 of the manual,PFA link). But We have measured the voltage (using Multimeter) on driver pin PUL+ with respect to PUL- is: 1.29V(No operation/maybe on low pulse), while motor running: 1.43V (1200RPM), 1.52V(2080RPM).
And Voltage on driver pin DIR+ with respect to DIR- is: 4.06(When No operation and Anticlockwise rotation), 1.3V (when the motor rotates in clockwise).

We are supplying a lower voltage than the required voltage for the driver PUL and DIR, right? Is there any issue? If I am wrong, kindly correct & advise.
You can not measure microsecond Step Pulses with a multimeter. You would need to use an oscilloscope. But they should be similar to what you measure on the Direction Signal.

KFLOP should drive with >4V when sinking low and < 1.4V when floating "open". This does not meet the Leadshine Specification. But usually works as most any opto LED will need 1.4V or more to turn on. The open collector outputs on JP4 and JP6 do not have 47 Ohm series resistors as JP7 does so should drive with > 4.5V

If you need higher/lower voltage levels you will need to add an external driver. A differential line driver such as this should work well.
Regards,

Tom Kerekes
Dynomotion, Inc.

AmitKumar171
Posts: 18
Joined: Tue Feb 20, 2018 7:35 am
Location: India
Contact:

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by AmitKumar171 » Fri Jul 19, 2019 2:55 pm

Dear Tom,

Thanks for the information and appreciate your support.

1. I thought STEP pulse and Direction setup configurations are independent, we can configure both individually like Step Pulse 2.5uS with Direction setup 5uS. So my understanding is wrong?
2. If I want to change the Direction setup to 5.7uS, we should configure the step pulse to 3.78uS right?
3. So we don’t have an option for configuring the Direction setup without configuring the step pulse width right?

4. Kindly advice the difference between 32 and 32+0X80, because we do not understand “pulse the Step High / invert pulse”.could you Kindly provide the graph for both the cases in details including the voltage/pulse width/etc for better understanding.
FPGA(STEP_PULSE_LENGTH_ADD)=32; // set the pulse time to ~ 2μs
FPGA(STEP_PULSE_LENGTH_ADD)=32 + 0x80; // set the pulse time to ~ 2μs and pulse the Step High / invert pulse
5. Why <1.4V when KFLOP pin is floating open? Why not it 0V? Because of the 47 ohm resistor?
Thank You

AMIT KUMAR

User avatar
TomKerekes
Posts: 474
Joined: Mon Dec 04, 2017 1:49 am

Re: Kflop Wiring for Leadshine Close loop step servo CSM22430

Post by TomKerekes » Fri Jul 19, 2019 5:53 pm

Hi Amit,
1. I thought STEP pulse and Direction setup configurations are independent, we can configure both individually like Step Pulse 2.5uS with Direction setup 5uS. So my understanding is wrong?
KFLOP's Direction Setup time is fixed at 1.92us. If the Drive is configured to step on the end of the Step Pulse then the total Direction Setup Time will be 1.92us + Step Pulse Time.

2. If I want to change the Direction setup to 5.7uS, we should configure the step pulse to 3.78uS right?
Correct.

3. So we don’t have an option for configuring the Direction setup without configuring the step pulse width right?
Correct

4. Kindly advice the difference between 32 and 32+0X80, because we do not understand “pulse the Step High / invert pulse”.could you Kindly provide the graph for both the cases in details including the voltage/pulse width/etc for better understanding.
FPGA(STEP_PULSE_LENGTH_ADD)=32; // set the pulse time to ~ 2μs
FPGA(STEP_PULSE_LENGTH_ADD)=32 + 0x80; // set the pulse time to ~ 2μs and pulse the Step High / invert pulse
Here is FPGA(STEP_PULSE_LENGTH_ADD)=63; // set the pulse time to 3.78μs
(Driving a 1.5K pull up to 5V)
StepDir63.png


Here is FPGA(STEP_PULSE_LENGTH_ADD)=63+0x80; // set the pulse time to 3.78μs and inverted
(Driving a 1.5K pull up to 5V)
StepDir630x80.png

5. Why <1.4V when KFLOP pin is floating open? Why not it 0V? Because of the 47 ohm resistor?
No, because all KFLOP IO have protection diodes connected to the 3.3V Supply.
You do not have the required permissions to view the files attached to this post.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply