KFLOP with linear encoder

Moderators: TomKerekes, dynomotion

MattiaGrassi93
Posts: 1
Joined: Sun Sep 01, 2019 9:04 pm

KFLOP with linear encoder

Post by MattiaGrassi93 » Sun Sep 01, 2019 9:12 pm

Hi everyone :D
I'm thinking about buying the Kflop controller for my system. I need to use linear encoder on stepper motor system for closed loop operation (because I need to have really small tollerancies on my system, about 1 um) on a Optimum bf20 machine (modified, with c3 ballscrews and precision linear guides). Is it possible? Do you know where I can find any kind of tutorial or example or something that may be usefull? I red something and I saw that Kflop only support linear encoder with TTL output so I'm going to buy one soon. Is there any other kind of hardware I may need?
I'm not sure if this is the right section so, if not, feel free to move the topic.

Thank you in advance.

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

Re: KFLOP with linear encoder

Post by TomKerekes » Sun Sep 01, 2019 10:17 pm

Hi MattiaGrassi93,

1um is of course extremely difficult to achieve. Linear Scales only correct for some mechanical errors. Is speed also important?

What type of Stepper Drivers are you using?

Try to get encoders with differential outputs. Differential outputs can be connected to differential inputs or single ended inputs. See here for more info.

Here is an article on closed loop Step/Dir mode. Note the example is using rotary encoder feedback but linear scale encoder feedback is similar just with more mechanics in the control loop.
Regards,

Tom Kerekes
Dynomotion, Inc.

Igor
Posts: 60
Joined: Wed Dec 25, 2019 11:37 am

Re: KFLOP with linear encoder

Post by Igor » Mon Jan 27, 2020 4:38 pm

Good afternoon Tom. Can i connect to Kflop rulers with that output? thanks
Attachments
422out.JPG

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

Re: KFLOP with linear encoder

Post by TomKerekes » Mon Jan 27, 2020 5:37 pm

Hi Igor,

Yes you can connect that differential encoder to KFLOP's single ended encoder inputs by leaving the complementary signals disconnected. However there will be higher noise susceptibility than if you use differential to single ended converters. See also this.
Regards,

Tom Kerekes
Dynomotion, Inc.

Igor
Posts: 60
Joined: Wed Dec 25, 2019 11:37 am

Re: KFLOP with linear encoder

Post by Igor » Mon Jan 27, 2020 6:08 pm

Thank you for answering so quickly. I looked... also there were questions. Can you give me an example of such a connection?
Attachments
CLOSED LOOP.JPG

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

Re: KFLOP with linear encoder

Post by TomKerekes » Mon Jan 27, 2020 6:50 pm

Hi Igor,

You would need to wire the encoder to a KFLOP encoder input.

The Output Mode would be CL Step not CL Micro. Microstepper Amplitude would not apply as your drives control the current. See here.

Don't concern your self with a C Program at this time. Use the KMotion Screens.
Regards,

Tom Kerekes
Dynomotion, Inc.

Igor
Posts: 60
Joined: Wed Dec 25, 2019 11:37 am

Re: KFLOP with linear encoder

Post by Igor » Mon Jan 27, 2020 7:47 pm

I do not understand how to connect pins A, A +, B, B+
Attachments
closed.JPG

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

Re: KFLOP with linear encoder

Post by TomKerekes » Tue Jan 28, 2020 1:45 am

Hi Igor,

As I said before to connect differential encoders with A+ A- B+ B- to single ended inputs with only A and B, just connect one of the A and one of the B and leave the other two signals unconnected. Note this will be more susceptible to noise than a differential input that uses all 4 signals.
Regards,

Tom Kerekes
Dynomotion, Inc.

Igor
Posts: 60
Joined: Wed Dec 25, 2019 11:37 am

Re: KFLOP with linear encoder

Post by Igor » Wed Jan 29, 2020 5:06 pm

good afternoon Tom. I 'm getting a mistake. Connected the ruler to pin7-8, often the axis to become yellow is the reason and how to eliminate it. After reloading, the position is inadvertently counted. thanks
Attachments
error.JPG
Error closed.JPG

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

Re: KFLOP with linear encoder

Post by TomKerekes » Wed Jan 29, 2020 5:35 pm

Hi Igor,

For us to help you would need to tell us exactly how things are configured and what you are doing.

You should get everything configured, tuned, and tested in KMotion.exe before attempting to use KMotionCNC.

I suspect your Axis Resolutions in KMotionCNC | Tool Setup | Trajectory Planner | Axis Parameters is not set properly. If they are set at zero then trying to use them to convert from counts to GCode units will result in a division by zero. See also here and here.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply