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
Does Kmotion.Net support multiple Kogna boards?
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2927
- Joined: Mon Dec 04, 2017 1:49 am
Re: Does Kmotion.Net support multiple Kogna boards?
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:
See also here.
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");
}
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Does Kmotion.Net support multiple Kogna boards?
Awesome, thanks!