Page 1 of 1

Testing the Kmotion

Posted: Fri Nov 15, 2024 1:13 am
by Abdul
Hello everyone
I am very new to the whole kmotion.exe. I have a klop and kanalog board connected. I managed to connect an encoder with differential input to the jp1 connectors. I connected them to the pin 0 of the jp1 encoder pins and I am able to see position on axis 0 on the axis screen on the kmotion. I have tried to read the manual but i couldnt fully understand it. These are the questions I have:
1. Is an axis of the kflop directly linked to a single differential encoder input?
2. Using the c program screen, how can I get the encoder reading and move my motor accordingly.
3. On the c program screen, the CHAN struct from ch0 to ch7, are they connected to the differential inputs on the kanalog and does kflop use them to configure each of its axes.

I'm really confused right now so I appreciate as much help as possible.

Re: Testing the Kmotion

Posted: Fri Nov 15, 2024 5:07 pm
by TomKerekes
Hi Abdul,
1. Is an axis of the kflop directly linked to a single differential encoder input?
No please read this wiki article.

2. Using the c program screen, how can I get the encoder reading and move my motor accordingly.
You don't need a C Program to configure, test, and tune your Axes. The C Program is created afterward to do the Configuration and Initialization automatically from other Apps such as KMotionCNC.

Follow the steps listed in the wiki for Analog Servos with Kanalog.

3. On the c program screen, the CHAN struct from ch0 to ch7, are they connected to the differential inputs on the kanalog and does kflop use them to configure each of its axes.
The CHAN structure configures the Axis. It defines things such as whether the axis has an encoder and which encoder input channel should be used. Again its simpler to configure everything using the KMotion Screens which can then automatically be converted to C Code that will configure the Axis. These 3 Screens have settings for the Axis Structure:

Configuration Screen
Step Response Screen
Filter Screen

Also See:
KFLOP/Kogna Axis Configuration and Parameters