Does Kmotion.Net support multiple Kogna boards?

Moderators: TomKerekes, dynomotion

Post Reply
jtremel
Posts: 41
Joined: Fri Jun 21, 2019 10:55 pm

Does Kmotion.Net support multiple Kogna boards?

Post by jtremel » Wed May 06, 2026 4:16 pm

Hi Tom - and hope all is well!

Does KMotion.Net support multiple Kogna boards in one application?

I am working on a machine that would require 3 boards. To be clear, I am NOT looking for coordinated motion among the boards, just for my .NET application to communicate with 3 Kogna boards in one application at the same time.

Thanks,
Jim

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

Re: Does Kmotion.Net support multiple Kogna boards?

Post by TomKerekes » Wed May 06, 2026 6:29 pm

Hi Jim,

Absolutely. Create multiple KM_Controller objects for each board. Where the board is specified by IP Address or Serial Number. See the TestBoard2 button in the SimpleFormsCS example which toggles an LED on a 2nd board. For IP Address 192.168.68.118 would be:

Code: Select all

        private void TestBoard2_click(object sender, EventArgs e)
        {
            KM_Controller KM2;
            KM2 = new KMotion_dotNet.KM_Controller((192<<24)+(168<<16)+(68<<8)+118);
            if (KM2.WriteLineReadLine("ReadBit47") == "0")
                KM2.WriteLine("SetBit47");
            else
                KM2.WriteLine("ClearBit47");
        }
See also here.
Regards,

Tom Kerekes
Dynomotion, Inc.

jtremel
Posts: 41
Joined: Fri Jun 21, 2019 10:55 pm

Re: Does Kmotion.Net support multiple Kogna boards?

Post by jtremel » Wed May 06, 2026 6:58 pm

Awesome, thanks!

Post Reply