Page 1 of 1

Does Kmotion.Net support multiple Kogna boards?

Posted: Wed May 06, 2026 4:16 pm
by jtremel
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

Re: Does Kmotion.Net support multiple Kogna boards?

Posted: Wed May 06, 2026 6:29 pm
by TomKerekes
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.

Re: Does Kmotion.Net support multiple Kogna boards?

Posted: Wed May 06, 2026 6:58 pm
by jtremel
Awesome, thanks!